Re: [PATCH v6 12/13] confidential guest support: Alter virtio default properties for protected guests

2021-01-12 Thread Greg Kurz
On Tue, 12 Jan 2021 15:45:07 +1100 David Gibson wrote: > The default behaviour for virtio devices is not to use the platforms normal > DMA paths, but instead to use the fact that it's running in a hypervisor > to directly access guest memory. That doesn't work if the guest's memory > is

[PATCH v6 12/13] confidential guest support: Alter virtio default properties for protected guests

2021-01-11 Thread David Gibson
The default behaviour for virtio devices is not to use the platforms normal DMA paths, but instead to use the fact that it's running in a hypervisor to directly access guest memory. That doesn't work if the guest's memory is protected from hypervisor access, such as with AMD's SEV or POWER's PEF.