KVM: selftests: Move platform_info_test's main assert into guest code
authorSean Christopherson <seanjc@google.com>
Thu, 14 Mar 2024 23:26:24 +0000 (16:26 -0700)
committerSean Christopherson <seanjc@google.com>
Mon, 29 Apr 2024 19:55:11 +0000 (12:55 -0700)
commit53635ec253c025aeb0e4401e586a8f7827cd7817
treefb1d0828c17bbe41cd15f889851b269fe6b8d428
parent0d95817e075314706b3e4086080a9bbb1421634c
KVM: selftests: Move platform_info_test's main assert into guest code

As a first step toward gracefully handling the expected #GP on RDMSR in
platform_info_test, move the test's assert on the non-faulting RDMSR
result into the guest itself.  This will allow using a unified flow for
the host userspace side of things.

Link: https://lore.kernel.org/r/20240314232637.2538648-6-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86_64/platform_info_test.c