[prev in list] [next in list] [prev in thread] [next in thread]
List: qemu-devel
Subject: Re: [PATCH v1 06/24] vfio-user: Define type vfio_user_pci_dev_info
From: John Levon <levon () movementarian ! org>
Date: 2022-12-12 10:57:21
Message-ID: Y5cKhIY/F4/BwORD () movementarian ! org
[Download RAW message or body]
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
regards
john
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic