qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PULL 42/43] piix4: add acpi pci hotplug support


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PULL 42/43] piix4: add acpi pci hotplug support
Date: Tue, 15 Oct 2013 16:31:31 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130923 Thunderbird/17.0.9

Il 14/10/2013 17:01, Michael S. Tsirkin ha scritto:
> -        VMSTATE_STRUCT(pci0_status, PIIX4PMState, 2, vmstate_pci_status,
> -                       struct pci_status),
> +        VMSTATE_STRUCT_TEST(pci0_status, PIIX4PMState,
> +                            vmstate_test_no_use_acpi_pci_hotplug,
> +                            2, vmstate_pci_status,
> +                            struct pci_status),

There's no reason to remove this from the stream when a new machine type
is in use.  You'll just send out zeroes.

> +        VMSTATE_PCI_HOTPLUG(acpi_pci_hotplug, PIIX4PMState,
> +                            vmstate_test_use_acpi_pci_hotplug),

This works, but it is a bit different from other cases that are already
present, which use a subsection.  It is a bit ugly because it looks like
a version-1 field, but in fact it is not version 1.

I'll let other people decide whether it's acceptable or not, but I'm
leaning towards asking you to use a subsection.

Paolo



reply via email to

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