]> git.baikalelectronics.ru Git - kernel.git/commit
selftests, kvm: Replace manual MSR defs with common msr-index.h
authorSean Christopherson <sean.j.christopherson@intel.com>
Sat, 21 Dec 2019 04:44:56 +0000 (20:44 -0800)
committerBorislav Petkov <bp@suse.de>
Mon, 13 Jan 2020 16:30:04 +0000 (17:30 +0100)
commitc212bb4999ffbc405a7b47a6db5b4c9ad1b6abc6
tree55fd6b14eb3649bb9d6eb9e09cf51760ae930ab4
parente51f7d53f0782da32644fc9817a26e55a26f56de
selftests, kvm: Replace manual MSR defs with common msr-index.h

The kernel's version of msr-index.h was pulled wholesale into tools by
commit

  56bb40629a1a ("tools arch x86: Grab a copy of the file containing the MSR numbers"),

Use the common msr-index.h instead of manually redefining everything in
a KVM-only header.

Note, a few MSR-related definitions remain in processor.h because they
are not covered by msr-index.h, including the awesomely named
APIC_BASE_MSR, which refers to starting index of the x2APIC MSRs, not
the actual MSR_IA32_APICBASE, which *is* defined by msr-index.h.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20191221044513.21680-3-sean.j.christopherson@intel.com
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/include/x86_64/processor.h