freebsd-dev/sys/x86/include
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
..
xen xen: introduce XEN_CPUID_TO_VCPUID()/XEN_VCPUID() 2023-04-14 15:58:46 +02:00
_align.h
_inttypes.h
_limits.h
_stdint.h amd64: reduce header pollution in _stdint.h 2023-03-22 16:23:57 +00:00
_types.h
acpica_machdep.h
apicreg.h
apicvar.h Increase MAX_APIC_ID safeguard to 0x800 2022-10-27 12:33:34 -04:00
apm_bios.h
bus_dma.h
bus.h
busdma_impl.h
clock.h
cputypes.h
dump.h
elf.h x86/include/elf.h: make inclusion blocks for elf32.h and elf64.h similar 2022-10-25 19:00:44 +03:00
endian.h
fdt.h
float.h
fpu.h
frame.h
ifunc.h
init.h
intr_machdep.h
iommu.h
kvm.h
legacyvar.h
mca.h
metadata.h
mptable.h
ofw_machdep.h
pci_cfgreg.h
procctl.h
psl.h
ptrace.h
pvclock.h pvclock: Export a vDSO page even without rdtscp available 2023-02-03 11:48:25 -05:00
reg.h
segments.h
setjmp.h
sigframe.h
signal.h
specialreg.h x86: add more definitions for XCR0 bits 2023-01-27 19:44:49 +02:00
stack.h
stdarg.h
sysarch.h
tls.h
trap.h
ucode.h
ucontext.h
vdso.h
vmware.h
x86_ieeefp.h
x86_smp.h
x86_var.h amd64: Eliminate write only cpu_fxsr. 2023-02-01 18:17:06 +03:00