From nobody Mon Feb 9 16:27:59 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linux.ibm.com ARC-Seal: i=1; a=rsa-sha256; t=1564069237; cv=none; d=zoho.com; s=zohoarc; b=DUek4G1PU7H3WA9kcdtTYiusIuyT7DFoTpggArhLUgwAyYgMan93AkJzr+hbL2WC+kYKwlnfh7MwUJ3qrxUrRcT7RxRgTOGD+CDTSlmS11lQ7f6nBaJheRp3nHOXLZHTSoyPBR4B6+S61JgfNYvXUgzc5QvOVqUMbjfL5VrnuJs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564069237; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=hXStGQHF94ei6ur87dY76Wb106ayrLaWi7KOl9ZzPk4=; b=h/G5RypygQsP9cIMsmY/uywKMWjPgupZf4NUyxB58KpFi9WpClUXTZscBmh85YhGpEznpCyyqnO+4BbFmI6FMsHc034yduo4kjLbbIC3gTrONbkeFcy3Gt18WhIsk1ucDL4wUysF3I2nloeE6w0J8nmlnf9fFtE41FcEzYV3PdA= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1564069237247127.0208115480151; Thu, 25 Jul 2019 08:40:37 -0700 (PDT) Received: from localhost ([::1]:33138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqfrA-0003FG-Ax for importer@patchew.org; Thu, 25 Jul 2019 11:40:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51179) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hqfqw-0002kU-Dy for qemu-devel@nongnu.org; Thu, 25 Jul 2019 11:40:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hqfqv-0004zy-Fs for qemu-devel@nongnu.org; Thu, 25 Jul 2019 11:40:22 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:49166) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hqfqv-0004zG-5n for qemu-devel@nongnu.org; Thu, 25 Jul 2019 11:40:21 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x6PFdJC0124752 for ; Thu, 25 Jul 2019 11:40:19 -0400 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2tydjgw05q-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 25 Jul 2019 11:40:19 -0400 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 25 Jul 2019 16:40:16 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 25 Jul 2019 16:40:13 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x6PFeCUV37683398 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 Jul 2019 15:40:13 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C9A5B11C05B; Thu, 25 Jul 2019 15:40:12 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3563911C05C; Thu, 25 Jul 2019 15:40:12 +0000 (GMT) Received: from lep8c.aus.stglabs.ibm.com (unknown [9.40.192.207]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 25 Jul 2019 15:40:12 +0000 (GMT) From: Shivaprasad G Bhat To: qemu-ppc@nongnu.org, qemu-devel@nongnu.org, david@gibson.dropbear.id.au Date: Thu, 25 Jul 2019 10:40:11 -0500 User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-TM-AS-GCONF: 00 x-cbid: 19072515-0020-0000-0000-000003572C5F X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19072515-0021-0000-0000-000021AB219A Message-Id: <156406920211.26945.15588948639720429804.stgit@lep8c.aus.stglabs.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-07-25_06:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=980 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1907250183 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 148.163.156.1 Subject: [Qemu-devel] [PATCH] ppc: remove redundant capability check for unset irq 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: groug@kaod.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" The KVM_CAP_PPC_UNSET_IRQ is part of kernel since v2.6.36. Kernels older than that are not supported anymore. So, remove the checks. Signed-off-by: Shivaprasad G Bhat --- target/ppc/kvm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/target/ppc/kvm.c b/target/ppc/kvm.c index 5ab5e6c6a9..94a2ecb84f 100644 --- a/target/ppc/kvm.c +++ b/target/ppc/kvm.c @@ -55,7 +55,6 @@ const KVMCapabilityInfo kvm_arch_required_capabilities[] = =3D { KVM_CAP_LAST_INFO }; =20 -static int cap_interrupt_unset; static int cap_segstate; static int cap_booke_sregs; static int cap_ppc_smt; @@ -104,7 +103,6 @@ static int kvmppc_get_dec_bits(void); =20 int kvm_arch_init(MachineState *ms, KVMState *s) { - cap_interrupt_unset =3D kvm_check_extension(s, KVM_CAP_PPC_UNSET_IRQ); cap_segstate =3D kvm_check_extension(s, KVM_CAP_PPC_SEGSTATE); cap_booke_sregs =3D kvm_check_extension(s, KVM_CAP_PPC_BOOKE_SREGS); cap_ppc_smt_possible =3D kvm_vm_check_extension(s, KVM_CAP_PPC_SMT_POS= SIBLE); @@ -1309,7 +1307,7 @@ int kvmppc_set_interrupt(PowerPCCPU *cpu, int irq, in= t level) return 0; } =20 - if (!kvm_enabled() || !cap_interrupt_unset) { + if (!kvm_enabled()) { return 0; } =20