KVM: selftests: Add "zero" testcase to set_memory_region_test
authorSean Christopherson <sean.j.christopherson@intel.com>
Fri, 10 Apr 2020 23:17:05 +0000 (16:17 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Apr 2020 16:08:45 +0000 (12:08 -0400)
commit8cc2dd637b890d75613387daf57af7e8f3a32e33
tree2684d4c5e2f22e196a845b925179b1d88c83bae8
parent4cd94d125df531f9f569478eb3e025f08bc180f2
KVM: selftests: Add "zero" testcase to set_memory_region_test

Add a testcase for running a guest with no memslots to the memory region
test.  The expected result on x86_64 is that the guest will trigger an
internal KVM error due to the initial code fetch encountering a
non-existent memslot and resulting in an emulation failure.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200410231707.7128-9-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/x86_64/set_memory_region_test.c