aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/shadow.h
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-12-01 15:45:59 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2006-12-01 15:45:59 +0000
commitc7f32070aedd31b8e27a59cd01dfcfc4f9c55cd0 (patch)
tree18fd7fb6f9fd4a13fe639b349eac0aaca716386f /xen/include/asm-x86/shadow.h
parentb3312988255a7e0dc213bb4e11f533f8546fff0c (diff)
downloadxen-c7f32070aedd31b8e27a59cd01dfcfc4f9c55cd0.tar.gz
xen-c7f32070aedd31b8e27a59cd01dfcfc4f9c55cd0.tar.bz2
xen-c7f32070aedd31b8e27a59cd01dfcfc4f9c55cd0.zip
[HVM] Cache segment-register contents during PTE-update emulations.
Also clean up page-fault propagation to inject the correct error code and CR2 value. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/asm-x86/shadow.h')
-rw-r--r--xen/include/asm-x86/shadow.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/xen/include/asm-x86/shadow.h b/xen/include/asm-x86/shadow.h
index 7bf159b21d..78998edea9 100644
--- a/xen/include/asm-x86/shadow.h
+++ b/xen/include/asm-x86/shadow.h
@@ -246,7 +246,7 @@ shadow_vcpu_mode_translate(struct vcpu *v)
/**************************************************************************/
/* Mode-specific entry points into the shadow code */
-struct x86_emulate_ctxt;
+struct sh_emulate_ctxt;
struct shadow_paging_mode {
int (*page_fault )(struct vcpu *v, unsigned long va,
struct cpu_user_regs *regs);
@@ -267,18 +267,18 @@ struct shadow_paging_mode {
void (*detach_old_tables )(struct vcpu *v);
int (*x86_emulate_write )(struct vcpu *v, unsigned long va,
void *src, u32 bytes,
- struct x86_emulate_ctxt *ctxt);
+ struct sh_emulate_ctxt *sh_ctxt);
int (*x86_emulate_cmpxchg )(struct vcpu *v, unsigned long va,
unsigned long old,
unsigned long new,
unsigned int bytes,
- struct x86_emulate_ctxt *ctxt);
+ struct sh_emulate_ctxt *sh_ctxt);
int (*x86_emulate_cmpxchg8b )(struct vcpu *v, unsigned long va,
unsigned long old_lo,
unsigned long old_hi,
unsigned long new_lo,
unsigned long new_hi,
- struct x86_emulate_ctxt *ctxt);
+ struct sh_emulate_ctxt *sh_ctxt);
mfn_t (*make_monitor_table )(struct vcpu *v);
void (*destroy_monitor_table )(struct vcpu *v, mfn_t mmfn);
void * (*guest_map_l1e )(struct vcpu *v, unsigned long va,