From: Jan Kiszka Date: Tue, 3 Sep 2013 16:08:52 +0000 (+0200) Subject: kvmvapic: Clear also physical ROM address when entering INACTIVE state X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~631 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=14cbcb89581e429be68aa493b99fbab577bd757b;p=sdk%2Femulator%2Fqemu.git kvmvapic: Clear also physical ROM address when entering INACTIVE state To avoid misinterpreting INACTIVE after migration as old qemu-kvm's STANDBY, also clear rom_state_paddr when going back to this state. CC: qemu-stable@nongnu.org Signed-off-by: Jan Kiszka Signed-off-by: Paolo Bonzini (cherry picked from commit 4357930b8a7d2fcff2d8121ec518117428a781e7) Signed-off-by: Michael Roth --- diff --git a/hw/i386/kvmvapic.c b/hw/i386/kvmvapic.c index f2e335d96a..cf6c7143c6 100644 --- a/hw/i386/kvmvapic.c +++ b/hw/i386/kvmvapic.c @@ -511,6 +511,7 @@ static void vapic_reset(DeviceState *dev) VAPICROMState *s = VAPIC(dev); s->state = VAPIC_INACTIVE; + s->rom_state_paddr = 0; vapic_enable_tpr_reporting(false); } @@ -664,6 +665,7 @@ static void vapic_write(void *opaque, hwaddr addr, uint64_t data, } if (vapic_prepare(s) < 0) { s->state = VAPIC_INACTIVE; + s->rom_state_paddr = 0; break; } break;