>> + pci_register_bar((PCIDevice *)d, 4, 0x10, >> + PCI_BASE_ADDRESS_SPACE_IO, bmdma_map); >> + >> + vmstate_register(0, &vmstate_ide_pci, d); > > Is this correct? > I think so, since ide/piix.c and ide/cmd646.c both do in this way.
-- Huacai Chen
>> + pci_register_bar((PCIDevice *)d, 4, 0x10, >> + PCI_BASE_ADDRESS_SPACE_IO, bmdma_map); >> + >> + vmstate_register(0, &vmstate_ide_pci, d); > > Is this correct? > I think so, since ide/piix.c and ide/cmd646.c both do in this way.
-- Huacai Chen