]> git.baikalelectronics.ru Git - kernel.git/commit
KVM, SEV: Add KVM_EXIT_SHUTDOWN metadata for SEV-ES
authorPeter Gonda <pgonda@google.com>
Thu, 7 Apr 2022 21:02:33 +0000 (14:02 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Apr 2022 17:37:46 +0000 (13:37 -0400)
commit46002036242eaa55c80c51434ad1dc83c67d39b6
tree826747f1331d720dca6b8677fc46e56069b7f6a7
parentcb9f3c4c3a174acdd8dc52b054769e95246f85de
KVM, SEV: Add KVM_EXIT_SHUTDOWN metadata for SEV-ES

If an SEV-ES guest requests termination, exit to userspace with
KVM_EXIT_SYSTEM_EVENT and a dedicated SEV_TERM type instead of -EINVAL
so that userspace can take appropriate action.

See AMD's GHCB spec section '4.1.13 Termination Request' for more details.

Suggested-by: Sean Christopherson <seanjc@google.com>
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Peter Gonda <pgonda@google.com>
Reported-by: kernel test robot <lkp@intel.com>
Message-Id: <20220407210233.782250-1-pgonda@google.com>
[Add documentatino. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Documentation/virt/kvm/api.rst
arch/x86/kvm/svm/sev.c
include/uapi/linux/kvm.h