Skip to content

Commit 45f46b1

Browse files
tialaliuw
authored andcommitted
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
1 parent 48b1f68 commit 45f46b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clocksource/hyperv_timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ static __always_inline u64 read_hv_clock_msr(void)
390390
static union {
391391
struct ms_hyperv_tsc_page page;
392392
u8 reserved[PAGE_SIZE];
393-
} tsc_pg __aligned(PAGE_SIZE);
393+
} tsc_pg __bss_decrypted __aligned(PAGE_SIZE);
394394

395395
static struct ms_hyperv_tsc_page *tsc_page = &tsc_pg.page;
396396
static unsigned long tsc_pfn;

0 commit comments

Comments
 (0)