CVSROOT: /cvs Module name: src Changes by: s...@cvs.openbsd.org 2025/08/23 04:15:49
Modified files: sys/arch/amd64/amd64: bus_space.c mainbus.c sys/arch/amd64/include: bus.h Log message: Prepare for replaceable x86_bus_space_*_ops for SEV-ES for SEV-ES, we will get separate para-virtualized implementations of the bus_space functions that use the ghcb. To allow switching the implementations at boot time, change x86_bus_space_io_ops / x86_bus_space_mem_ops into pointers. The wanted implementation will be set in x86_bus_space_init(). As there is some code in bus_space.c that compares the pointers, leaving the pointers as NULL until x86_bus_space_init() should catch any use of the variables before x86_bus_space_init() and should therefore ensure that the pointer comparisons keep working. ok kettenis@ hshoexer@