diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2026-11-17 19:59:22 +0100 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2026-11-20 14:38:17 +0100 |
| commit | 031ef175269d11b6368a9bff71a6a14aaa52b3f4 (patch) | |
| tree | a452261de140a38803627fd837ed49d982ec397f /scripts | |
| parent | b076667f98ae16366ac6612cb535e4675d81d9b3 (diff) | |
KVM: SEV: never emulate after #NPF on paging structures
KVM cannot walk the encrypted page tables of SEV guests, so there is
no point in emulating the instruction if the #NPF fault was caused by
either data or code. In the latter case the instruction buffer is going
to be empty, so emulation was avoided by resuming the guest, but in the
data case KVM attempted emulation which is pointless.
Apply the existing check for PFERR_GUEST_PAGE_MASK even if the instruction
buffer was filled.
Reported-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Link: https://patch.msgid.link/20261117185922.466255-1-pbonzini@redhat.com
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
