diff options
author | Sean Christopherson <seanjc@google.com> | 2024-06-06 02:19:10 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-08-22 21:25:47 +0300 |
commit | beb2e446046f8dd96bbeed3267b5f26bf1926ef9 (patch) | |
tree | 16ab03d0367d84d568556172d31cc1ae3f3a53ba /rust/helpers/task.c | |
parent | e7e80b66fb242a63cdfc3d3534cff62a5e293185 (diff) | |
download | linux-beb2e446046f8dd96bbeed3267b5f26bf1926ef9.tar.xz |
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>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions