Re: [PATCH v2 3/4] virtio-iommu: Support bypass domain

2022-02-08 Thread Jean-Philippe Brucker
On Tue, Feb 08, 2022 at 02:29:21PM +0100, Eric Auger wrote: > Hi Jean, > > On 2/8/22 2:09 PM, Dr. David Alan Gilbert wrote: > > * Jean-Philippe Brucker (jean-phili...@linaro.org) wrote: > >> On Wed, Feb 02, 2022 at 02:21:37PM +0100, Eric Auger wrote: > >> diff --git a/hw/virtio/virtio-iommu.c

Re: [PATCH v2 3/4] virtio-iommu: Support bypass domain

2022-02-08 Thread Eric Auger
Hi Jean, On 2/8/22 2:09 PM, Dr. David Alan Gilbert wrote: > * Jean-Philippe Brucker (jean-phili...@linaro.org) wrote: >> On Wed, Feb 02, 2022 at 02:21:37PM +0100, Eric Auger wrote: >> diff --git a/hw/virtio/virtio-iommu.c b/hw/virtio/virtio-iommu.c >> index ec02029bb6..a112428c65 100644 >>

Re: [PATCH v2 3/4] virtio-iommu: Support bypass domain

2022-02-08 Thread Dr. David Alan Gilbert
* Jean-Philippe Brucker (jean-phili...@linaro.org) wrote: > On Wed, Feb 02, 2022 at 02:21:37PM +0100, Eric Auger wrote: > > >>> diff --git a/hw/virtio/virtio-iommu.c b/hw/virtio/virtio-iommu.c > > >>> index ec02029bb6..a112428c65 100644 > > >>> --- a/hw/virtio/virtio-iommu.c > > >>> +++ b/hw/virtio

Re: [PATCH v2 3/4] virtio-iommu: Support bypass domain

2022-02-08 Thread Jean-Philippe Brucker
On Wed, Feb 02, 2022 at 02:21:37PM +0100, Eric Auger wrote: > >>> diff --git a/hw/virtio/virtio-iommu.c b/hw/virtio/virtio-iommu.c > >>> index ec02029bb6..a112428c65 100644 > >>> --- a/hw/virtio/virtio-iommu.c > >>> +++ b/hw/virtio/virtio-iommu.c > >>> @@ -43,6 +43,7 @@ > >>> > >>> typedef struc

Re: [PATCH v2 3/4] virtio-iommu: Support bypass domain

2022-02-02 Thread Eric Auger
Hi Dave, On 1/31/22 2:07 PM, Dr. David Alan Gilbert wrote: > * Eric Auger (eric.au...@redhat.com) wrote: >> Hi Jean, >> >> On 1/27/22 3:29 PM, Jean-Philippe Brucker wrote: >>> The driver can create a bypass domain by passing the >>> VIRTIO_IOMMU_ATTACH_F_BYPASS flag on the ATTACH request. Bypass d

Re: [PATCH v2 3/4] virtio-iommu: Support bypass domain

2022-01-31 Thread Dr. David Alan Gilbert
* Eric Auger (eric.au...@redhat.com) wrote: > Hi Jean, > > On 1/27/22 3:29 PM, Jean-Philippe Brucker wrote: > > The driver can create a bypass domain by passing the > > VIRTIO_IOMMU_ATTACH_F_BYPASS flag on the ATTACH request. Bypass domains > > perform slightly better than domains with identity ma

Re: [PATCH v2 3/4] virtio-iommu: Support bypass domain

2022-01-31 Thread Eric Auger
Hi Jean, On 1/27/22 3:29 PM, Jean-Philippe Brucker wrote: > The driver can create a bypass domain by passing the > VIRTIO_IOMMU_ATTACH_F_BYPASS flag on the ATTACH request. Bypass domains > perform slightly better than domains with identity mappings since they > skip translation. > > Signed-off-by:

[PATCH v2 3/4] virtio-iommu: Support bypass domain

2022-01-27 Thread Jean-Philippe Brucker
The driver can create a bypass domain by passing the VIRTIO_IOMMU_ATTACH_F_BYPASS flag on the ATTACH request. Bypass domains perform slightly better than domains with identity mappings since they skip translation. Signed-off-by: Jean-Philippe Brucker --- hw/virtio/virtio-iommu.c | 32 +++