From: Tianyu Lan Date: Fri, 18 Aug 2023 10:29:16 +0000 (-0400) Subject: clocksource: hyper-v: Mark hyperv tsc page unencrypted in sev-snp enlightened guest X-Git-Tag: v6.6-rc1~69^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45f46b1ac95ea34cc6e81739a64cb6bec28f1185;p=thirdparty%2Fkernel%2Fstable.git 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 Reviewed-by: Michael Kelley Signed-off-by: Tianyu Lan Signed-off-by: Wei Liu Link: https://lore.kernel.org/r/20230818102919.1318039-7-ltykernel@gmail.com --- diff --git a/drivers/clocksource/hyperv_timer.c b/drivers/clocksource/hyperv_timer.c index e56307a81f4da..8ff7cd4e20bb1 100644 --- a/drivers/clocksource/hyperv_timer.c +++ b/drivers/clocksource/hyperv_timer.c @@ -390,7 +390,7 @@ static __always_inline u64 read_hv_clock_msr(void) static union { struct ms_hyperv_tsc_page page; u8 reserved[PAGE_SIZE]; -} tsc_pg __aligned(PAGE_SIZE); +} tsc_pg __bss_decrypted __aligned(PAGE_SIZE); static struct ms_hyperv_tsc_page *tsc_page = &tsc_pg.page; static unsigned long tsc_pfn;