From nobody Mon Feb 9 23:02:49 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1576560510; cv=none; d=zohomail.com; s=zohoarc; b=Pt6pNpKjtNBHrKgDkOkFB7TevmJBW6h2nhUE/PDgtl+S9joXGjbT1Neh5M+wgMh/6Gnvgw1XAb/PbCI9oMSInpAMaY2iNjI0VknSJui4PyoIyg2uzXHLoU/trQFDGcijSNZG7HBrJSFJm49oZLT6/hdYsOttbURMCpcA52ea560= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576560510; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=6LoAf0vlsjUZKxQNnwCCfQ+2hGVmWFydOidfrj4UOoI=; b=eR74DhZupLjpiI4K5lsojSsMgGKpatn9dEDZoEFqulxTMQhEL4zfZHBLOd1xx2I/2ylJyTZUQJGQgH94IiOLkxEzZbQRT8jRlLSe44NvubWvoJ8jFC9I/0meHL9Lh67/BFUKzzZcEHayHpA3ciK9/SGumFTPjG+ndWZh+UC7FXo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1576560510498724.389876581725; Mon, 16 Dec 2019 21:28:30 -0800 (PST) Received: from localhost ([::1]:35832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ih5PI-0004FM-MD for importer@patchew.org; Tue, 17 Dec 2019 00:28:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35428) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ih4k9-0002MG-G7 for qemu-devel@nongnu.org; Mon, 16 Dec 2019 23:45:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ih4k6-00082W-1J for qemu-devel@nongnu.org; Mon, 16 Dec 2019 23:45:55 -0500 Received: from bilbo.ozlabs.org ([2401:3900:2:1::2]:54171 helo=ozlabs.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ih4k2-0007WF-CT; Mon, 16 Dec 2019 23:45:53 -0500 Received: by ozlabs.org (Postfix, from userid 1007) id 47cQWg4R8zz9sTc; Tue, 17 Dec 2019 15:43:39 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1576557823; bh=xZ5+eSjBmXhW8eTHhL7F8PZe9+G9Eaqb505vaM9HCi8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WWiMzqOymUtFm/gwdDyWiuiujLcU/HJtZ46pLUYkgb9IpTyfh1Kh6n5U8plNHdA0p 3rX+p6IhW0xSyCmu2/vLPXjwOCr2VWWkPXh9lrupk1ysjLGOjLNoTqO8dQ/zhnoJ4N RWLTwKqAlRkwrHV1UYBaFiJmMTSlhFum7AXS3W4E= From: David Gibson To: peter.maydell@linaro.org Subject: [PULL 59/88] ppc: Ignore the CPU_INTERRUPT_EXITTB interrupt with KVM Date: Tue, 17 Dec 2019 15:42:53 +1100 Message-Id: <20191217044322.351838-60-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191217044322.351838-1-david@gibson.dropbear.id.au> References: <20191217044322.351838-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2401:3900:2:1::2 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lvivier@redhat.com, aik@ozlabs.ru, qemu-devel@nongnu.org, groug@kaod.org, qemu-ppc@nongnu.org, clg@kaod.org, David Gibson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: Greg Kurz This only makes sense with an emulated CPU. Don't set the bit in CPUState::interrupt_request when using KVM to avoid confusions. Signed-off-by: Greg Kurz Message-Id: <157548863423.3650476.16424649423510075159.stgit@bahia.lan> Signed-off-by: David Gibson --- target/ppc/helper_regs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target/ppc/helper_regs.h b/target/ppc/helper_regs.h index 85dfe7687f..d78c2af63e 100644 --- a/target/ppc/helper_regs.h +++ b/target/ppc/helper_regs.h @@ -22,6 +22,7 @@ =20 #include "qemu/main-loop.h" #include "exec/exec-all.h" +#include "sysemu/kvm.h" =20 /* Swap temporary saved registers with GPRs */ static inline void hreg_swap_gpr_tgpr(CPUPPCState *env) @@ -102,6 +103,10 @@ static inline void hreg_compute_hflags(CPUPPCState *en= v) =20 static inline void cpu_interrupt_exittb(CPUState *cs) { + if (!kvm_enabled()) { + return; + } + if (!qemu_mutex_iothread_locked()) { qemu_mutex_lock_iothread(); cpu_interrupt(cs, CPU_INTERRUPT_EXITTB); --=20 2.23.0