Commit ecb89a5
KVM: selftests: Check for KVM nEPT support using "feature" MSRs
When checking for nEPT support in KVM, use kvm_get_feature_msr() instead
of vcpu_get_msr() to retrieve KVM's default TRUE_PROCBASED_CTLS and
PROCBASED_CTLS2 MSR values, i.e. don't require a VM+vCPU to query nEPT
support.
Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20220927165209.930904-1-dmatlack@google.com
[sean: rebase on merged code, write changelog]
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent b941ba2 commit ecb89a5
2 files changed
+5
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
575 | | - | |
| 575 | + | |
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
547 | | - | |
| 547 | + | |
548 | 548 | | |
549 | | - | |
550 | 549 | | |
551 | 550 | | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
| 551 | + | |
556 | 552 | | |
557 | 553 | | |
558 | 554 | | |
559 | | - | |
| 555 | + | |
560 | 556 | | |
561 | 557 | | |
562 | 558 | | |
563 | 559 | | |
564 | 560 | | |
565 | 561 | | |
566 | | - | |
| 562 | + | |
567 | 563 | | |
568 | 564 | | |
569 | 565 | | |
| |||
0 commit comments