KVM: SEV: Add GHCB handling for termination requests
authorMichael Roth <michael.roth@amd.com>
Wed, 1 May 2024 07:10:47 +0000 (02:10 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 May 2024 17:28:04 +0000 (13:28 -0400)
commit8d1a36e42be6b0864c2c30f94536663b6f08fb48
treebea59a98a90b1e23227fd48dc8f9952a65bb4eff
parentae01818398236ad6d8ecd6970334baf0b7c57409
KVM: SEV: Add GHCB handling for termination requests

GHCB version 2 adds support for a GHCB-based termination request that
a guest can issue when it reaches an error state and wishes to inform
the hypervisor that it should be terminated. Implement support for that
similarly to GHCB MSR-based termination requests that are already
available to SEV-ES guests via earlier versions of the GHCB protocol.

See 'Termination Request' in the 'Invoking VMGEXIT' section of the GHCB
specification for more details.

Signed-off-by: Michael Roth <michael.roth@amd.com>
Message-ID: <20240501071048.2208265-4-michael.roth@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c