Re: [PATCH] make vfio and DAX cache work together

2021-04-30 Thread Dev Audsin
iamson (alex.william...@redhat.com) wrote: > > On Thu, 29 Apr 2021 09:44:51 +0100 > > "Dr. David Alan Gilbert" wrote: > > > > > * Alex Williamson (alex.william...@redhat.com) wrote: > > > > On Wed, 28 Apr 2021 20:17:23 +0100 > > > > "D

Re: [PATCH] make vfio and DAX cache work together

2021-04-28 Thread Dev Audsin
021 17:29:37 +0100 > > Dev Audsin wrote: > > > > > Hi Alex > > > > > > Based on your comments and thinking a bit, wonder if it makes sense to > > > allow DMA map for the DAX cache but make unexpected mappings to be not > > > fatal. P

Re: [PATCH] make vfio and DAX cache work together

2021-04-27 Thread Dev Audsin
+0100 > Dev Audsin wrote: > > > Hi Alex and David > > > > @Alex: > > > > Justification on why this region cannot be a DMA target for the device, > > > > virtio-fs with DAX is currently not compatible with NIC Pass through. > > When a SR-IOV VF att

Re: [PATCH] skip virtio fs cache section to enable NIC pass through

2021-04-26 Thread Dev Audsin
will potentially improve performance for workloads which are I/O and network intensive On Mon, Apr 26, 2021 at 9:24 PM Dev Audsin wrote: > Signed-off-by: Dev Audsin > --- > hw/vfio/common.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/hw/vfio/

[PATCH] skip virtio fs cache section to enable NIC pass through

2021-04-26 Thread Dev Audsin
Signed-off-by: Dev Audsin --- hw/vfio/common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/vfio/common.c b/hw/vfio/common.c index 6ff1daa763..3af70238bd 100644 --- a/hw/vfio/common.c +++ b/hw/vfio/common.c @@ -541,7 +541,8 @@ static int vfio_host_win_del

[no subject]

2021-04-26 Thread Dev Audsin
virtio-fs with DAX is currently not compatible with NIC Pass through. When a SR-IOV VF attaches to a qemu process, vfio will try to pin the entire DAX Window but it is empty when the guest boots and will fail. A method to make VFIO and DAX to work together is to make vfio skip DAX cache.

[PATCH] skip virtio fs cache section to enable NIC passthrough

2021-04-26 Thread Dev Audsin
Signed-off-by: Dev Audsin --- hw/vfio/common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/vfio/common.c b/hw/vfio/common.c index 6ff1daa763..3af70238bd 100644 --- a/hw/vfio/common.c +++ b/hw/vfio/common.c @@ -541,7 +541,8 @@ static int vfio_host_win_del

Re: [PATCH] make vfio and DAX cache work together

2021-04-26 Thread Dev Audsin
Hi Alex and David @Alex: Justification on why this region cannot be a DMA target for the device, virtio-fs with DAX is currently not compatible with NIC Pass through. When a SR-IOV VF attaches to a qemu process, vfio will try to pin the entire DAX Window but it is empty when the guest boots and