diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-11-30 11:14:35 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-11-30 11:50:39 -0500 |
commit | df0bb47baa95aad133820b149851d5b94cbc6790 (patch) | |
tree | 235c922e72ca465a95f9bdfef295872fbe3cdf57 /arch/m68k | |
parent | c1a81f3bd9b40edc1444dfaeac33f92cff0e770a (diff) | |
download | linux-stable-df0bb47baa95aad133820b149851d5b94cbc6790.tar.gz linux-stable-df0bb47baa95aad133820b149851d5b94cbc6790.tar.bz2 linux-stable-df0bb47baa95aad133820b149851d5b94cbc6790.zip |
KVM: x86: fix uninitialized variable use on KVM_REQ_TRIPLE_FAULT
If a triple fault was fixed by kvm_x86_ops.nested_ops->triple_fault (by
turning it into a vmexit), there is no need to leave vcpu_enter_guest().
Any vcpu->requests will be caught later before the actual vmentry,
and in fact vcpu_enter_guest() was not initializing the "r" variable.
Depending on the compiler's whims, this could cause the
x86_64/triple_fault_event_test test to fail.
Cc: Maxim Levitsky <mlevitsk@redhat.com>
Fixes: 92e7d5c83aff ("KVM: x86: allow L1 to not intercept triple fault")
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/m68k')
0 files changed, 0 insertions, 0 deletions