]> Git Repo - linux.git/commit
x86/cpu: KVM: Move macro to encode PAT value to common header
authorSean Christopherson <[email protected]>
Wed, 5 Jun 2024 23:19:10 +0000 (16:19 -0700)
committerSean Christopherson <[email protected]>
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 <[email protected]>
Reviewed-by: Kai Huang <[email protected]>
Reviewed-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
arch/x86/include/asm/msr-index.h
arch/x86/kvm/x86.h
arch/x86/mm/pat/memtype.c
This page took 0.059157 seconds and 4 git commands to generate.