diff options
author | Sean Christopherson <sean.j.christopherson@intel.com> | 2020-10-07 03:44:17 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-11-15 15:49:08 +0100 |
commit | 7a873e4555679a0e749422db071c142b57f80be9 (patch) | |
tree | 191f1cda10949add46169798c22612c724b02f0f /drivers/i2c/busses/i2c-sis5595.c | |
parent | KVM: x86: Return bool instead of int for CR4 and SREGS validity checks (diff) | |
download | linux-7a873e4555679a0e749422db071c142b57f80be9.tar.xz linux-7a873e4555679a0e749422db071c142b57f80be9.zip |
KVM: selftests: Verify supported CR4 bits can be set before KVM_SET_CPUID2
Extend the KVM_SET_SREGS test to verify that all supported CR4 bits, as
enumerated by KVM, can be set before KVM_SET_CPUID2, i.e. without first
defining the vCPU model. KVM is supposed to skip guest CPUID checks
when host userspace is stuffing guest state.
Check the inverse as well, i.e. that KVM rejects KVM_SET_REGS if CR4
has one or more unsupported bits set.
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20201007014417.29276-7-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'drivers/i2c/busses/i2c-sis5595.c')
0 files changed, 0 insertions, 0 deletions