Re: [Qemu-devel] [RFC v4 04/13] hw/vfio/pci: introduce VFIODevice

2014-07-23 Thread Eric Auger
On 07/23/2014 12:24 PM, Peter Maydell wrote: > On 23 July 2014 11:02, Eric Auger wrote: >> On 07/09/2014 12:41 AM, Alex Williamson wrote: >>> On Mon, 2014-07-07 at 13:27 +0100, Eric Auger wrote: +vdev->vbasedev.ops = &vfio_pci_ops; + +vdev->vbasedev.type = VFIO_DEVICE_TYPE_P

Re: [Qemu-devel] [RFC v4 04/13] hw/vfio/pci: introduce VFIODevice

2014-07-23 Thread Peter Maydell
On 23 July 2014 11:02, Eric Auger wrote: > On 07/09/2014 12:41 AM, Alex Williamson wrote: >> On Mon, 2014-07-07 at 13:27 +0100, Eric Auger wrote: >>> +vdev->vbasedev.ops = &vfio_pci_ops; >>> + >>> +vdev->vbasedev.type = VFIO_DEVICE_TYPE_PCI; >>> +vdev->vbasedev.name = g_malloc0(PATH_MA

Re: [Qemu-devel] [RFC v4 04/13] hw/vfio/pci: introduce VFIODevice

2014-07-23 Thread Eric Auger
On 07/09/2014 12:41 AM, Alex Williamson wrote: > On Mon, 2014-07-07 at 13:27 +0100, Eric Auger wrote: >> Introduce the VFIODevice struct that is going to be shared by >> VFIOPCIDevice and VFIOPlatformDevice. >> >> Additional fields will be added there later on for review >> convenience. >> >> the g

Re: [Qemu-devel] [RFC v4 04/13] hw/vfio/pci: introduce VFIODevice

2014-07-09 Thread Alex Williamson
On Mon, 2014-07-07 at 13:27 +0100, Eric Auger wrote: > Introduce the VFIODevice struct that is going to be shared by > VFIOPCIDevice and VFIOPlatformDevice. > > Additional fields will be added there later on for review > convenience. > > the group's device_list becomes a list of VFIODevice > > T

[Qemu-devel] [RFC v4 04/13] hw/vfio/pci: introduce VFIODevice

2014-07-07 Thread Eric Auger
Introduce the VFIODevice struct that is going to be shared by VFIOPCIDevice and VFIOPlatformDevice. Additional fields will be added there later on for review convenience. the group's device_list becomes a list of VFIODevice This obliges to rework the reset_handler which becomes generic and calls