KVM: selftests: Explicitly ucall pool from shared memory
authorPeter Gonda <pgonda@google.com>
Fri, 23 Feb 2024 00:42:53 +0000 (16:42 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 28 Feb 2024 20:58:13 +0000 (20:58 +0000)
commit31e00dae72fda939a084cda86b068ac9c302a2d3
treeb3705e3ea4095c8f5cc99d5090613bc2332cd57b
parentd210eebb51a23ce45b16c493a51c17b664e81de7
KVM: selftests: Explicitly ucall pool from shared memory

Allocate the common ucall pool using vm_vaddr_alloc_shared() so that the
ucall structures will be placed in shared (unencrypted) memory for VMs
with support for protected (encrypted) memory, e.g. x86's SEV.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Sean Christopherson <seanjc@google.com>
Cc: Vishal Annapurve <vannapurve@google.com>
Cc: Ackerly Tng <ackerleytng@google.com>
cc: Andrew Jones <andrew.jones@linux.dev>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Michael Roth <michael.roth@amd.com>
Tested-by: Carlos Bilbao <carlos.bilbao@amd.com>
Signed-off-by: Peter Gonda <pgonda@google.com>
[sean: massage changelog]
Link: https://lore.kernel.org/r/20240223004258.3104051-7-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/lib/ucall_common.c