[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH for-1.4 qom-cpu 0/9] target-i386: Fix APIC-ID-based
From: |
Eduardo Habkost |
Subject: |
[Qemu-devel] [PATCH for-1.4 qom-cpu 0/9] target-i386: Fix APIC-ID-based topology (v5) |
Date: |
Tue, 22 Jan 2013 18:25:00 -0200 |
Changes since v4:
- Patch 1/9: Convert KVM_CREATE_VCPU ioctl() argument to void*, so the
argument type matches the type expected by kvm_vm_ioctl()
- Patch 4/9: rename apic_id_for_cpu() to x86_cpu_apic_id_from_index()
- Patch 6/9: refresh after function renames
- Patch 8/9: Remove trailing backslashes (leftovers from macro versions of the
code)
- Patch 8/9: Rename functions to use either "apicid_" or "x86_" prefixes
- Patch 9/9: Refresh patch after function renames
Git tree for reference:
git://github.com/ehabkost/qemu-hacks.git apicid-topology.v5
https://github.com/ehabkost/qemu-hacks/tree/apicid-topology.v5
Eduardo Habkost (9):
kvm: Create kvm_arch_vcpu_id() function
target-i386: kvm: Set vcpu_id to APIC ID instead of CPU index
fw_cfg: Remove FW_CFG_MAX_CPUS from fw_cfg_init()
target-i386/cpu: Introduce x86_cpu_apic_id_from_index() function
cpus.h: Make constant smp_cores/smp_threads available on *-user
pc: Set fw_cfg data based on APIC ID calculation
tests: Support target-specific unit tests
target-i386: Topology & APIC ID utility functions
pc: Generate APIC IDs according to CPU topology
hw/fw_cfg.c | 1 -
hw/pc.c | 45 +++++++++++++---
hw/pc_piix.c | 12 ++++-
hw/ppc_newworld.c | 1 +
hw/ppc_oldworld.c | 1 +
hw/sun4m.c | 3 ++
hw/sun4u.c | 1 +
include/sysemu/cpus.h | 7 +++
include/sysemu/kvm.h | 3 ++
kvm-all.c | 2 +-
target-i386/cpu.c | 37 +++++++++++++-
target-i386/cpu.h | 3 ++
target-i386/kvm.c | 6 +++
target-i386/topology.h | 136 +++++++++++++++++++++++++++++++++++++++++++++++++
target-ppc/kvm.c | 5 ++
target-s390x/kvm.c | 5 ++
tests/.gitignore | 1 +
tests/Makefile | 21 +++++++-
tests/test-x86-cpuid.c | 110 +++++++++++++++++++++++++++++++++++++++
19 files changed, 387 insertions(+), 13 deletions(-)
create mode 100644 target-i386/topology.h
create mode 100644 tests/test-x86-cpuid.c
--
1.8.1
- [Qemu-devel] [PATCH for-1.4 qom-cpu 0/9] target-i386: Fix APIC-ID-based topology (v5),
Eduardo Habkost <=