summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/kvm_emulate.h
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2010-04-28 19:15:22 +0300
committerAvi Kivity <avi@redhat.com>2010-08-01 10:35:28 +0300
commit9de41573675cbace09b02ef386f3e9c8739d495c (patch)
treee13a6a4b2326103472f7f18b6fd8c855f5ffdacf /arch/x86/include/asm/kvm_emulate.h
parent1c11e713576edf33b95669be9c2dc0ff1e0c90d3 (diff)
downloadop-kernel-dev-9de41573675cbace09b02ef386f3e9c8739d495c.zip
op-kernel-dev-9de41573675cbace09b02ef386f3e9c8739d495c.tar.gz
KVM: x86 emulator: introduce read cache
Introduce read cache which is needed for instruction that require more then one exit to userspace. After returning from userspace the instruction will be re-executed with cached read value. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_emulate.h')
-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 0b2729b..288cbed 100644
--- a/arch/x86/include/asm/kvm_emulate.h
+++ b/arch/x86/include/asm/kvm_emulate.h
@@ -186,6 +186,7 @@ struct decode_cache {
unsigned long modrm_val;
struct fetch_cache fetch;
struct read_cache io_read;
+ struct read_cache mem_read;
};
struct x86_emulate_ctxt {
OpenPOWER on IntegriCloud