Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clocksource: hyper-v: Mark hyperv tsc page unencrypted in sev-snp enlightened guest

Hyper-V tsc page is shared with hypervisor and mark the page
unencrypted in sev-snp enlightened guest when it's used.

Reviewed-by: Dexuan Cui <decui@microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Tianyu Lan <tiala@microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Link: https://lore.kernel.org/r/20230818102919.1318039-7-ltykernel@gmail.com

authored by

Tianyu Lan and committed by
Wei Liu
45f46b1a 48b1f683

+1 -1
+1 -1
drivers/clocksource/hyperv_timer.c
··· 390 390 static union { 391 391 struct ms_hyperv_tsc_page page; 392 392 u8 reserved[PAGE_SIZE]; 393 - } tsc_pg __aligned(PAGE_SIZE); 393 + } tsc_pg __bss_decrypted __aligned(PAGE_SIZE); 394 394 395 395 static struct ms_hyperv_tsc_page *tsc_page = &tsc_pg.page; 396 396 static unsigned long tsc_pfn;