qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] usb-ohci: add vmstate descriptor


From: Alexey Kardashevskiy
Subject: Re: [Qemu-devel] [PATCH] usb-ohci: add vmstate descriptor
Date: Fri, 14 Mar 2014 16:09:37 +1100
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

On 03/07/2014 12:57 AM, Mike Day wrote:
> 
> Alexey Kardashevskiy <address@hidden> writes:
> 
>> This adds migration support for OHCI.
>>
>> Signed-off-by: Alexey Kardashevskiy <address@hidden>
> 
> Reviewed-by: Mike Day <address@hidden>

Thanks!

What is next?


> 
>> ---
>>  hw/usb/hcd-ohci.c | 12 ++++++++++++
>>  1 file changed, 12 insertions(+)
>>
>> diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c
>> index e38cdeb..c42e091 100644
>> --- a/hw/usb/hcd-ohci.c
>> +++ b/hw/usb/hcd-ohci.c
>> @@ -1984,6 +1984,17 @@ static Property ohci_pci_properties[] = {
>>      DEFINE_PROP_END_OF_LIST(),
>>  };
>>  
>> +static const VMStateDescription vmstate_ohci = {
>> +    .name = "ohci",
>> +    .version_id = 1,
>> +    .minimum_version_id = 1,
>> +    .minimum_version_id_old = 1,
>> +    .fields      = (VMStateField[]) {
>> +        VMSTATE_PCI_DEVICE(parent_obj, OHCIPCIState),
>> +        VMSTATE_END_OF_LIST()
>> +    }
>> +};
>> +
>>  static void ohci_pci_class_init(ObjectClass *klass, void *data)
>>  {
>>      DeviceClass *dc = DEVICE_CLASS(klass);
>> @@ -1997,6 +2008,7 @@ static void ohci_pci_class_init(ObjectClass *klass, 
>> void *data)
>>      set_bit(DEVICE_CATEGORY_USB, dc->categories);
>>      dc->desc = "Apple USB Controller";
>>      dc->props = ohci_pci_properties;
>> +    dc->vmsd = &vmstate_ohci;
>>  }
>>  
>>  static const TypeInfo ohci_pci_info = {
>> -- 
>> 1.8.4.rc4
>>
>>
> 


-- 
Alexey



reply via email to

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