]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
KVM: selftests: Verify SEV+ guests can read and write EFER, CR0, CR4, and CR8
authorSean Christopherson <seanjc@google.com>
Tue, 10 Mar 2026 21:18:41 +0000 (14:18 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 Mar 2026 16:31:53 +0000 (17:31 +0100)
commitd2ea4ff1ce50787a98a3900b3fb1636f3620b7cf
tree4a9789600248f71fbf00755ba1cb7afa7df21ae9
parentdca01b0a264642929732c4db4a07e7b213304c15
KVM: selftests: Verify SEV+ guests can read and write EFER, CR0, CR4, and CR8

Add "do no harm" testing of EFER, CR0, CR4, and CR8 for SEV+ guests to
verify that the guest can read and write the registers, without hitting
e.g. a #VC on SEV-ES guests due to KVM incorrectly trying to intercept a
register.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-ID: <20260310211841.2552361-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/x86/processor.h
tools/testing/selftests/kvm/x86/sev_smoke_test.c