diff options
| author | Sean Christopherson <seanjc@google.com> | 2026-07-23 17:47:53 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-07-28 13:48:43 -0700 |
| commit | d196e4d91e7845b9e65436574bff63234a6f4d1d (patch) | |
| tree | 4de50516efecabb754e82b6f8defd5e7a28df811 /scripts/git.orderFile | |
| parent | 11722439fb206c88e6f31be54173efa9880b4ccb (diff) | |
| download | linux-d196e4d91e7845b9e65436574bff63234a6f4d1d.tar.gz linux-d196e4d91e7845b9e65436574bff63234a6f4d1d.zip | |
KVM: nSVM: Add CLASS()es for automagically handling local kvm_vcpu_map() usage
Add CLASS() definitions for locally mapping a PFN using kvm_vcpu_map()
given a vCPU+gfn pair. In addition to eliminating the need to manually
do unmap(), e.g. in error paths, this will allow hardening KVM against
double-mapping without having to manually ensure every on-stack declaration
is zero-initialized.
Use "map local" as the primary terminology as the basic concept is more or
less the same as kmap_local(): ensure the current context has a kernel
mapping to the underlying memory.
Immediately convert the relatively straightforward nested SVM flows, and
defer converting the more involved SMM flows to a separate change.
No functional change intended.
Cc: Yosry Ahmed <yosry@kernel.org>
Link: https://patch.msgid.link/20260724004757.131420-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/git.orderFile')
0 files changed, 0 insertions, 0 deletions
