summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorMichael Roth <michael.roth@amd.com>2024-05-01 03:52:03 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2024-05-12 04:09:32 -0400
commit4f2e7aa1cfdf4374a4c876c9358e0d7035647eb1 (patch)
treee6434c1717d71b56217b6156c70c0658d0ad44ee /virt
parente366f92ea99e1961fbad5e2110900e9f4fcb249b (diff)
downloadlinux-4f2e7aa1cfdf4374a4c876c9358e0d7035647eb1.tar.gz
linux-4f2e7aa1cfdf4374a4c876c9358e0d7035647eb1.tar.bz2
linux-4f2e7aa1cfdf4374a4c876c9358e0d7035647eb1.zip
KVM: SEV: Implement gmem hook for initializing private pages
This will handle the RMP table updates needed to put a page into a private state before mapping it into an SEV-SNP guest. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Michael Roth <michael.roth@amd.com> Message-ID: <20240501085210.2213060-14-michael.roth@amd.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt')
-rw-r--r--virt/kvm/guest_memfd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/virt/kvm/guest_memfd.c b/virt/kvm/guest_memfd.c
index dfe50c64a552..9714add38852 100644
--- a/virt/kvm/guest_memfd.c
+++ b/virt/kvm/guest_memfd.c
@@ -39,8 +39,8 @@ static int kvm_gmem_prepare_folio(struct inode *inode, pgoff_t index, struct fol
gfn = slot->base_gfn + index - slot->gmem.pgoff;
rc = kvm_arch_gmem_prepare(kvm, gfn, pfn, compound_order(compound_head(page)));
if (rc) {
- pr_warn_ratelimited("gmem: Failed to prepare folio for index %lx, error %d.\n",
- index, rc);
+ pr_warn_ratelimited("gmem: Failed to prepare folio for index %lx GFN %llx PFN %llx error %d.\n",
+ index, gfn, pfn, rc);
return rc;
}
}