Re: [RFC V2 PATCH 0/8] selftests: KVM: selftests for fd-based approach of supporting private memory

From: Shuah Khan
Date: Thu May 12 2022 - 14:04:34 EST


On 5/10/22 6:08 PM, Vishal Annapurve wrote:
This v2 series implements selftests targeting the feature floated by Chao
via:
https://lore.kernel.org/linux-mm/20220310140911.50924-1-chao.p.peng@xxxxxxxxxxxxxxx/

Below changes aim to test the fd based approach for guest private memory
in context of normal (non-confidential) VMs executing on non-confidential
platforms.

priv_memfd_test.c file adds a suite of selftests to access private memory
from the guest via private/shared accesses and checking if the contents
can be leaked to/accessed by vmm via shared memory view.

Updates in V2:
1) Tests are added to exercise implicit/explicit memory conversion paths.
2) Test is added to exercise UPM feature without double memory allocation.


+ shuah <shuah@xxxxxxxxxx>

Adding my correct kernel.org address. Please make sure to run
get_maintainers.pl to get the right addresses for miantianers.

thanks,
-- Shuah