summaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2011-04-04 12:39:24 +0200
committerAvi Kivity <avi@redhat.com>2011-05-11 07:57:00 -0400
commit775fde8648ebc588d07de39457aadc7c2131df2e (patch)
tree56706d5d6eff4b5f02c911cbbbcf3b14648aee69 /arch/x86/include
parent3c6e276f22cf29188035535127c4c35aeeafcabc (diff)
downloadblackbird-obmc-linux-775fde8648ebc588d07de39457aadc7c2131df2e.tar.gz
blackbird-obmc-linux-775fde8648ebc588d07de39457aadc7c2131df2e.zip
KVM: x86 emulator: Don't write-back cpu-state on X86EMUL_INTERCEPTED
This patch prevents the changed CPU state to be written back when the emulator detected that the instruction was intercepted by the guest. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/kvm_emulate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_emulate.h b/arch/x86/include/asm/kvm_emulate.h
index 470ac54ca38d..1dbd0c736cd1 100644
--- a/arch/x86/include/asm/kvm_emulate.h
+++ b/arch/x86/include/asm/kvm_emulate.h
@@ -331,6 +331,7 @@ int x86_decode_insn(struct x86_emulate_ctxt *ctxt, void *insn, int insn_len);
#define EMULATION_FAILED -1
#define EMULATION_OK 0
#define EMULATION_RESTART 1
+#define EMULATION_INTERCEPTED 2
int x86_emulate_insn(struct x86_emulate_ctxt *ctxt);
int emulator_task_switch(struct x86_emulate_ctxt *ctxt,
u16 tss_selector, int reason,
OpenPOWER on IntegriCloud