diff options
author | Justin T. Gibbs <gibbs@FreeBSD.org> | 2013-09-19 14:41:10 +0000 |
---|---|---|
committer | Justin T. Gibbs <gibbs@FreeBSD.org> | 2013-09-19 14:41:10 +0000 |
commit | 8a21c7fbe84d4564021c2221f7691c277e345c7a (patch) | |
tree | 62c34a9521320536ba26c0b41c09db0ae553523f /sys | |
parent | 643fe75c7a146f286ff98c63b201708b2a33883f (diff) | |
download | src-8a21c7fbe84d4564021c2221f7691c277e345c7a.tar.gz src-8a21c7fbe84d4564021c2221f7691c277e345c7a.zip |
sys/i386/xen_mp_machdep.c:
Set a 'fake' acpi_id for the i386 PV port, it is needed in
order to use VIRQs or IPI event channels.
Submitted by: Roger Pau Monné
Sponsored by: Citrix Systems R&D
Reviewed by: gibbs
Approved by: re (blanket Xen)
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=255705
Diffstat (limited to 'sys')
-rw-r--r-- | sys/i386/xen/mp_machdep.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/i386/xen/mp_machdep.c b/sys/i386/xen/mp_machdep.c index d6eb35b9ad2f..be17b647d37b 100644 --- a/sys/i386/xen/mp_machdep.c +++ b/sys/i386/xen/mp_machdep.c @@ -251,6 +251,9 @@ cpu_add(u_int apic_id, char boot_cpu) if (bootverbose) printf("SMP: Added CPU %d (%s)\n", apic_id, boot_cpu ? "BSP" : "AP"); + + /* Set the ACPI id (it is needed by VCPU operations) */ + pcpu_find(apic_id)->pc_acpi_id = apic_id; } void |