[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v5 05/10] hw/vfio/pci: split vfio_get_device
From: |
David Gibson |
Subject: |
Re: [Qemu-devel] [PATCH v5 05/10] hw/vfio/pci: split vfio_get_device |
Date: |
Tue, 12 Aug 2014 12:41:47 +1000 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Sat, Aug 09, 2014 at 03:25:44PM +0100, Eric Auger wrote:
> vfio_get_device now takes a VFIODevice as argument. The function is split
> into 4 functional parts: dev_info query, device check, region populate
> and interrupt populate. the last 3 are specialized by parent device and
> are added into DeviceOps.
Why is splitting these up into 4 stages useful, rather than having a
single sub-class specific callback?
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
pgpa21NIQ8I4t.pgp
Description: PGP signature
- [Qemu-devel] [PATCH v5 00/10] KVM platform device passthrough, Eric Auger, 2014/08/09
- [Qemu-devel] [PATCH v5 01/10] vfio: move hw/misc/vfio.c to hw/vfio/pci.c Move vfio.h into include/hw/vfio, Eric Auger, 2014/08/09
- [Qemu-devel] [PATCH v5 02/10] hw/vfio/pci: Rename VFIODevice into VFIOPCIDevice, Eric Auger, 2014/08/09
- [Qemu-devel] [PATCH v5 03/10] hw/vfio/pci: introduce VFIODevice, Eric Auger, 2014/08/09
- [Qemu-devel] [PATCH v5 04/10] hw/vfio/pci: Introduce VFIORegion, Eric Auger, 2014/08/09
- [Qemu-devel] [PATCH v5 05/10] hw/vfio/pci: split vfio_get_device, Eric Auger, 2014/08/09
- Re: [Qemu-devel] [PATCH v5 05/10] hw/vfio/pci: split vfio_get_device,
David Gibson <=
[Qemu-devel] [PATCH v5 06/10] hw/vfio: create common module, Eric Auger, 2014/08/09
Re: [Qemu-devel] [PATCH v5 06/10] hw/vfio: create common module, Joel Schopp, 2014/08/20