From patchwork Mon Sep 17 16:31:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Emilio Cota X-Patchwork-Id: 10603017 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3656D17D5 for ; Mon, 17 Sep 2018 16:31:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2630D2A20A for ; Mon, 17 Sep 2018 16:31:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 24B032A213; Mon, 17 Sep 2018 16:31:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C56482A1D2 for ; Mon, 17 Sep 2018 16:31:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728668AbeIQV7U (ORCPT ); Mon, 17 Sep 2018 17:59:20 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:39617 "EHLO wout2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728542AbeIQV7T (ORCPT ); Mon, 17 Sep 2018 17:59:19 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id D0D00508; Mon, 17 Sep 2018 12:31:12 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 17 Sep 2018 12:31:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=braap.org; h=cc :date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=mesmtp; bh=4G+OwN0ryq4OH1 Lyn0mclEG6xDeM6ufrdpAJS8PXT04=; b=JPrZ9idE5m+3u5pl3peyXscGpLDcUe fwkZkvBalciTsroBO34FAwgA3EIItJiXi6YXRCPiW3kVPsLWM2LAESVJbKlAlfYq Zy7Fjz+jBXWzJvvgjo1g2oh9hxB9ka/EG++M/NGHEv40376EZFpLMGYdRdAkdemn qUEu6TyzMjzPs= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=4G+OwN0ryq4OH1Lyn0mclEG6xDeM6ufrdpAJS8PXT04=; b=kRKNOdqe hxNcTqQ5T+kKlep/VRFFfFR6r6gl1JA++6LlPKwxdnAiBLM/BWepOF271utgnQzi p4XnlGZgftczkBhDbAiHHoOsoP54k56nPib8pmK2akfd4xoChFrPwVETTdA6CWDe zcGpgDO4bwu6We+2z8o3M1KiH9sC+vkfy/1VRdzFrt+5rUsmAYdg+ZenAAYlVczy Ss1M7NsKOVETbltNXBibo0gcAue3c8fPIntaHmpTdbijlIht0bFl3qmE3E2FE1E+ CktHb269ikdsG5zaGIPD1JF7M9wCc/HBkxzlqVTCuXExECVfOja7jFrkdXDR/s+v t7/95aeWATWb8g== X-ME-Proxy: X-ME-Sender: Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 15BBBE4121; Mon, 17 Sep 2018 12:31:12 -0400 (EDT) From: "Emilio G. Cota" To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Marcelo Tosatti , Richard Henderson , Eduardo Habkost , kvm@vger.kernel.org Subject: [PATCH 32/35] target/i386/kvm: do not acquire the BQL to call cpu_reset_interrupt Date: Mon, 17 Sep 2018 12:31:00 -0400 Message-Id: <20180917163103.6113-33-cota@braap.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180917163103.6113-1-cota@braap.org> References: <20180917163103.6113-1-cota@braap.org> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Paolo Bonzini It's not needed anymore. Cc: Marcelo Tosatti Cc: Richard Henderson Cc: Eduardo Habkost Cc: kvm@vger.kernel.org Signed-off-by: Paolo Bonzini Signed-off-by: Emilio G. Cota Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- target/i386/kvm.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/target/i386/kvm.c b/target/i386/kvm.c index e40c8d5461..41c4830be8 100644 --- a/target/i386/kvm.c +++ b/target/i386/kvm.c @@ -3007,9 +3007,7 @@ void kvm_arch_pre_run(CPUState *cpu, struct kvm_run *run) /* Inject NMI */ if (interrupt_request & (CPU_INTERRUPT_NMI | CPU_INTERRUPT_SMI)) { if (interrupt_request & CPU_INTERRUPT_NMI) { - qemu_mutex_lock_iothread(); cpu_reset_interrupt(cpu, CPU_INTERRUPT_NMI); - qemu_mutex_unlock_iothread(); DPRINTF("injected NMI\n"); ret = kvm_vcpu_ioctl(cpu, KVM_NMI); if (ret < 0) { @@ -3018,9 +3016,7 @@ void kvm_arch_pre_run(CPUState *cpu, struct kvm_run *run) } } if (atomic_read(&cpu->interrupt_request) & CPU_INTERRUPT_SMI) { - qemu_mutex_lock_iothread(); cpu_reset_interrupt(cpu, CPU_INTERRUPT_SMI); - qemu_mutex_unlock_iothread(); DPRINTF("injected SMI\n"); ret = kvm_vcpu_ioctl(cpu, KVM_SMI); if (ret < 0) {