diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2010-05-05 16:04:41 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-19 11:36:37 +0300 |
commit | 3f0fd2927b737c0ac2e04af7858b60d1e927d4b1 (patch) | |
tree | 55e0f81f014141d94ee6cc4edb885c196a0e644b | |
parent | 9ed3c444ab8987c7b219173a2f7807e3f71e234e (diff) | |
download | op-kernel-dev-3f0fd2927b737c0ac2e04af7858b60d1e927d4b1.zip op-kernel-dev-3f0fd2927b737c0ac2e04af7858b60d1e927d4b1.tar.gz |
KVM: x86: Fix exception reinjection forced to true
The patch merged recently which allowed to mark an exception
as reinjected has a bug as it always marks the exception as
reinjected. This breaks nested-svm shadow-on-shadow
implementation.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 54f73b6..161ede2 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -277,7 +277,7 @@ static void kvm_multiple_exception(struct kvm_vcpu *vcpu, vcpu->arch.exception.has_error_code = has_error; vcpu->arch.exception.nr = nr; vcpu->arch.exception.error_code = error_code; - vcpu->arch.exception.reinject = true; + vcpu->arch.exception.reinject = reinject; return; } |