summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/kvm_emulate.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-09-13 07:45:40 (GMT)
committerAvi Kivity <avi@redhat.com>2011-09-25 16:52:47 (GMT)
commitf09ed83e211d253809e575e05bd4de1e335c0cb2 (patch)
treebb769d8d7375b457e70adadb121663af43186561 /arch/x86/include/asm/kvm_emulate.h
parent3329ece161ad65ea31d825720e270f3a79ebba92 (diff)
downloadlinux-fsl-qoriq-f09ed83e211d253809e575e05bd4de1e335c0cb2.tar.xz
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 6040d11..56bac3e 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;