i386/tdx: Remove the redundant qemu_mutex_init(&tdx->lock)
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>")
Reported-by Peter Maydell <[email protected]>
Signed-off-by Xiaoyao Li <[email protected]>
--- target/i386/kvm/tdx.c | 2 -- 1 file changed, 2 deletions(-)
target/i386/kvm/tdx.c +0 -2
@@ -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
Quoted 11 lines · Xiaoyao Li
Commit
40da501d8989("i386/tdx: handle TDG.VP.VMCALL<GetQuote>") added redundantqemu_mutex_init(&tdx->lock)intdx_guest_initby mistake.Fix it by removing the redundant one.
Fixes 40da501d8989 ("i386/tdx: handle TDG.VP.VMCALL<GetQuote>")Reported-by Peter Maydell <[email protected]>Signed-off-by Xiaoyao Li <[email protected]>--- target/i386/kvm/tdx.c | 2 -- 1 file changed, 2 deletions(-)
Reviewed-by Daniel P. Berrangé <[email protected]>
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 :|
Paolo Bonzini
AppliedQueued, thanks.
Paolo