KVM: selftests: Add helpers to read kvm_{intel,amd} boolean module parameters
authorDavid Matlack <dmatlack@google.com>
Thu, 29 Sep 2022 18:12:06 +0000 (11:12 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 30 Sep 2022 10:39:36 +0000 (06:39 -0400)
commit4d2bd14319e4e0a49fc868c50ca0b2a747b58208
tree4d2dfe8976ecdd70e388823593c42653db38b81f
parent62ece2c5a95cc989648c39155173d3bae27e89a3
KVM: selftests: Add helpers to read kvm_{intel,amd} boolean module parameters

Add helper functions for reading the value of kvm_intel and kvm_amd
boolean module parameters. Use the kvm_intel variant in
vm_is_unrestricted_guest() to simplify the check for
kvm_intel.unrestricted_guest.

No functional change intended.

Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20220929181207.2281449-3-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/kvm_util_base.h
tools/testing/selftests/kvm/lib/kvm_util.c
tools/testing/selftests/kvm/lib/x86_64/processor.c