]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
i386/tdx: Remove the redundant qemu_mutex_init(&tdx->lock)
authorXiaoyao Li <xiaoyao.li@intel.com>
Thu, 17 Jul 2025 10:37:07 +0000 (18:37 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jul 2025 15:18:59 +0000 (17:18 +0200)
Commit 40da501d8989 ("i386/tdx: handle TDG.VP.VMCALL<GetQuote>") added
redundant qemu_mutex_init(&tdx->lock) in tdx_guest_init by mistake.

Fix it by removing the redundant one.

Fixes: 40da501d8989 ("i386/tdx: handle TDG.VP.VMCALL<GetQuote>")
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Link: https://lore.kernel.org/r/20250717103707.688929-1-xiaoyao.li@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/kvm/tdx.c

index 1574e7d76fe0db1eee890d84efd9003783eb8642..dbf0fa2c9180d2efe30471c42d90c2e983b0b9bb 100644 (file)
@@ -1527,8 +1527,6 @@ static void tdx_guest_init(Object *obj)
                             tdx_guest_set_qgs,
                             NULL, NULL);
 
-    qemu_mutex_init(&tdx->lock);
-
     tdx->event_notify_vector = -1;
     tdx->event_notify_apicid = -1;
 }