search for: sp_size

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

Did you mean: sh_size
2008 Apr 21
1
[PATCH] x86-64: emulation support for cmpxchg16b
...8b = pv_emulate_cmpxchg8b, + .cmpxchg2 = pv_emulate_cmpxchg8b, }; struct x86_emulate_ops *shadow_init_emulation( @@ -390,7 +398,12 @@ struct x86_emulate_ops *shadow_init_emul if ( !is_hvm_vcpu(v) ) { +#ifndef CONFIG_COMPAT sh_ctxt->ctxt.addr_size = sh_ctxt->ctxt.sp_size = BITS_PER_LONG; +#else + sh_ctxt->ctxt.addr_size = sh_ctxt->ctxt.sp_size = + !is_pv_32on64_vcpu(v) ? BITS_PER_LONG : COMPAT_BITS_PER_LONG; +#endif return &pv_shadow_emulator_ops; } Index: 2008-04-15/xen/arch/x86/mm/shadow/multi.c ========================...
2010 Aug 13
0
instrction emulation problem
...construct the x86_emulate_ctxt and reuse the "ptwr_emulate_ops". code like this: extern const struct x86_emulate_ops ptwr_emulate_ops; in do_general_protection { .... struct x86_emulate_ctxt ctxt; ctxt.regs = regs; ctxt.force_writeback = 1; // 0 is the same ctxt.addr_size = 32; ctxt.sp_size = 32; ret = x86_emulate(&ctxt, &ptwr_emulate_ops); ... } the error message is: (XEN) mm.c:5235:d0 ptwr_emulate: bad access (cr2=553a4000, addr=e81b5fac, bytes=4) I have another idea, I directly update the stack and change the EIP and ESP like this: regs->esp -= 4; __raw_copy_to_...
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.