Re: [PATCH V2 4/5] virtio-pci: implement synchronize_vqs()

From: Halil Pasic
Date: Tue Apr 12 2022 - 05:30:37 EST


On Tue, 12 Apr 2022 10:24:35 +0800
Jason Wang <jasowang@xxxxxxxxxx> wrote:

> > Regarding the question "are we safe against notifications before
> > indicators have been registered" I think we really need to think about
> > something like Secure Execution. We don't have, and we are unlikely
> > to have in hardware virtio-ccw implementations, and for a malicious hypervisor
> > that has full access to the guest memory hardening makes no sense.
>
> Does s390 have something like memory encryption? (I guess yes). In the
> case of x86 VM encryption, the I/O buffers were now done via software
> IOTLB, that's why hardening of the virtio driver is needed to prevent
> the hypervisor to poke the swiotlb etc.

Yep! Secure Execution is a confidential computing solution which is much
like encrypted guest memory, except for one gets exceptions when trying
to access private memory instead of ending up with garbage because of
the encryption. These improvements are IMHO relevant to us!

Regards,
Halil