Commit 4e96f01
committed
KVM: SVM: Invalidate "next" SNP VMSA GPA even on failure
When processing an SNP AP Creation event, invalidate the "next" VMSA GPA
even if acquiring the page/pfn for the new VMSA fails. In practice, the
next GPA will never be used regardless of whether or not its invalidated,
as the entire flow is guarded by snp_ap_waiting_for_reset, and said guard
and snp_vmsa_gpa are always written as a pair. But that's really hard to
see in the code.
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/r/20250227012541.3234589-11-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 5279d6f commit 4e96f01
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3880 | 3880 | | |
3881 | 3881 | | |
3882 | 3882 | | |
| 3883 | + | |
3883 | 3884 | | |
3884 | 3885 | | |
3885 | 3886 | | |
| |||
3910 | 3911 | | |
3911 | 3912 | | |
3912 | 3913 | | |
3913 | | - | |
3914 | | - | |
3915 | 3914 | | |
3916 | 3915 | | |
3917 | 3916 | | |
| |||
0 commit comments