diff options
author | Xiaoyao Li <xiaoyao.li@intel.com> | 2025-07-17 18:37:07 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-07-17 17:18:59 +0200 |
commit | f64832033d1262983bfe759669b4f65080f760dc (patch) | |
tree | 285ff58384e94e09ae0deda1581b7d393a0d7a67 | |
parent | 5fe6b9a854a91df86fdb794cbeb67d0656756137 (diff) | |
download | qemu-f64832033d1262983bfe759669b4f65080f760dc.zip qemu-f64832033d1262983bfe759669b4f65080f760dc.tar.gz qemu-f64832033d1262983bfe759669b4f65080f760dc.tar.bz2 |
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>")
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>
-rw-r--r-- | target/i386/kvm/tdx.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/target/i386/kvm/tdx.c b/target/i386/kvm/tdx.c index 1574e7d..dbf0fa2 100644 --- a/target/i386/kvm/tdx.c +++ b/target/i386/kvm/tdx.c @@ -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; } |