[PATCH 02/14] vfio: refactor out vfio_pci_config_setup()

2025-04-10 Thread John Levon
Refactor the PCI config setup code out of vfio_realize() for readability. Reviewed-by: Cédric Le Goater Signed-off-by: John Levon --- hw/vfio/pci.c | 176 +++--- 1 file changed, 94 insertions(+), 82 deletions(-) diff --git a/hw/vfio/pci.c b/hw/vfio/p

Re: [PATCH 02/14] vfio: refactor out vfio_pci_config_setup()

2025-04-09 Thread Tomita Moeko
Hi, John On 4/9/25 21:48, John Levon wrote: > Refactor the PCI config setup code out of vfio_realize() for > readability. > > Reviewed-by: Cédric Le Goater > Signed-off-by: John Levon > --- > hw/vfio/pci.c | 176 +++--- > 1 file changed, 94 insertion

Re: [PATCH 02/14] vfio: refactor out vfio_pci_config_setup()

2025-04-09 Thread John Levon
On Wed, Apr 09, 2025 at 11:38:01PM +0800, Tomita Moeko wrote: > On 4/9/25 21:48, John Levon wrote: > > Refactor the PCI config setup code out of vfio_realize() for > > readability. > > +if (!vfio_msix_early_setup(vdev, errp)) { > > +return false; > > +} > > + > > +vfio_bars_re