arch/x86/boot/compressed/sev.c

Source file repositories/reference/linux-study-clean/arch/x86/boot/compressed/sev.c

File Facts

System
Linux kernel
Corpus path
arch/x86/boot/compressed/sev.c
Extension
.c
Size
13182 bytes
Lines
514
Domain
Architecture Layer
Bucket
arch/x86
Inferred role
Architecture Layer: implementation source
Status
source implementation candidate

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

if (eax & BIT(28)) {
			struct msr m;

			/* Obtain the address of the calling area to use */
			raw_rdmsr(MSR_SVSM_CAA, &m);
			boot_svsm_caa_pa = m.q;

			/*
			 * The real VMPL level cannot be discovered, but the
			 * memory acceptance routines make no use of that so
			 * any non-zero value suffices here.
			 */
			snp_vmpl = U8_MAX;
		}
	}
	return true;
}

Annotation

Implementation Notes