diff options
| author | Paolo Bonzini <[email protected]> | 2022-11-30 16:14:35 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2022-11-30 16:18:20 +0000 |
| commit | e542baf30b48605d4336bf54b98e76b8fb98af30 (patch) | |
| tree | cff04a9ff3efc9015ca361dedccb0b0abd0f7dbd /drivers/net/wwan/iosm/iosm_ipc_mux.c | |
| parent | Merge tag 'kvm-s390-master-6.1-2' of https://git.kernel.org/pub/scm/linux/ker... (diff) | |
| download | kernel-e542baf30b48605d4336bf54b98e76b8fb98af30.tar.gz kernel-e542baf30b48605d4336bf54b98e76b8fb98af30.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 <[email protected]>
Fixes: 92e7d5c83aff ("KVM: x86: allow L1 to not intercept triple fault")
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_mux.c')
0 files changed, 0 insertions, 0 deletions
