linux-stable/tools
Sean Christopherson 7a873e4555 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>
2020-11-15 09:49:08 -05:00
..
accounting
arch tools kvm headers: Update KVM headers from the kernel sources 2020-11-03 08:46:30 -03:00
bootconfig Updates for tracing and bootconfig: 2020-10-15 15:51:28 -07:00
bpf tools/bpftool: Fix attaching flow dissector 2020-11-05 18:20:41 -08:00
build tools feature: Fixup fast path feature detection 2020-11-03 09:24:20 -03:00
cgroup
debugging
edid
firewire
firmware
gpio
hv
iio
include tools include UAPI: Update linux/mount.h copy 2020-11-03 08:52:11 -03:00
io_uring
kvm/kvm_stat
laptop
leds
lib libbpf: Fix possible use after free in xsk_socket__delete 2020-11-04 21:37:29 +01:00
memory-model
objtool objtool changes for v5.10: 2020-10-14 10:13:37 -07:00
pci
pcmcia
perf perf tools: Add missing swap for cgroup events 2020-11-03 09:16:41 -03:00
power Merge branch 'turbostat' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux 2020-11-10 10:02:31 -08:00
scripts
spi
testing KVM: selftests: Verify supported CR4 bits can be set before KVM_SET_CPUID2 2020-11-15 09:49:08 -05:00
thermal/tmon
time
usb
virtio
vm
wmi
Makefile