CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]        2026/08/19 02:56:28

Modified files:
        sys/arch/amd64/amd64: bus_space.c locore0.S machdep.c trap.c 
                              vector.S vmm_machdep.c 
        sys/arch/amd64/conf: GENERIC RAMDISK_CD VMBOOT files.amd64 
        sys/arch/amd64/include: ghcb.h 

Log message:
SEV: Add option AMDSEV

To allow building the small RAMDISK kernel without SEV-* support
introduce the option AMDSEV.

When running a non-SEV kernel as a SEV guest we will raise a #VC
exception on the very first CPUID instruction.  To allow a somehwat
graceful termination keep the locore0 #VC trap handler, fall through
to the termination code and issue  TERMINATION request to the
hypervisor.  In all other environments #VC will never be raised and
the kernel runs normally.

Build RAMDISK without SEV-* support, all other kernel keep SEV-*
support.

While there, cleanup and unify some definitions of the MSR protocol.

ok kettenis@

Reply via email to