From nobody Mon Feb 9 14:50:41 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; dkim=fail; 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1571928183; cv=none; d=zoho.com; s=zohoarc; b=lkbVSUhhij0jrZd/LcuDkT9CgpszvtjUjJEfYPmss+ePQdVgp5hxbPt0GVxWWHu3Q789HdP4+R1caixuKpLZaktu2xGb+BVy9V7T3GqAPr9ZvJQf1hJG2K0yzalFmTL+zvF2JGr53wal4JubS2o5zqe+wYTZqd074XbXOYTVIRY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571928183; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=jH2nwRqgKYa3R0rTBZTn8Xjzb4Jj1RuEeZP/EBmAFOQ=; b=PTZJlJOT/VWsKd88arVeuqUxnOAZJW0NGEwLfiwQVp+D0viDnBe0TPV9qh9AbzTKGikrqE1cTey33zLmvhw3fxLCfV+NHgQoGivVMF0GbvsJolF/57Mw/d6+v3h1vhXwabLGarPwuja53U04hhZm547bcZP7NwthD5AVfI4jGKQ= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; 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 1571928183241330.4117419754374; Thu, 24 Oct 2019 07:43:03 -0700 (PDT) Received: from localhost ([::1]:44478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNeKK-0006We-SE for importer@patchew.org; Thu, 24 Oct 2019 10:43:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34752) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNdiu-0007kI-L6 for qemu-devel@nongnu.org; Thu, 24 Oct 2019 10:04:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNdit-0007iy-HP for qemu-devel@nongnu.org; Thu, 24 Oct 2019 10:04:20 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:37250) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNdit-0007hc-59 for qemu-devel@nongnu.org; Thu, 24 Oct 2019 10:04:19 -0400 Received: by mail-wm1-x329.google.com with SMTP id q130so2569763wme.2 for ; Thu, 24 Oct 2019 07:04:17 -0700 (PDT) Received: from 640k.localdomain ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id b7sm10610155wrn.53.2019.10.24.07.04.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Oct 2019 07:04:15 -0700 (PDT) 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=jH2nwRqgKYa3R0rTBZTn8Xjzb4Jj1RuEeZP/EBmAFOQ=; b=ttWmgb69jGz6z5QeF+0pebo2cZ6OwLadDJYH6MVcSNs/aPgl9tPpoYyh6+LEGFZozD bwiamZoxfVu4NnjcMnzn531fBuf+Fw0v+H6ErrnyMACYzaLyQ1mzgRWdjEWFloxHnt/d mvMtBBWDszt69CYRKT8KL7DNi7W3cqU+HElPsLSM9Q5DEf/7Xzc+D4WaxiujfTrooR2p ROVRW1HYb1bTYvDFyTDvtTrIAFboIM0Pi7CQzaUy9tv8I4/LBHMC8d/fiEKxo/b03tWA vKYpkCmSW+XlVXOXjYt8lQOXW+9Dc74aD03evInhckEAq6twtW2XxCbYeq13I85O7KOQ QWXA== 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=jH2nwRqgKYa3R0rTBZTn8Xjzb4Jj1RuEeZP/EBmAFOQ=; b=YGBdU54p9Wc1hO6RTso90ljB36HRJBKRoGueBtmDp1XRCejFhkCtj9R8BJQNN2+Fxk ZaZRXplIOs+a0RsBGTYI2zfNauBtNP2Z1uZ4f3BIwcAvgyT2AWULKzEyXFGFdOYdeybp ti7QihfUOXytkKX/TOTknai3duIeGQ5y0Ghs1agyOg1A4lr3vmuxffzIIOI8lTVcNJIO R/SP/Fz6RBVa6ycfBVYJo0i5eR7GJAHcsUdMrq/ZQFKGDhDstNpkAfVT0Z7LGyc4CvQa hlpMbhX7ebt18CoLbJEloJrlRk1r9oacQqnTZZqpDahOpc0YTPmkOnwgbjVWnB6QLQQy hAIQ== X-Gm-Message-State: APjAAAXYuh/h6EyAv8GdtyKkpXtuWStLIpqLaUPUvYPemJ5y/wtx71jd i8Phdxy73ERaMRhbWw1tWtNzfNGn X-Google-Smtp-Source: APXvYqzxsM5TBXTsSUza+KaQ68RXiGu+M6DI8KdwDaR47CCDCVzUBM/iFuxTG6Do/BwABWDAPi30zg== X-Received: by 2002:a7b:cd19:: with SMTP id f25mr5365027wmj.154.1571925856561; Thu, 24 Oct 2019 07:04:16 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PULL 17/39] hw/intc/apic: reject pic ints if isa_pic == NULL Date: Thu, 24 Oct 2019 16:03:33 +0200 Message-Id: <1571925835-31930-18-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1571925835-31930-1-git-send-email-pbonzini@redhat.com> References: <1571925835-31930-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:4864:20::329 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: Sergio Lopez Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Sergio Lopez In apic_accept_pic_intr(), reject PIC interruptions if a i8259 PIC has not been instantiated (isa_pic =3D=3D NULL). Suggested-by: Paolo Bonzini Signed-off-by: Sergio Lopez Reviewed-by: Michael S. Tsirkin --- hw/intc/apic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/intc/apic.c b/hw/intc/apic.c index bce8991..2a74f7b 100644 --- a/hw/intc/apic.c +++ b/hw/intc/apic.c @@ -610,7 +610,7 @@ int apic_accept_pic_intr(DeviceState *dev) =20 if ((s->apicbase & MSR_IA32_APICBASE_ENABLE) =3D=3D 0 || (lvt0 & APIC_LVT_MASKED) =3D=3D 0) - return 1; + return isa_pic !=3D NULL; =20 return 0; } --=20 1.8.3.1