From: Alex Williamson <alex.williamson@redhat.com>
To: qemu-devel@nongnu.org, Anthony Liguori <anthony@codemonkey.ws>
Cc: alex.williamson@redhat.com, kvm@vger.kernel.org, quintela@redhat.com
Subject: [Qemu-devel] Re: [PATCH] acpi_piix4: save gpe and pci hotplug slot status
Date: Wed, 9 Jun 2010 14:12:21 -0600 [thread overview]
Message-ID: <AANLkTikePVy5hA_S18Nc03ujZkK6tX29OfzKivMIO02K@mail.gmail.com> (raw)
In-Reply-To: <20100602165806.9089.28740.stgit@localhost.localdomain>
nudge. Any comments here?
On Wed, Jun 2, 2010 at 10:58 AM, Alex Williamson
<alex.williamson@redhat.com> wrote:
>
> PCI hotplug currently doesn't work after a migration because
> we don't migrate the enable bits of the GPE state. Pull hotplug
> structs into vmstate.
>
> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
> ---
>
> hw/acpi_piix4.c | 29 ++++++++++++++++++++++++++++-
> 1 files changed, 28 insertions(+), 1 deletions(-)
>
> diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c
> index 0fce958..091cdcd 100644
> --- a/hw/acpi_piix4.c
> +++ b/hw/acpi_piix4.c
> @@ -282,9 +282,33 @@ static int vmstate_acpi_post_load(void *opaque, int version_id)
> return 0;
> }
>
> +static const VMStateDescription vmstate_gpe = {
> + .name = "gpe",
> + .version_id = 1,
> + .minimum_version_id = 1,
> + .minimum_version_id_old = 1,
> + .fields = (VMStateField []) {
> + VMSTATE_UINT16(sts, struct gpe_regs),
> + VMSTATE_UINT16(en, struct gpe_regs),
> + VMSTATE_END_OF_LIST()
> + }
> +};
> +
> +static const VMStateDescription vmstate_pci_status = {
> + .name = "pci_status",
> + .version_id = 1,
> + .minimum_version_id = 1,
> + .minimum_version_id_old = 1,
> + .fields = (VMStateField []) {
> + VMSTATE_UINT32(up, struct pci_status),
> + VMSTATE_UINT32(down, struct pci_status),
> + VMSTATE_END_OF_LIST()
> + }
> +};
> +
> static const VMStateDescription vmstate_acpi = {
> .name = "piix4_pm",
> - .version_id = 1,
> + .version_id = 2,
> .minimum_version_id = 1,
> .minimum_version_id_old = 1,
> .post_load = vmstate_acpi_post_load,
> @@ -296,6 +320,9 @@ static const VMStateDescription vmstate_acpi = {
> VMSTATE_STRUCT(apm, PIIX4PMState, 0, vmstate_apm, APMState),
> VMSTATE_TIMER(tmr_timer, PIIX4PMState),
> VMSTATE_INT64(tmr_overflow_time, PIIX4PMState),
> + VMSTATE_STRUCT(gpe, PIIX4PMState, 2, vmstate_gpe, struct gpe_regs),
> + VMSTATE_STRUCT(pci0_status, PIIX4PMState, 2, vmstate_pci_status,
> + struct pci_status),
> VMSTATE_END_OF_LIST()
> }
> };
>
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2010-06-09 20:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-02 16:58 [Qemu-devel] [PATCH] acpi_piix4: save gpe and pci hotplug slot status Alex Williamson
2010-06-09 20:12 ` Alex Williamson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTikePVy5hA_S18Nc03ujZkK6tX29OfzKivMIO02K@mail.gmail.com \
--to=alex.williamson@redhat.com \
--cc=anthony@codemonkey.ws \
--cc=kvm@vger.kernel.org \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).