From nobody Sat Oct 25 09:04:20 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1520344276481795.8613257435552; Tue, 6 Mar 2018 05:51:16 -0800 (PST) Received: from localhost ([::1]:55894 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etCzo-0008Tq-6i for importer@patchew.org; Tue, 06 Mar 2018 08:51:12 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etCVu-0005dE-8x for qemu-devel@nongnu.org; Tue, 06 Mar 2018 08:20:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etCVk-0006bU-SS for qemu-devel@nongnu.org; Tue, 06 Mar 2018 08:20:18 -0500 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:40145) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1etCVk-0006aK-M4 for qemu-devel@nongnu.org; Tue, 06 Mar 2018 08:20:08 -0500 Received: by mail-wm0-x244.google.com with SMTP id t6so22236132wmt.5 for ; Tue, 06 Mar 2018 05:20:08 -0800 (PST) Received: from 640k.lan (94-36-191-219.adsl-ull.clienti.tiscali.it. [94.36.191.219]) by smtp.gmail.com with ESMTPSA id l38sm25652538wrc.96.2018.03.06.05.20.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Mar 2018 05:20:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=a5ViPcxDzs39R44v8095r4iNrAUeZILFkzPiYSYV01g=; b=bbRX3AcJu5fHoCzvC+WvZShsH4I4Jt4G94937HhGUorWlxySsoFkVQI6VpT8+rdlhK 8+WcZgfZmJ2qP1CiyUc0dOnVG9KcuZoZZQOA0HcvSRdB/DruVNITgK9tLDntnsiRQmsQ T1yWIS7PS7dD8U+kzpgI1uBxbJwXcsac4c2wPDm6RHHnDGZEUiVjZ5eLn/Leyt+ONAIR FeT2ih4G6GkTX8LgV3bfv2M0hly+I4LbObEIPMlCzCZpsXgUY9gZf+yhRKC1M7UmDGMy e6rKf2v8ybx+PneskAp+lTKfsRkgDcKAWRMA9wkkGcBNjMk5nOqeySkxQDUtexSbJV+n Zbiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=a5ViPcxDzs39R44v8095r4iNrAUeZILFkzPiYSYV01g=; b=a/SFelrveIEkwErz4IB5iE1FrnRNeQ8dCCDD5ycTJnZeBJKAcqvawLTG6PHbRYYtvy 8ZU4gn2BFqjPvoFy9Dpn1CKaL5Bs2LnZobycLWlBsH9FTs4vVFAmWu15W4i0+jeWdoBX iDpC2+LDvxyuTL6QOVun8f5qI+tVmR7lakFXmZoEg+DW6jUYe9/ICsIB9hLrpTZaJPSC BnlqS0+yKHNeNvbkebtpXBNP8LHJfuI6c2UxLCp0v6lv7yENaz69RBMJjz26CAEukFvq vvbcmGRNP00YiZrMJr5uwQoW69q4CfQT6X2ONsz1dS6m4C4C9ZkvVIB07sti2NNcemNe VLbg== X-Gm-Message-State: AElRT7Gg0oVyKjrD9F8K5geSAdb8yqcPR/XJ6AuUdwFuIOjHNUPr/Xuv wE5AHqHSvyqWK1OH7RfUMwcMlZcO X-Google-Smtp-Source: AG47ELtppeKgtRmclheQzUHFKbhDnaG7JMau2yM2zRQpMCNaYsvbmG+qGkNeKz/t3PLBDLPeeINBag== X-Received: by 10.28.116.14 with SMTP id p14mr12158953wmc.117.1520342407433; Tue, 06 Mar 2018 05:20:07 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Tue, 6 Mar 2018 14:19:24 +0100 Message-Id: <1520342370-123606-29-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1520342370-123606-1-git-send-email-pbonzini@redhat.com> References: <1520342370-123606-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::244 Subject: [Qemu-devel] [PULL 28/34] Fix WHPX additional lock acquisition X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Justin Terry \(VM\)" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: "Justin Terry (VM) via Qemu-devel" The code already is holding the qemu_mutex for the IO thread. We do not need to additionally take the lock again in this case. Signed-off-by: Justin Terry (VM) Message-Id: <1519665216-1078-5-git-send-email-juterry@microsoft.com> Signed-off-by: Paolo Bonzini Signed-off-by: Justin Terry (VM) via Qemu-devel --- target/i386/whpx-all.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/target/i386/whpx-all.c b/target/i386/whpx-all.c index 14ea732..74a8f4d 100644 --- a/target/i386/whpx-all.c +++ b/target/i386/whpx-all.c @@ -705,9 +705,7 @@ static void whpx_vcpu_pre_run(CPUState *cpu) new_int.InterruptionVector =3D 2; } if (cpu->interrupt_request & CPU_INTERRUPT_SMI) { - qemu_mutex_lock_iothread(); cpu->interrupt_request &=3D ~CPU_INTERRUPT_SMI; - qemu_mutex_unlock_iothread(); } } =20 --=20 1.8.3.1