ehci: fix migration
Commit 5010d4dc61
reorganized vmstate to
split core + pci, but got two little details wrong. Fix them.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
616b5d53ae
commit
9d1530470b
@ -91,6 +91,7 @@ static const VMStateDescription vmstate_ehci_pci = {
|
|||||||
.fields = (VMStateField[]) {
|
.fields = (VMStateField[]) {
|
||||||
VMSTATE_PCI_DEVICE(pcidev, EHCIPCIState),
|
VMSTATE_PCI_DEVICE(pcidev, EHCIPCIState),
|
||||||
VMSTATE_STRUCT(ehci, EHCIPCIState, 2, vmstate_ehci, EHCIState),
|
VMSTATE_STRUCT(ehci, EHCIPCIState, 2, vmstate_ehci, EHCIState),
|
||||||
|
VMSTATE_END_OF_LIST()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -105,7 +106,7 @@ static void ehci_class_init(ObjectClass *klass, void *data)
|
|||||||
k->device_id = i->device_id;
|
k->device_id = i->device_id;
|
||||||
k->revision = i->revision;
|
k->revision = i->revision;
|
||||||
k->class_id = PCI_CLASS_SERIAL_USB;
|
k->class_id = PCI_CLASS_SERIAL_USB;
|
||||||
dc->vmsd = &vmstate_ehci;
|
dc->vmsd = &vmstate_ehci_pci;
|
||||||
dc->props = ehci_pci_properties;
|
dc->props = ehci_pci_properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user