Re: [Qemu-devel] [PATCH 4/9] virtio-9p: remove PCI dependencies from hw/9pfs/

2012-01-01 Thread Paolo Bonzini
On 11/29/2011 02:12 PM, Michael S. Tsirkin wrote: On Tue, Nov 29, 2011 at 09:38:43AM +0100, Paolo Bonzini wrote: On 11/28/2011 07:46 PM, Michael S. Tsirkin wrote: +#ifdef CONFIG_LINUX +static int virtio_9p_init_pci(PCIDevice *pci_dev) +{ +VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIP

Re: [Qemu-devel] [PATCH 4/9] virtio-9p: remove PCI dependencies from hw/9pfs/

2011-11-29 Thread Michael S. Tsirkin
On Tue, Nov 29, 2011 at 09:38:43AM +0100, Paolo Bonzini wrote: > On 11/28/2011 07:46 PM, Michael S. Tsirkin wrote: > >>> +#ifdef CONFIG_LINUX > >>> +static int virtio_9p_init_pci(PCIDevice *pci_dev) > >>> +{ > >>> +VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, pci_dev, pci_dev); > >>>

Re: [Qemu-devel] [PATCH 4/9] virtio-9p: remove PCI dependencies from hw/9pfs/

2011-11-29 Thread Paolo Bonzini
On 11/28/2011 07:46 PM, Michael S. Tsirkin wrote: > +#ifdef CONFIG_LINUX > +static int virtio_9p_init_pci(PCIDevice *pci_dev) > +{ > +VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, pci_dev, pci_dev); > +VirtIODevice *vdev; > + > +vdev = virtio_9p_init(&pci_dev->qdev,&proxy->

Re: [Qemu-devel] [PATCH 4/9] virtio-9p: remove PCI dependencies from hw/9pfs/

2011-11-28 Thread Michael S. Tsirkin
On Thu, Nov 24, 2011 at 01:38:23PM +0100, Paolo Bonzini wrote: > Also move the 9p.h file to 9pfs/virtio-9p-device.h, for consistency > with the corresponding .c file. > > Signed-off-by: Paolo Bonzini > --- ... > diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c > index d5cdc04..78c1790 100644 > --

Re: [Qemu-devel] [PATCH 4/9] virtio-9p: remove PCI dependencies from hw/9pfs/

2011-11-28 Thread Aneesh Kumar K.V
On Thu, 24 Nov 2011 13:38:23 +0100, Paolo Bonzini wrote: > Also move the 9p.h file to 9pfs/virtio-9p-device.h, for consistency > with the corresponding .c file. > > Signed-off-by: Paolo Bonzini > --- > hw/9pfs/virtio-9p-device.c | 35 > +- > hw/{9p.h

[Qemu-devel] [PATCH 4/9] virtio-9p: remove PCI dependencies from hw/9pfs/

2011-11-24 Thread Paolo Bonzini
Also move the 9p.h file to 9pfs/virtio-9p-device.h, for consistency with the corresponding .c file. Signed-off-by: Paolo Bonzini --- hw/9pfs/virtio-9p-device.c | 35 +- hw/{9p.h => 9pfs/virtio-9p-device.h} |4 +- hw/9pfs/virtio-9p.c