summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2026-04-08 11:42:16 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2026-05-10 14:55:08 +0200
commit878fffd76c22b8afb53e4b9409f355a99b9f3ee1 (patch)
tree1196f9c1606c54ad6ca0f102ae9aaf70e17b021f /tools/lib/python
parentfe080f58dec24049b4e5ecfaab28ba0881c67abe (diff)
KVM: SVM: work around errata 1218
According to AMD, the hypervisor may not be able to determine whether a fault was a GMET fault or an NX fault based on EXITINFO1, and software "must read the relevant VMCB to determine whether a fault was a GMET fault or an NX fault". The APM further details that they meant the CPL field. KVM uses the page fault error code to distinguish the causes of a nested page fault, so recalculate the PFERR_USER_MASK bit of the vmexit information. Only do it for fetches and only if GMET is in use, because KVM does not differentiate based on PFERR_USER_MASK for other nested NPT page faults. Tested-by: David Riley <d.riley@proxmox.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions