diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-03-05 10:52:51 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-03-05 10:52:51 +0000 |
commit | 12367d55a195f3944cc569d1de185aed62e627a6 (patch) | |
tree | b37ca731dcf586b6c834bd1d41f53497653969ab /xen/include/xen/acpi.h | |
parent | 635dc946fe69efebd30f9301941db6047499df41 (diff) | |
download | xen-12367d55a195f3944cc569d1de185aed62e627a6.tar.gz xen-12367d55a195f3944cc569d1de185aed62e627a6.tar.bz2 xen-12367d55a195f3944cc569d1de185aed62e627a6.zip |
x86: New vcpu_op call to get physical CPU identity.
Some AMD machines have APIC IDs that not equal to CPU IDs. In
the default Xen configuration, ACPI calls on these machines
can get confused. This shows up most noticeably when running
AMD PowerNow!. The only solution is for dom0 to get the
hypervisor's cpuid to apicid table when needed (ie, when dom0
vcpus are pinned).
Add a vcpu op to Xen to allow dom0 to query the hypervisor for
architecture dependent physical cpu information if dom0 vcpus are
pinned.
Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/include/xen/acpi.h')
-rw-r--r-- | xen/include/xen/acpi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/include/xen/acpi.h b/xen/include/xen/acpi.h index fcb161ba92..39a16d1d80 100644 --- a/xen/include/xen/acpi.h +++ b/xen/include/xen/acpi.h @@ -447,6 +447,7 @@ extern acpi_table_handler acpi_table_ops[ACPI_TABLE_COUNT]; typedef int (*acpi_madt_entry_handler) (acpi_table_entry_header *header, const unsigned long end); +unsigned int acpi_get_processor_id (unsigned int cpu); char * __acpi_map_table (unsigned long phys_addr, unsigned long size); unsigned long acpi_find_rsdp (void); int acpi_boot_init (void); |