qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Alexander Graf
Subject: Re: [Qemu-devel] [PATCH 7/7] PPC: Qdev'ify e500 pci
Date: Sun, 8 May 2011 01:58:51 +0200

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, PPCE500PCIState),
> 
> Doesn't this require incrementing version_id?

It's never worked before and there is no known good state - so I don't think 
there's any need to increment here whatsoever :). There won't be any old users.

> 
>> +    vmstate_register(&dev->qdev, ppce500_pci_id++, &vmstate_ppce500_pci,
> 
> ppce500_pci_id is bogus, and should be removed.
> You probably shouldn't be calling this at all.  Instead use 
> sysbus_register_withprop and qdev.vmsd.
> 
> Other than that, this patch looks ok.

Alrighty, new patch underway.


Alex




reply via email to

[Prev in Thread] Current Thread [Next in Thread]