From 6f13d59af69b7ada8e66d9c471643c2d97d4fb69 Mon Sep 17 00:00:00 2001 From: gibbs Date: Thu, 19 Sep 2013 14:41:10 +0000 Subject: 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. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Submitted by: Roger Pau Monné Sponsored by: Citrix Systems R&D Reviewed by: gibbs Approved by: re (blanket Xen) MFC after: 2 weeks --- sys/i386/xen/mp_machdep.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/i386/xen') diff --git a/sys/i386/xen/mp_machdep.c b/sys/i386/xen/mp_machdep.c index d6eb35b..be17b64 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 -- cgit v1.1