mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-04 15:20:41 -07:00
i386/tdx: Finalize TDX VM
Invoke KVM_TDX_FINALIZE_VM to finalize the TD's measurement and make the TD vCPUs runnable once machine initialization is complete. Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Link: https://lore.kernel.org/r/20250508150002.689633-27-xiaoyao.li@intel.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
41f7fd2207
commit
ae60ff4e9f
1 changed files with 3 additions and 0 deletions
|
|
@ -353,6 +353,9 @@ static void tdx_finalize_vm(Notifier *notifier, void *unused)
|
|||
*/
|
||||
ram_block = tdx_guest->tdvf_mr->ram_block;
|
||||
ram_block_discard_range(ram_block, 0, ram_block->max_length);
|
||||
|
||||
tdx_vm_ioctl(KVM_TDX_FINALIZE_VM, 0, NULL, &error_fatal);
|
||||
CONFIDENTIAL_GUEST_SUPPORT(tdx_guest)->ready = true;
|
||||
}
|
||||
|
||||
static Notifier tdx_machine_done_notify = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue