[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/6] always have apic
From: |
Glauber Costa |
Subject: |
[Qemu-devel] [PATCH 2/6] always have apic |
Date: |
Fri, 17 Apr 2009 11:20:45 -0400 |
if we are going to initialize the apic, set cpuid bit unconditionally.
As far as I know, we should not do that for isa machines anyway.
Signed-off-by: Glauber Costa <address@hidden>
---
hw/pc.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/hw/pc.c b/hw/pc.c
index 39ed066..7649f2c 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -784,12 +784,10 @@ CPUState *pc_new_cpu(int cpu, const char *cpu_model, int
pci_enabled)
}
if (cpu != 0)
env->halted = 1;
- if (smp_cpus > 1) {
- /* XXX: enable it in all cases */
- env->cpuid_features |= CPUID_APIC;
- }
+
qemu_register_reset(main_cpu_reset, env);
if (pci_enabled) {
+ env->cpuid_features |= CPUID_APIC;
apic_init(env);
}
return env;
--
1.5.6.6
- [Qemu-devel] [PATCH 0/6] Add support for cpu hotplug, Glauber Costa, 2009/04/17
- [Qemu-devel] [PATCH 1/6] split pc_new_cpu, Glauber Costa, 2009/04/17
- [Qemu-devel] [PATCH 2/6] always have apic,
Glauber Costa <=
- [Qemu-devel] [PATCH 3/6] Fix warnings and errors with DEBUG enabled, Glauber Costa, 2009/04/17
- [Qemu-devel] [PATCH 4/6] disallow kqemu if we fail to load it., Glauber Costa, 2009/04/17
- [Qemu-devel] [PATCH 5/6] enable cpu hotplug, Glauber Costa, 2009/04/17
- [Qemu-devel] [PATCH 6/6] add bios support for cpu hotplug., Glauber Costa, 2009/04/17
- [Qemu-devel] Re: [PATCH 6/6] add bios support for cpu hotplug., Anthony Liguori, 2009/04/17
- [Qemu-devel] Re: [PATCH 5/6] enable cpu hotplug, Anthony Liguori, 2009/04/17