mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
ioapic: Drop post-load irr initialization
As all devices undergo a reset prior to vmloa, and the reset value of irr is 0, we do not need to do this clearing for older vmstates explicitly. Dropping this redundant code will also make KVM integration a bit simpler. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
512709f559
commit
ac791b8814
1 changed files with 0 additions and 12 deletions
12
hw/ioapic.c
12
hw/ioapic.c
|
@ -278,21 +278,9 @@ ioapic_mem_write(void *opaque, target_phys_addr_t addr, uint64_t val,
|
|||
}
|
||||
}
|
||||
|
||||
static int ioapic_post_load(void *opaque, int version_id)
|
||||
{
|
||||
IOAPICState *s = opaque;
|
||||
|
||||
if (version_id == 1) {
|
||||
/* set sane value */
|
||||
s->irr = 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const VMStateDescription vmstate_ioapic = {
|
||||
.name = "ioapic",
|
||||
.version_id = 3,
|
||||
.post_load = ioapic_post_load,
|
||||
.minimum_version_id = 1,
|
||||
.minimum_version_id_old = 1,
|
||||
.fields = (VMStateField[]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue