Message ID | 4A3BC837.3080102@siemens.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 06/19/2009 08:17 PM, Jan Kiszka wrote: > Jan Kiszka wrote: > >> Fix regression in CPU initialization caused by merge a5b526135d and try >> to avoid this in the future by dropping qemu-kvm specific pc_new_cpu. If >> such refactoring is desired, it should go through upstream first. >> > > F...ine. I'll write a hundred times: "Don't post while still compiling." > Here is a version that only fixes the regression. > Applied, thanks. This has bitten us more than once. Care to upstream pc_new_cpu()? we'll need it anyway when we upstream cpu hotplug, and this will make life easier for us here downstream.
diff --git a/hw/pc.c b/hw/pc.c index 6c19f55..cb5b4d0 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -853,9 +853,6 @@ CPUState *pc_new_cpu(int cpu, const char *cpu_model, int pci_enabled) apic_init(env); } qemu_register_reset(main_cpu_reset, 0, env); - if (pci_enabled) { - apic_init(env); - } /* kvm needs this to run after the apic is initialized. Otherwise, * it can access invalid state and crash.