search for: sh_ctxt

Displaying 3 results from an estimated 3 matches for "sh_ctxt".

Did you mean: sha1_ctxt
2008 Apr 21
1
[PATCH] x86-64: emulation support for cmpxchg16b
...================================ --- 2008-04-15.orig/xen/arch/x86/mm/shadow/common.c 2008-04-11 14:48:16.000000000 +0200 +++ 2008-04-15/xen/arch/x86/mm/shadow/common.c 2008-04-15 08:48:15.000000000 +0200 @@ -262,6 +262,7 @@ hvm_emulate_cmpxchg(enum x86_segment seg v, addr, old, new, bytes, sh_ctxt); } +#ifdef __i386__ static int hvm_emulate_cmpxchg8b(enum x86_segment seg, unsigned long offset, @@ -288,13 +289,16 @@ hvm_emulate_cmpxchg8b(enum x86_segment s return v->arch.paging.mode->shadow.x86_emulate_cmpxchg8b( v, addr, old_lo, old_hi, new_lo...
2009 Aug 06
2
[PATCH] hvm emul: fix cmpxchg emulation to use an atomic operation
...addr) ) + return (long)addr; + + old = (((u64) old_hi) << 32) | (u64) old_lo; + new = (((u64) new_hi) << 32) | (u64) new_lo; + + prev = cmpxchg(((u64 *)addr), old, new); + + if ( prev != old ) + rc = X86EMUL_CMPXCHG_FAILED; + + emulate_unmap_dest(v, addr, 8, sh_ctxt); + + return rc; +} +#endif + static int hvmemul_cmpxchg( enum x86_segment seg, unsigned long offset, @@ -528,8 +705,32 @@ unsigned int bytes, struct x86_emulate_ctxt *ctxt) { - /* Fix this in case the guest is really relying on r-m-w atomicity. */ - return hvmemul_wr...
2013 Sep 23
57
[PATCH RFC v13 00/20] Introduce PVH domU support
This patch series is a reworking of a series developed by Mukesh Rathor at Oracle. The entirety of the design and development was done by him; I have only reworked, reorganized, and simplified things in a way that I think makes more sense. The vast majority of the credit for this effort therefore goes to him. This version is labelled v13 because it is based on his most recent series, v11.