Set apic instance number for savevm, by Ari Kivity.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3144 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
70744b3ab8
commit
be0164f2e0
@ -832,7 +832,7 @@ int apic_init(CPUState *env)
|
|||||||
}
|
}
|
||||||
s->timer = qemu_new_timer(vm_clock, apic_timer, s);
|
s->timer = qemu_new_timer(vm_clock, apic_timer, s);
|
||||||
|
|
||||||
register_savevm("apic", 0, 2, apic_save, apic_load, s);
|
register_savevm("apic", s->id, 2, apic_save, apic_load, s);
|
||||||
qemu_register_reset(apic_reset, s);
|
qemu_register_reset(apic_reset, s);
|
||||||
|
|
||||||
local_apics[s->id] = s;
|
local_apics[s->id] = s;
|
||||||
|
Loading…
Reference in New Issue
Block a user