Re: [PATCH 2/3] virtio-iommu: Default to bypass during boot

2021-10-08 Thread Jean-Philippe Brucker
On Wed, Oct 06, 2021 at 03:04:15PM +0200, Eric Auger wrote: > > +if (config.bypass != dev->config.bypass) { > > +if (!virtio_vdev_has_feature(vdev, VIRTIO_IOMMU_F_BYPASS_CONFIG)) { > > +virtio_error(vdev, "cannot set config.bypass"); > > +return; > > +}

Re: [PATCH 2/3] virtio-iommu: Default to bypass during boot

2021-10-06 Thread Eric Auger
Hi jean, On 9/30/21 8:50 PM, Jean-Philippe Brucker wrote: > Currently the virtio-iommu device must be programmed before it allows > DMA from any PCI device. This can make the VM entirely unusable when a > virtio-iommu driver isn't present, for example in a bootloader that > loads the OS from

[PATCH 2/3] virtio-iommu: Default to bypass during boot

2021-09-30 Thread Jean-Philippe Brucker
Currently the virtio-iommu device must be programmed before it allows DMA from any PCI device. This can make the VM entirely unusable when a virtio-iommu driver isn't present, for example in a bootloader that loads the OS from storage. Similarly to the other vIOMMU implementations, default to DMA