diff options
| author | Yan Zhao <[email protected]> | 2025-03-18 01:32:38 +0000 |
|---|---|---|
| committer | Sean Christopherson <[email protected]> | 2025-04-28 18:03:06 +0000 |
| commit | 988da7820206405ef2d8afde83c2c2cd7af503a2 (patch) | |
| tree | 0322d35ef5f1db0377a3306c25b7f7adeea5aa21 /rust/helpers/mutex.c | |
| parent | KVM: x86/tdp_mmu: Merge prefetch and access checks for spurious faults (diff) | |
| download | kernel-988da7820206405ef2d8afde83c2c2cd7af503a2.tar.gz kernel-988da7820206405ef2d8afde83c2c2cd7af503a2.zip | |
KVM: x86/tdp_mmu: WARN if PFN changes for spurious faults
Add a WARN() to assert that KVM does _not_ change the PFN of a
shadow-present SPTE during spurious fault handling.
KVM should _never_ change the PFN of a shadow-present SPTE and TDP MMU
already BUG()s on this. However, spurious faults just return early before
the existing BUG() could be hit.
Suggested-by: Sean Christopherson <[email protected]>
Signed-off-by: Yan Zhao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions
