All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] skip virtio fs cache section to enable NIC pass through
@ 2021-04-26 20:24 Dev Audsin
  2021-04-26 20:27 ` Dev Audsin
  0 siblings, 1 reply; 3+ messages in thread
From: Dev Audsin @ 2021-04-26 20:24 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, alex.williamson, dgilbert

[-- Attachment #1: Type: text/plain, Size: 764 bytes --]

 Signed-off-by: Dev Audsin <dev.devaqemu@gmail.com>
---
 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(VFIOContainer *container,
hwaddr min_iova,

 static bool vfio_listener_skipped_section(MemoryRegionSection *section)
 {
-    return (!memory_region_is_ram(section->mr) &&
+    return (!strcmp(memory_region_name(section->mr), "virtio-fs-cache")) ||
+          (!memory_region_is_ram(section->mr) &&
             !memory_region_is_iommu(section->mr)) ||
            /*
             * Sizing an enabled 64-bit BAR can cause spurious mappings to
-- 
2.25.1

[-- Attachment #2: Type: text/html, Size: 1057 bytes --]

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-27  0:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-26 20:24 [PATCH] skip virtio fs cache section to enable NIC pass through Dev Audsin
2021-04-26 20:27 ` Dev Audsin
2021-04-26 20:54   ` Alex Williamson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.