x86/msr: Convert a native_wrmsr() use to native_wrmsrq()
PATCH 1/1 x86/msr: Convert a native_wrmsr() use to native_wrmsrq()
Convert a native_wrmsr() use to native_wrmsrq() to zap meaningless type conversions when a u64 MSR value is splitted into two u32.
Signed-off-by Xin Li (Intel) <[email protected]>
--- arch/x86/include/asm/sev-internal.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
arch/x86/include/asm/sev-internal.h +1 -6
@@ -89,12 +89,7 @@ static inline u64 sev_es_rd_ghcb_msr(void) static __always_inline void sev_es_wr_ghcb_msr(u64 val) { -u32 low, high; - - low = (u32)(val); - high = (u32)(val >>32 ); - -native_wrmsr (MSR_AMD64_SEV_ES_GHCB , low, high); +native_wrmsrq (MSR_AMD64_SEV_ES_GHCB , val); }void snp_register_ghcb_early (unsigned long paddr);
Signature · 1 line
2.49.0