diff options
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/include/asm/kvm_emulate.h | 2 | ||||
-rw-r--r-- | arch/x86/kvm/x86.c | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/include/asm/kvm_emulate.h b/arch/x86/include/asm/kvm_emulate.h index 51341d6b2f31..127ea3e17171 100644 --- a/arch/x86/include/asm/kvm_emulate.h +++ b/arch/x86/include/asm/kvm_emulate.h | |||
@@ -269,8 +269,6 @@ struct x86_emulate_ctxt { | |||
269 | struct x86_emulate_ops *ops; | 269 | struct x86_emulate_ops *ops; |
270 | 270 | ||
271 | /* Register state before/after emulation. */ | 271 | /* Register state before/after emulation. */ |
272 | struct kvm_vcpu *vcpu; | ||
273 | |||
274 | unsigned long eflags; | 272 | unsigned long eflags; |
275 | unsigned long eip; /* eip before instruction emulation */ | 273 | unsigned long eip; /* eip before instruction emulation */ |
276 | /* Emulated execution mode, represented by an X86EMUL_MODE value. */ | 274 | /* Emulated execution mode, represented by an X86EMUL_MODE value. */ |
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 65a5b0c545aa..a831d5d8ca14 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -4463,7 +4463,6 @@ static void init_emulate_ctxt(struct kvm_vcpu *vcpu) | |||
4463 | 4463 | ||
4464 | kvm_x86_ops->get_cs_db_l_bits(vcpu, &cs_db, &cs_l); | 4464 | kvm_x86_ops->get_cs_db_l_bits(vcpu, &cs_db, &cs_l); |
4465 | 4465 | ||
4466 | vcpu->arch.emulate_ctxt.vcpu = vcpu; | ||
4467 | vcpu->arch.emulate_ctxt.eflags = kvm_get_rflags(vcpu); | 4466 | vcpu->arch.emulate_ctxt.eflags = kvm_get_rflags(vcpu); |
4468 | vcpu->arch.emulate_ctxt.eip = kvm_rip_read(vcpu); | 4467 | vcpu->arch.emulate_ctxt.eip = kvm_rip_read(vcpu); |
4469 | vcpu->arch.emulate_ctxt.mode = | 4468 | vcpu->arch.emulate_ctxt.mode = |