kvmvapic: Enter inactive state on hardware reset
ROM layout may change after reset of devices are hotplugged, so we have to pick up the physical address again when the ROM is initialized. This is best achieved by resetting the state to INACTIVE. CC: qemu-stable@nongnu.org Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
18e5eec4db
commit
c056bc3f34
|
@ -510,9 +510,7 @@ static void vapic_reset(DeviceState *dev)
|
|||
{
|
||||
VAPICROMState *s = VAPIC(dev);
|
||||
|
||||
if (s->state == VAPIC_ACTIVE) {
|
||||
s->state = VAPIC_STANDBY;
|
||||
}
|
||||
s->state = VAPIC_INACTIVE;
|
||||
vapic_enable_tpr_reporting(false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue