summaryrefslogtreecommitdiff
path: root/include/linux/workqueue_api.h
diff options
context:
space:
mode:
authorAckerley Tng <ackerleytng@google.com>2026-07-23 14:08:08 -0700
committerSean Christopherson <seanjc@google.com>2026-07-27 09:42:42 -0700
commit3df611b5a04e916f406882a22f33b570831df404 (patch)
tree6de489269028975dbd1d613f31734729a8651a87 /include/linux/workqueue_api.h
parent19e612cd59bf447df63b77cda7feb7d82ed74f7a (diff)
KVM: guest_memfd: Only "prepare" folios for private pages
When getting a guest_memfd pfn, prepare the folio, i.e. convert its pages to private, if and only if the page is actually private. The misnamed prepare() hook exists specifically to allow x86's SNP to assign pages to the owning VM in the RMP when mapping private memory into a guest. Guarding the call will allow renaming the prepare() hook to better reflect its role, without creating a semantic mess, and will become a hard requirement once in-place conversion is supported, i.e. when CoCo VMs support SHARED guest_memfd pages. For all intents, no functional change intended (the sole arch hook is a nop for SHARED memory). Suggested-by: Michael Roth <michael.roth@amd.com> Reviewed-by: Fuad Tabba <tabba@google.com> [sean: rewrite changelog to fit the context] Signed-off-by: Ackerley Tng <ackerleytng@google.com> Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com> Link: https://patch.msgid.link/20260723210811.72720-7-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'include/linux/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions