[PATCH v5 0/7] KVM: selftests: Implement ucall "pool" (for SEV)

Peter Gonda pgonda at google.com
Fri Aug 26 14:32:30 PDT 2022


On Thu, Aug 25, 2022 at 5:25 PM Sean Christopherson <seanjc at google.com> wrote:
>
> Non-KVM folks, y'all got pulled in because of the atomic_test_and_set_bit()
> patch.
>
> Rework the ucall infrastructure to use a pool of ucall structs to pass
> memory instead of using the guest's stack.  For confidential VMs with
> encrypted memory, e.g. SEV, the guest's stack "needs" to be private memory
> and so can't be used to communicate with the host.
>
> Convert all implementations to the pool as all of the complexity is hidden
> in common code, and supporting multiple interfaces adds its own kind of
> complexity.
>
> Tested on x86 and ARM, compile tested on s390 and RISC-V.
>

Thanks for the help on the ucall-pool Sean!

I rebased the SEV selftests on these and everything works as before

TESTED-BY: Peter Gonda <pgonda at google.com>



More information about the kvm-riscv mailing list