All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] vfio/common: init giommu_list and hostwin_list of vfio container
@ 2017-11-22  7:58 Liu, Yi L
  2017-11-22  8:45 ` no-reply
  2017-11-29 15:41 ` Alex Williamson
  0 siblings, 2 replies; 4+ messages in thread
From: Liu, Yi L @ 2017-11-22  7:58 UTC (permalink / raw)
  To: qemu-devel
  Cc: mst, david, pbonzini, alex.williamson, aik, yi.l.liu, Liu, Yi L

The init of giommu_list and hostwin_list is missed during container
initialization.

Signed-off-by: Liu, Yi L <yi.l.liu@linux.intel.com>
---
 hw/vfio/common.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/vfio/common.c b/hw/vfio/common.c
index 7b2924c..14c5940 100644
--- a/hw/vfio/common.c
+++ b/hw/vfio/common.c
@@ -990,6 +990,8 @@ static int vfio_connect_container(VFIOGroup *group, AddressSpace *as,
     container = g_malloc0(sizeof(*container));
     container->space = space;
     container->fd = fd;
+    QLIST_INIT(&container->giommu_list);
+    QLIST_INIT(&container->hostwin_list);
     if (ioctl(fd, VFIO_CHECK_EXTENSION, VFIO_TYPE1_IOMMU) ||
         ioctl(fd, VFIO_CHECK_EXTENSION, VFIO_TYPE1v2_IOMMU)) {
         bool v2 = !!ioctl(fd, VFIO_CHECK_EXTENSION, VFIO_TYPE1v2_IOMMU);
-- 
1.9.1

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

end of thread, other threads:[~2017-11-30  5:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-22  7:58 [Qemu-devel] [PATCH] vfio/common: init giommu_list and hostwin_list of vfio container Liu, Yi L
2017-11-22  8:45 ` no-reply
2017-11-29 15:41 ` Alex Williamson
2017-11-30  4:45   ` Liu, Yi L

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.