]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/cpu: KVM: Move macro to encode PAT value to common header
authorSean Christopherson <seanjc@google.com>
Wed, 5 Jun 2024 23:19:10 +0000 (16:19 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 22 Aug 2024 18:25:47 +0000 (11:25 -0700)
commitbeb2e446046f8dd96bbeed3267b5f26bf1926ef9
tree16ab03d0367d84d568556172d31cc1ae3f3a53ba
parente7e80b66fb242a63cdfc3d3534cff62a5e293185
x86/cpu: KVM: Move macro to encode PAT value to common header

Move pat/memtype.c's PAT() macro to msr-index.h as PAT_VALUE(), and use it
in KVM to define the default (Power-On / RESET) PAT value instead of open
coding an inscrutable magic number.

No functional change intended.

Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Reviewed-by: Kai Huang <kai.huang@intel.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240605231918.2915961-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/msr-index.h
arch/x86/kvm/x86.h
arch/x86/mm/pat/memtype.c