]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: SEV: Automatically switch reclaimed pages to shared
authorMichael Roth <michael.roth@amd.com>
Tue, 28 May 2024 20:58:09 +0000 (15:58 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 3 Jun 2024 16:36:52 +0000 (12:36 -0400)
commitfebff040b1a6781c46b3670e73fbcb707e731e7e
treee7e8c57f1066aaadef2b33d740aa46db55dbc15e
parent6f627b425378915b6eda30908bedefc21b70b8c4
KVM: SEV: Automatically switch reclaimed pages to shared

Currently there's a consistent pattern of always calling
host_rmp_make_shared() immediately after snp_page_reclaim(), so go ahead
and handle it automatically as part of snp_page_reclaim(). Also rename
it to kvm_rmp_make_shared() to more easily distinguish it as a
KVM-specific variant of the more generic rmp_make_shared() helper.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Michael Roth <michael.roth@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c