kernel_samsung_a53x/arch/x86/xen
Juergen Gross eb9a9d9090 x86/xen: add central hypercall functions
commit b4845bb6383821a9516ce30af3a27dc873e37fd4 upstream.

Add generic hypercall functions usable for all normal (i.e. not iret)
hypercalls. Depending on the guest type and the processor vendor
different functions need to be used due to the to be used instruction
for entering the hypervisor:

- PV guests need to use syscall
- HVM/PVH guests on Intel need to use vmcall
- HVM/PVH guests on AMD and Hygon need to use vmmcall

As PVH guests need to issue hypercalls very early during boot, there
is a 4th hypercall function needed for HVM/PVH which can be used on
Intel and AMD processors. It will check the vendor type and then set
the Intel or AMD specific function to use via static_call().

This is part of XSA-466 / CVE-2024-53241.

Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Co-developed-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-01-02 17:01:19 +01:00
..
apic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debugfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
efi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
enlighten.c x86/xen: add central hypercall functions 2025-01-02 17:01:19 +01:00
enlighten_hvm.c x86/xen: add central hypercall functions 2025-01-02 17:01:19 +01:00
enlighten_pv.c x86/xen: add central hypercall functions 2025-01-02 17:01:19 +01:00
enlighten_pvh.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
grant-table.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
irq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmu_hvm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmu_pv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
multicalls.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
multicalls.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
p2m.c x86/xen: Convert comma to semicolon 2024-11-23 23:20:06 +01:00
pci-swiotlb-xen.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
platform-pci-unplug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmu.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
setup.c Revert "xen: use correct end address of kernel for conflict checking" 2024-11-24 00:23:24 +01:00
smp.c x86/xen: Add some null pointer checking to smp.c 2024-11-19 08:44:35 +01:00
smp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smp_hvm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smp_pv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spinlock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
suspend.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
suspend_hvm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
suspend_pv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
time.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vga.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xen-asm.S x86/xen: add central hypercall functions 2025-01-02 17:01:19 +01:00
xen-head.S x86/xen: add central hypercall functions 2025-01-02 17:01:19 +01:00
xen-ops.h x86/xen: add central hypercall functions 2025-01-02 17:01:19 +01:00