[Qemu-devel] [PATCH 7/7] PPC: Qdev'ify e500 pci

2011-05-09 Thread Alexander Graf
The e500 PCI controller isn't qdev'ified yet. This leads to severe issues when running with -drive. To be able to use a virtio disk with an e500 VM, let's convert the PCI controller over to qdev. Reviewed-by: Paul Brook Signed-off-by: Alexander Graf --- v2 -> v3: - rebase to current code b

Re: [Qemu-devel] [PATCH 7/7] PPC: Qdev'ify e500 pci

2011-05-09 Thread Paul Brook
> The e500 PCI controller isn't qdev'ified yet. This leads to severe issues > when running with -drive. > > To be able to use a virtio disk with an e500 VM, let's convert the PCI > controller over to qdev. > > Signed-off-by: Alexander Graf Reviewed-by: Paul Brook

[Qemu-devel] [PATCH 7/7] PPC: Qdev'ify e500 pci

2011-05-07 Thread Alexander Graf
The e500 PCI controller isn't qdev'ified yet. This leads to severe issues when running with -drive. To be able to use a virtio disk with an e500 VM, let's convert the PCI controller over to qdev. Signed-off-by: Alexander Graf --- v2 -> v3: - rebase to current code base - fix endian issue

Re: [Qemu-devel] [PATCH 7/7] PPC: Qdev'ify e500 pci

2011-05-07 Thread Alexander Graf
On 08.05.2011, at 01:48, Paul Brook wrote: >> @@ -250,7 +254,6 @@ static const VMStateDescription vmstate_ppce500_pci = { >> >> .minimum_version_id = 1, >> .minimum_version_id_old = 1, >> .fields = (VMStateField[]) { >> >> -VMSTATE_PCI_DEVICE_POINTER(pci_dev, PPCE500PCI

Re: [Qemu-devel] [PATCH 7/7] PPC: Qdev'ify e500 pci

2011-05-07 Thread Paul Brook
> @@ -250,7 +254,6 @@ static const VMStateDescription vmstate_ppce500_pci = { > > .minimum_version_id = 1, > .minimum_version_id_old = 1, > .fields = (VMStateField[]) { > > -VMSTATE_PCI_DEVICE_POINTER(pci_dev, PPCE500PCIState), Doesn't this require incrementing versio

[Qemu-devel] [PATCH 7/7] PPC: Qdev'ify e500 pci

2011-05-07 Thread Alexander Graf
The e500 PCI controller isn't qdev'ified yet. This leads to severe issues when running with -drive. To be able to use a virtio disk with an e500 VM, let's convert the PCI controller over to qdev. Signed-off-by: Alexander Graf --- v2 -> v3: - rebase to current code base - fix endian issue

Re: [Qemu-devel] [PATCH 7/7] PPC: Qdev'ify e500 pci

2011-05-06 Thread Paul Brook
> > PCIBus *ppce500_pci_init(qemu_irq pci_irqs[4], target_phys_addr_t > > registers) { > > -PPCE500PCIState *controller; > > +DeviceState *dev; > > +PCIBus *b; > > +PCIHostState *h; > > +PPCE500PCIState *s; > > > > PCIDevice *d; > > > > -int index; > > > > stati

Re: [Qemu-devel] [PATCH 7/7] PPC: Qdev'ify e500 pci

2011-05-06 Thread Paul Brook
> PCIBus *ppce500_pci_init(qemu_irq pci_irqs[4], target_phys_addr_t > registers) { > -PPCE500PCIState *controller; > +DeviceState *dev; > +PCIBus *b; > +PCIHostState *h; > +PPCE500PCIState *s; > PCIDevice *d; > -int index; > static int ppce500_pci_id; > +SysBus

[Qemu-devel] [PATCH 7/7] PPC: Qdev'ify e500 pci

2011-05-06 Thread Alexander Graf
The e500 PCI controller isn't qdev'ified yet. This leads to severe issues when running with -drive. To be able to use a virtio disk with an e500 VM, let's convert the PCI controller over to qdev. Signed-off-by: Alexander Graf --- v2 -> v3: - rebase to current code base - fix endian issue