aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorJeremi Piotrowski <[email protected]>2023-03-08 15:05:31 +0000
committerJakub Kicinski <[email protected]>2023-03-17 21:57:52 -0700
commit6365ba64b4dbe8b59ddaeaa724b281f3787715d5 (patch)
tree22b37a8da0da4dcbb9ef3d98511d60c9f9ab3bcf /tools/perf/scripts/python/mem-phys-addr.py
parent1118aa4c70a6978afb0c4391ad29826c14b842b3 (diff)
ptp: kvm: Use decrypted memory in confidential guest on x86
KVM_HC_CLOCK_PAIRING currently fails inside SEV-SNP guests because the guest passes an address to static data to the host. In confidential computing the host can't access arbitrary guest memory so handling the hypercall runs into an "rmpfault". To make the hypercall work, the guest needs to explicitly mark the memory as decrypted. Do that in kvm_arch_ptp_init(), but retain the previous behavior for non-confidential guests to save us from having to allocate memory. Add a new arch-specific function (kvm_arch_ptp_exit()) to free the allocation and mark the memory as encrypted again. Signed-off-by: Jeremi Piotrowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions