freebsd-dev/sys/x86
Julien Grall 28a78d860e xen: introduce XEN_CPUID_TO_VCPUID()/XEN_VCPUID()
Part of the series for allowing FreeBSD/ARM to run on Xen.  On ARM the
function is a trivial pass-through, other architectures need distinct
implementations.

While implementing XEN_VCPUID() as a call to XEN_CPUID_TO_VCPUID()
works, that involves multiple accesses to the PCPU region.  As such make
this a distinct macro.  Only callers in machine independent code have
been switched.

Add a wrapper for the x86 PIC interface to use matching the old
prototype.

Partially inspired by the work of Julien Grall <julien@xen.org>,
2015-08-01 09:45:06, but XEN_VCPUID() was redone by Elliott Mitchell on
2022-06-13 12:51:57.

Reviewed by: royger
Submitted by: Elliott Mitchell <ehem+freebsd@m5p.com>
Original implementation: Julien Grall <julien@xen.org>, 2014-04-19 08:57:40
Original implementation: Julien Grall <julien@xen.org>, 2014-04-19 14:32:01
Differential Revision: https://reviews.freebsd.org/D29404
2023-04-14 15:58:46 +02:00
..
acpica amd64/efi: Stop falling back to hints for RSDP 2022-07-02 08:02:12 -06:00
bios x86: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:46:58 -07:00
conf Complete retire cp(4) 2022-12-14 11:38:55 +08:00
cpufreq cpufreq: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:39:29 -07:00
include xen: introduce XEN_CPUID_TO_VCPUID()/XEN_VCPUID() 2023-04-14 15:58:46 +02:00
iommu kmem_malloc/free: Use void * instead of vm_offset_t for kernel pointers. 2022-09-22 15:09:19 -07:00
isa atrtc: expose power loss as sysctl 2023-02-02 08:25:08 +01:00
linux linux(4): Cleanup includes under x86/linux 2023-02-14 17:46:33 +03:00
pci pci: expose intel_graphics_stolen as sysctl 2023-03-27 11:40:49 +02:00
x86 x86: nexus code tidy-up 2023-03-20 17:35:47 -03:00
xen xen: introduce XEN_CPUID_TO_VCPUID()/XEN_VCPUID() 2023-04-14 15:58:46 +02:00