diff options
| author | Loc Nguyen <loc@ryzome.com> | 2026-10-02 05:42:54 +0000 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-10-02 07:49:40 -0700 |
| commit | 88b23a2e8286b7016c3b58dc10093cf28c22aa3d (patch) | |
| tree | 7bbdad2ed268922057e0484371bcd9bdafcf32b0 /scripts/basic/split-include.c | |
| parent | 34f749161dabac48a6aeae36ffd5f55f84023d61 (diff) | |
| download | linux-88b23a2e8286b7016c3b58dc10093cf28c22aa3d.tar.gz linux-88b23a2e8286b7016c3b58dc10093cf28c22aa3d.zip | |
KVM: x86: Request event processing for exception VM-Exits
Request event processing whenever kvm_queue_exception_vmexit() queues an
exception VM-Exit. Most callers reach the helper through
kvm_multiple_exception(), which already sets KVM_REQ_EVENT, but nested
asynchronous page faults call it directly.
Without another event request, vcpu_enter_guest() skips
kvm_check_and_inject_events() and re-enters L2. A subsequent VM-Exit can
clear the pending exception while reconstructing vectoring state, losing
the synthetic #PF VM-Exit. The APF reason remains PAGE_NOT_PRESENT and a
later regular #PF can consume the stale value.
Setting KVM_REQ_EVENT in the common helper ensures that L1 receives the
queued VM-Exit before KVM re-enters L2.
Fixes: 7709aba8f716 ("KVM: x86: Morph pending exceptions to pending VM-Exits at queue time")
Cc: stable@vger.kernel.org
Signed-off-by: Loc Nguyen <loc@ryzome.com>
Link: https://patch.msgid.link/20261002053723.3275202-2-loc@ryzome.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions
