]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: KVM: Add test to verify KVM doesn't explode on "bad" I/O
authorSean Christopherson <seanjc@google.com>
Mon, 25 Oct 2021 20:13:11 +0000 (13:13 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 10 Dec 2021 14:38:02 +0000 (09:38 -0500)
commit4daccb05b95248aa7c10f303827ade19f6952631
treee20047a5b2f42c4ffe0e218f05b6e7e40ecff008
parentf48709be3558fee340bdae8f893c969725eb8889
selftests: KVM: Add test to verify KVM doesn't explode on "bad" I/O

Add an x86 selftest to verify that KVM doesn't WARN or otherwise explode
if userspace modifies RCX during a userspace exit to handle string I/O.
This is a regression test for a user-triggerable WARN introduced by
commit 657f22caa45d ("KVM: x86: split the two parts of emulator_pio_in").

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211025201311.1881846-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/.gitignore
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/x86_64/userspace_io_test.c [new file with mode: 0644]