Home
last modified time | relevance | path

Searched hist:ebda79e5057778be1ad8ed072e4229894dfc66b7 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/x86/kvm/
H A Dmtrr.cdiff ebda79e5057778be1ad8ed072e4229894dfc66b7 Thu May 11 18:33:46 CDT 2023 Sean Christopherson <seanjc@google.com> KVM: x86: Add helper to query if variable MTRR MSR is base (versus mask)

Add a helper to query whether a variable MTRR MSR is a base versus as mask
MSR. Replace the unnecessarily complex math with a simple check on bit 0;
base MSRs are even, mask MSRs are odd.

Link: https://lore.kernel.org/r/20230511233351.635053-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>