KVM: x86: skip writeback on injection of nested exception
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Sep 2014 17:46:15 +0000 (19:46 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 5 Sep 2014 10:01:06 +0000 (12:01 +0200)
commitef54bcfeea6c8b04e2a4f9396e16d88558aa2eee
treeb55206cb61665de87690edff04c6f8d21889913d
parent5e352519519623a0b62587c606280e534d0cf1d9
KVM: x86: skip writeback on injection of nested exception

If a nested page fault happens during emulation, we will inject a vmexit,
not a page fault.  However because writeback happens after the injection,
we will write ctxt->eip from L2 into the L1 EIP.  We do not write back
if an instruction caused an interception vmexit---do the same for page
faults.

Suggested-by: Gleb Natapov <gleb@kernel.org>
Reviewed-by: Gleb Natapov <gleb@kernel.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c