summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2012-01-10 12:24:10 +0100
committerJan Kiszka <jan.kiszka@siemens.com>2012-01-19 12:14:41 +0100
commitac791b881442e8f929ad0f7423f0e6f253dbef70 (patch)
treedcc55017cce8985a5f0e14a9a13544d1040f3874 /hw
parent512709f559dce1690fa89fe2a67a8e1984cd3895 (diff)
downloadqemu-ac791b881442e8f929ad0f7423f0e6f253dbef70.zip
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>
Diffstat (limited to 'hw')
-rw-r--r--hw/ioapic.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/hw/ioapic.c b/hw/ioapic.c
index 27b07c6317..0743af6ed6 100644
--- a/hw/ioapic.c
+++ b/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[]) {