freebsd-nq/sys/dev/xen
Justin T. Gibbs 5fdd34ee20 Formalize the concept of virtual CPU ids by adding a per-cpu vcpu_id
field.  Perform vcpu enumeration for Xen PV and HVM environments
and convert all Xen drivers to use vcpu_id instead of a hard coded
assumption of the mapping algorithm (acpi or apic ID) in use.

Submitted by:	Roger Pau Monné
Sponsored by:	Citrix Systems R&D
Reviewed by:	gibbs
Approved by:	re (blanket Xen)

amd64/include/pcpu.h:
i386/include/pcpu.h:
	Add vcpu_id to the amd64 and i386 pcpu structures.

dev/xen/timer/timer.c
x86/xen/xen_intr.c
	Use new vcpu_id instead of assuming acpi_id == vcpu_id.

i386/xen/mp_machdep.c:
i386/xen/mptable.c
x86/xen/hvm.c:
	Perform Xen HVM and Xen full PV vcpu_id mapping.

x86/xen/hvm.c:
x86/acpica/madt.c
	Change SYSINIT ordering of acpi CPU enumeration so that it
	is guaranteed to be available at the time of Xen HVM vcpu
	id mapping.
2013-10-05 23:11:01 +00:00
..
balloon Implement vector callback for PVHVM and unify event channel implementations 2013-08-29 19:52:18 +00:00
blkback Correct blkback handling of the BLKIF_OP_FLUSH_DISKCACHE opcode. 2013-09-04 23:32:49 +00:00
blkfront If reading a virtual-device value fails, attempt to read a virtual-device-ext 2013-08-30 01:46:56 +00:00
console Implement vector callback for PVHVM and unify event channel implementations 2013-08-29 19:52:18 +00:00
control Add support for suspend/resume/migration operations when running as a 2013-09-20 05:06:03 +00:00
netback Implement vector callback for PVHVM and unify event channel implementations 2013-08-29 19:52:18 +00:00
netfront Implement vector callback for PVHVM and unify event channel implementations 2013-08-29 19:52:18 +00:00
pcifront - There's no need to overwrite the default device method with the default 2011-11-22 21:28:20 +00:00
timer Formalize the concept of virtual CPU ids by adding a per-cpu vcpu_id 2013-10-05 23:11:01 +00:00
xenpci Add support for suspend/resume/migration operations when running as a 2013-09-20 05:06:03 +00:00