Re: [RFC 06/16] KVM: selftests: add library for creating/interacting with SEV guests

From: Paolo Bonzini
Date: Thu Oct 21 2021 - 11:43:31 EST


On 12/10/21 14:55, Michael Roth wrote:
One more I should mention:

4) After encryption, the page table is no longer usable for translations by
stuff like addr_gva2gpa(), so tests would either need to be
audited/updated to do these translations upfront and only rely on
cached/stored values thereafter, or perhaps a "shadow" copy could be
maintained by kvm_util so the translations will continue to work
after encryption.

Yeah, this is a big one. Considering that a lot of the selftests are for specific bugs, the benefit in running them with SEV is relatively low. That said, there could be some simple tests where it makes sense, so it'd be nice to plan a little ahead so that it isn't _too_ difficult.

Paolo