Date: Thu, 19 Sep 2013 14:41:11 +0000 (UTC) From: "Justin T. Gibbs" <gibbs@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r255705 - head/sys/i386/xen Message-ID: <201309191441.r8JEfBWC022710@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gibbs Date: Thu Sep 19 14:41:10 2013 New Revision: 255705 URL: http://svnweb.freebsd.org/changeset/base/255705 Log: 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 Modified: head/sys/i386/xen/mp_machdep.c Modified: head/sys/i386/xen/mp_machdep.c ============================================================================== --- head/sys/i386/xen/mp_machdep.c Thu Sep 19 13:49:55 2013 (r255704) +++ head/sys/i386/xen/mp_machdep.c Thu Sep 19 14:41:10 2013 (r255705) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309191441.r8JEfBWC022710>