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

2022-02-09 Thread Cornelia Huck
On Wed, Feb 09 2022, Eric Auger wrote: > Hi, > > On 2/9/22 12:10 PM, Cornelia Huck wrote: >> On Tue, Feb 08 2022, "Michael S. Tsirkin" wrote: >> >>> On Tue, Feb 08, 2022 at 06:42:57PM +0100, Cornelia Huck wrote: On Thu, Jan 27 2022, Jean-Philippe Brucker wrote: > @@ -988,9 +

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

2022-02-09 Thread Eric Auger
Hi, On 2/9/22 12:10 PM, Cornelia Huck wrote: > On Tue, Feb 08 2022, "Michael S. Tsirkin" wrote: > >> On Tue, Feb 08, 2022 at 06:42:57PM +0100, Cornelia Huck wrote: >>> On Thu, Jan 27 2022, Jean-Philippe Brucker wrote: >>> @@ -988,9 +1025,9 @@ static void virtio_iommu_device_realize(DeviceSt

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

2022-02-09 Thread Cornelia Huck
On Tue, Feb 08 2022, "Michael S. Tsirkin" wrote: > On Tue, Feb 08, 2022 at 06:42:57PM +0100, Cornelia Huck wrote: >> On Thu, Jan 27 2022, Jean-Philippe Brucker wrote: >> >> > @@ -988,9 +1025,9 @@ static void virtio_iommu_device_realize(DeviceState >> > *dev, Error **errp) >> > virtio_add_

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

2022-02-08 Thread Michael S. Tsirkin
On Tue, Feb 08, 2022 at 06:42:57PM +0100, Cornelia Huck wrote: > On Thu, Jan 27 2022, Jean-Philippe Brucker wrote: > > > @@ -988,9 +1025,9 @@ static void virtio_iommu_device_realize(DeviceState > > *dev, Error **errp) > > virtio_add_feature(&s->features, VIRTIO_IOMMU_F_INPUT_RANGE); > >

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

2022-02-08 Thread Cornelia Huck
On Thu, Jan 27 2022, Jean-Philippe Brucker wrote: > @@ -988,9 +1025,9 @@ static void virtio_iommu_device_realize(DeviceState > *dev, Error **errp) > virtio_add_feature(&s->features, VIRTIO_IOMMU_F_INPUT_RANGE); > virtio_add_feature(&s->features, VIRTIO_IOMMU_F_DOMAIN_RANGE); > vir

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

2022-01-31 Thread Eric Auger
On 1/27/22 3:29 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 storage. > >

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

2022-01-27 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