This is the corresponding test for https://lore.kernel.org/kvm/20200218215902.5655-1-john.s.andersen@xxxxxxxxx/T/#t Thank you! John Andersen (1): x86: Add control register pinning test x86/Makefile.common | 3 +- lib/x86/desc.h | 1 + lib/x86/processor.h | 1 + lib/x86/desc.c | 8 +++ x86/cr_pin.c | 163 ++++++++++++++++++++++++++++++++++++++++++++ x86/pcid.c | 8 --- x86/unittests.cfg | 4 ++ 7 files changed, 179 insertions(+), 9 deletions(-) create mode 100644 x86/cr_pin.c -- 2.21.0