]> git.proxmox.com Git - mirror_qemu.git/commit
confidential guest support: Add kvm_init() and kvm_reset() in class
authorXiaoyao Li <xiaoyao.li@intel.com>
Thu, 29 Feb 2024 06:00:35 +0000 (01:00 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 23 Apr 2024 15:35:25 +0000 (17:35 +0200)
commit41a605944e3fecae43ca18ded95ec31f28e0c7fe
treedbc422c2f13ecbb834b25b32f1864bd514c4697e
parent292dd287e78e0cbafde9d1522c729349d132d844
confidential guest support: Add kvm_init() and kvm_reset() in class

Different confidential VMs in different architectures all have the same
needs to do their specific initialization (and maybe resetting) stuffs
with KVM. Currently each of them exposes individual *_kvm_init()
functions and let machine code or kvm code to call it.

To facilitate the introduction of confidential guest technology from
different x86 vendors, add two virtual functions, kvm_init() and kvm_reset()
in ConfidentialGuestSupportClass, and expose two helpers functions for
invodking them.

Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Message-Id: <20240229060038.606591-1-xiaoyao.li@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/exec/confidential-guest-support.h