[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Fix ioapic vmstate
From: |
Jan Kiszka |
Subject: |
Re: [Qemu-devel] [PATCH] Fix ioapic vmstate |
Date: |
Fri, 17 Jun 2011 09:40:36 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
On 2011-06-17 09:30, Pavel Dovgaluk wrote:
> This patch fixes save/restore vmstate of IOAPIC.
> When irr member of IOAPICState is not saved and loaded,
> restoring becomes non-deterministic, because irr is kept from
> state of VM that was before loading.
>
> Signed-off-by: Pavel Dovgalyuk <address@hidden>
> ---
> hw/ioapic.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/hw/ioapic.c b/hw/ioapic.c
> index 2109568..e583284 100644
> --- a/hw/ioapic.c
> +++ b/hw/ioapic.c
> @@ -207,6 +207,7 @@ static const VMStateDescription vmstate_ioapic = {
> .fields = (VMStateField []) {
> VMSTATE_UINT8(id, IOAPICState),
> VMSTATE_UINT8(ioregsel, IOAPICState),
> + VMSTATE_UINT32(irr, IOAPICState),
> VMSTATE_UINT64_ARRAY(ioredtbl, IOAPICState, IOAPIC_NUM_PINS),
> VMSTATE_END_OF_LIST()
> }
>
You are using an old qemu version. This was fixed via commit 35a74c5c59.
Jan
signature.asc
Description: OpenPGP digital signature