KVM: x86: Mark KVM_X86_SW_PROTECTED_VM as supporting guest_memfd shared memory
The KVM_X86_SW_PROTECTED_VM type is meant for experimentation and
does not have any underlying support for protected guests. This
makes it a good candidate for testing mapping shared memory.
Therefore, when the kconfig option is enabled, mark
KVM_X86_SW_PROTECTED_VM as supporting shared memory.
This means that this memory is considered by guest_memfd to be
shared with the host, with the possibility of in-place conversion
between shared and private. This allows the host to map and fault
in guest_memfd memory belonging to this VM type.
Change-Id: I52941c7313834772683cce6758563f01af608c26
Signed-off-by: Fuad Tabba <tabba@google.com>
2 files changed