On Fri, Oct 7, 2022 at 1:32 AM Sean Christopherson <seanjc@xxxxxxxxxx> wrote: > > On Fri, Aug 19, 2022, Vishal Annapurve wrote: > > Add a helper to query guest physical address for ucall pool > > so that guest can mark the page as accessed shared or private. > > > > Signed-off-by: Vishal Annapurve <vannapurve@xxxxxxxxxx> > > --- > > This should be handled by the SEV series[*]. Can you provide feedback on that > series if having a generic way to map the ucall address as shared won't work? > > [*] https://lore.kernel.org/all/20220829171021.701198-1-pgonda@xxxxxxxxxx Based on the SEV series you referred to, selftests are capable of accessing ucall pool memory by having encryption bit cleared (as set by guest pagetables) as allowed by generic API vm_vaddr_alloc_shared. This change is needed in the context of fd based private memory where guest (specifically non-confidential/sev guests) code in the selftests will have to explicitly indicate that ucall pool address range will be accessed by guest as shared.