summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorYosry Ahmed <yosry@kernel.org>2026-05-27 23:46:56 +0000
committerSean Christopherson <seanjc@google.com>2026-05-27 18:45:48 -0700
commit42ff88db18a5a42f619eab1d862e04e6505e8ee6 (patch)
tree26bfb76b1ccff2c145c85132a2766f82e4bd2c89 /tools/lib/python
parent8862376260c4a19329c8ba8b31d2e12510d2401d (diff)
KVM: nSVM: Bail early out of VMRUN emulation if advancing RIP fails
If svm_skip_emulation_instruction() fails, then RIP could not be advanced correctly (e.g. decode failure when NextRIP is not available). KVM will exit to userspace to handle the emulation failure, but only after stuffing the wrong RIP into vmcb01 and entering guest mode. Bail early and exit to userspace before committing any side-effects of emulating the VMRUN (e.g. entering guest mode). Fixes: c8e16b78c614 ("x86: KVM: svm: eliminate hardcoded RIP advancement from vmrun_interception()") Signed-off-by: Yosry Ahmed <yosry@kernel.org> Link: https://patch.msgid.link/20260527234711.4175166-3-yosry@kernel.org Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions