summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2011-04-12 09:36:21 (GMT)
committerAvi Kivity <avi@redhat.com>2011-05-22 12:39:49 (GMT)
commit8d7d810255982bfcc355cdb8972d72843acb0cf8 (patch)
tree9a486a1b741bff8e6d0620e63261b9f8086f7b1b
parent46561646ce409ad96c22645362c113de04f60bfb (diff)
downloadlinux-8d7d810255982bfcc355cdb8972d72843acb0cf8.tar.xz
KVM: mmio_fault_cr2 is not used
Remove unused variable mmio_fault_cr2. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r--arch/x86/include/asm/kvm_host.h1
-rw-r--r--arch/x86/kvm/x86.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index 6cfc1ab..afb0e69 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -358,7 +358,6 @@ struct kvm_vcpu_arch {
struct fpu guest_fpu;
u64 xcr0;
- gva_t mmio_fault_cr2;
struct kvm_pio_request pio;
void *pio_data;
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index a831d5d..e3ac212 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -4561,7 +4561,7 @@ int x86_emulate_instruction(struct kvm_vcpu *vcpu,
bool writeback = true;
kvm_clear_exception_queue(vcpu);
- vcpu->arch.mmio_fault_cr2 = cr2;
+
/*
* TODO: fix emulate.c to use guest_read/write_register
* instead of direct ->regs accesses, can save hundred cycles