Skip to contentSkip to conversation

i386/tdx: Remove the redundant qemu_mutex_init(&tdx->lock)

PATCH Applied Xiaoyao Li 3 participants 3 messages Jul 17, 2025 x86 trust domain extensions (TDX)

lore
Share & tools
lore

Xiaoyao Li

author
#0 lore raw

PATCH 1/1 i386/tdx: Remove the redundant qemu_mutex_init(&tdx->lock)

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>")
---
 target/i386/kvm/tdx.c | 2 --
 1 file changed, 2 deletions(-)
target/i386/kvm/tdx.c +0 -2
index 7d69d6d7b066..107058ed794c 100644
@@ -1523,8 +1523,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;
 }
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Xiaoyao Li

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>")
---
 target/i386/kvm/tdx.c | 2 --
 1 file changed, 2 deletions(-)

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|