summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/kvm_emulate.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-09-13 10:45:40 +0300
committerAvi Kivity <avi@redhat.com>2011-09-25 19:52:47 +0300
commitf09ed83e211d253809e575e05bd4de1e335c0cb2 (patch)
treebb769d8d7375b457e70adadb121663af43186561 /arch/x86/include/asm/kvm_emulate.h
parent3329ece161ad65ea31d825720e270f3a79ebba92 (diff)
downloadlinux-stable-f09ed83e211d253809e575e05bd4de1e335c0cb2.tar.gz
linux-stable-f09ed83e211d253809e575e05bd4de1e335c0cb2.tar.bz2
linux-stable-f09ed83e211d253809e575e05bd4de1e335c0cb2.zip
KVM: x86 emulator: move memop, memopp into emulation context
Simplifies further generalization of decode. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_emulate.h')
-rw-r--r--arch/x86/include/asm/kvm_emulate.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_emulate.h b/arch/x86/include/asm/kvm_emulate.h
index 6040d115ef51..56bac3e3423e 100644
--- a/arch/x86/include/asm/kvm_emulate.h
+++ b/arch/x86/include/asm/kvm_emulate.h
@@ -275,6 +275,8 @@ struct x86_emulate_ctxt {
unsigned long _eip;
/* Fields above regs are cleared together. */
unsigned long regs[NR_VCPU_REGS];
+ struct operand memop;
+ struct operand *memopp;
struct fetch_cache fetch;
struct read_cache io_read;
struct read_cache mem_read;