mirror of
https://github.com/qemu/qemu.git
synced 2024-12-05 17:53:36 +08:00
247c9de13f
This introduces utility functions for the APIC ID calculation, based on: Intel® 64 Architecture Processor Topology Enumeration http://software.intel.com/en-us/articles/intel-64-architecture-processor-topology-enumeration/ The code should be compatible with AMD's "Extended Method" described at: AMD CPUID Specification (Publication #25481) Section 3: Multiple Core Calcuation as long as: - nr_threads is set to 1; - OFFSET_IDX is assumed to be 0; - CPUID Fn8000_0008_ECX[ApicIdCoreIdSize[3:0]] is set to apicid_core_width(). Unit tests included. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
15 lines
217 B
Plaintext
15 lines
217 B
Plaintext
check-qdict
|
|
check-qfloat
|
|
check-qint
|
|
check-qjson
|
|
check-qlist
|
|
check-qstring
|
|
test-qapi-types.[ch]
|
|
test-qapi-visit.[ch]
|
|
test-qmp-commands.h
|
|
test-qmp-commands
|
|
test-qmp-input-strict
|
|
test-qmp-marshal.c
|
|
test-x86-cpuid
|
|
*-test
|