[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [QEMU PATCH 3/7] kvm: set vcpu_id to APIC ID instead of CPU
From: |
Eduardo Habkost |
Subject: |
[Qemu-devel] [QEMU PATCH 3/7] kvm: set vcpu_id to APIC ID instead of CPU index |
Date: |
Tue, 10 Jul 2012 17:22:18 -0300 |
The CPU ID in KVM is supposed to be the APIC ID, so change the
KVM_CREATE_VCPU call to match it. It didn't break anything yet because
today the APIC ID is assumed to be == the CPU index, but this won't be
true in the future.
Signed-off-by: Eduardo Habkost <address@hidden>
---
kvm-all.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kvm-all.c b/kvm-all.c
index f8e4328..2d1fe6a 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -212,7 +212,7 @@ int kvm_init_vcpu(CPUArchState *env)
DPRINTF("kvm_init_vcpu\n");
- ret = kvm_vm_ioctl(s, KVM_CREATE_VCPU, env->cpu_index);
+ ret = kvm_vm_ioctl(s, KVM_CREATE_VCPU, env->cpuid_apic_id);
if (ret < 0) {
DPRINTF("kvm_create_vcpu failed\n");
goto err;
--
1.7.10.4
- Re: [Qemu-devel] [QEMU RFC PATCH 6/7] i386: topology & APIC ID utility functions, (continued)
- Re: [Qemu-devel] [QEMU RFC PATCH 6/7] i386: topology & APIC ID utility functions, Eduardo Habkost, 2012/07/13
- Re: [Qemu-devel] [QEMU RFC PATCH 6/7] i386: topology & APIC ID utility functions, Blue Swirl, 2012/07/14
- Re: [Qemu-devel] [QEMU RFC PATCH 6/7] i386: topology & APIC ID utility functions, Eduardo Habkost, 2012/07/16
- Re: [Qemu-devel] [QEMU RFC PATCH 6/7] i386: topology & APIC ID utility functions, Blue Swirl, 2012/07/23
- Re: [Qemu-devel] [QEMU RFC PATCH 6/7] i386: topology & APIC ID utility functions, Eduardo Habkost, 2012/07/23
- Re: [Qemu-devel] [QEMU RFC PATCH 6/7] i386: topology & APIC ID utility functions, Blue Swirl, 2012/07/23
- Re: [Qemu-devel] [QEMU RFC PATCH 6/7] i386: topology & APIC ID utility functions, Eduardo Habkost, 2012/07/23
- Re: [Qemu-devel] [QEMU RFC PATCH 6/7] i386: topology & APIC ID utility functions, Blue Swirl, 2012/07/23
- Re: [Qemu-devel] [QEMU RFC PATCH 6/7] i386: topology & APIC ID utility functions, Eduardo Habkost, 2012/07/23
- Re: [Qemu-devel] [QEMU RFC PATCH 6/7] i386: topology & APIC ID utility functions, Blue Swirl, 2012/07/24
[Qemu-devel] [QEMU PATCH 3/7] kvm: set vcpu_id to APIC ID instead of CPU index,
Eduardo Habkost <=
[Qemu-devel] [QEMU RFC PATCH 5/7] pc: write lapic info (apic IDs) to fw_cfg so seabios can use it, Eduardo Habkost, 2012/07/10
Re: [Qemu-devel] [RFC 0/7+1] QEMU APIC ID + topology bug + CPU hotplug, Igor Mammedov, 2012/07/12