qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v1 06/24] vfio-user: Define type vfio_user_pci_dev_info


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v1 06/24] vfio-user: Define type vfio_user_pci_dev_info
Date: Mon, 12 Dec 2022 12:46:24 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.1

On 12/12/22 12:03, John Levon wrote:
On Mon, Dec 12, 2022 at 10:01:33AM +0100, Cédric Le Goater wrote:

diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index 80b03a2..dc19869 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -19,6 +19,7 @@
    */
   #include "qemu/osdep.h"
+#include CONFIG_DEVICES
   #include <linux/vfio.h>
   #include <sys/ioctl.h>
@@ -3421,3 +3422,91 @@ static void register_vfio_pci_dev_type(void)
   }
   type_init(register_vfio_pci_dev_type)
+
+
+#ifdef CONFIG_VFIO_USER_PCI

Why not introduce a new file hw/vfio/user.c file ? It would be
cleaner.

user.c is in this series, and holds the vfio-user implementation - it's not a
PCI specific thing. So it would have to be hw/vfio/user_pci.c or something

Or hw/vfio/pci-user.c



reply via email to

[Prev in Thread] Current Thread [Next in Thread]