Message ID | 20241119060418.2368866-2-mjt@tls.msk.ru |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6000:8b:b0:382:43a8:7b94 with SMTP id m11csp1004508wrx; Mon, 18 Nov 2024 22:05:32 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXGdswq0mVO2/IpSLaQ8bz7ST/ntUDQLRvtJEekeQuoMdLuhNW/i/ZigvgktRNOqufjoU2dPw==@linaro.org X-Google-Smtp-Source: AGHT+IHapQN5Hhh2uaRGuAL7Gj6AyLbUMqjJihslW4mNikqZ+OeAOwc0QIG6/WU2WdJi57h/akuF X-Received: by 2002:a05:622a:1aa4:b0:45d:7ebd:76e0 with SMTP id d75a77b69052e-46363e9ffb0mr222234771cf.44.1731996331758; Mon, 18 Nov 2024 22:05:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731996331; cv=none; d=google.com; s=arc-20240605; b=fBItAg5BPwO8pfzcslwnjBeax5vJRP77vyTjtiJNw8RuGWraKonoZJVvotTEPRVKnA BsZc4FMi81RRR8il3gW9Uq95hTZsN4kj3vj5nRxm7ZijS+j6Djv8cE3yH9cASKcuU0ob NKRkuIExknBKArJI6Km4yvauW5+X4xQW4Z/avycef9SZKyqeNVOBcMCMU5OnmIvGDunR 6DeogAC8pj0D98dK78yQ+IJQjDe452Y+a5umM8s8KZe7o/1DekIlZTgsr+cxzqnCofMs WUHQ2ao/rc4j682upIkaf1+1B+Psl3EoSrDyJvZxUeVXUk33mdGym+f8hsOEDzdJH22b rM5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=62JqUg92M3alw/Usv8GuoT3aBRifxrz6aoofIKY02Dw=; fh=tMa47au2sw5piyxOJuQsGBLvYh0d/gfD9bj/VCraw+I=; b=CbpKI0KllscW1SEVCnpPoA7pQSDxuPRWNTf/eYhgnRdKb8QqeGK4wYo7T6x/vAllCE L9VD90kaR+qcGnelK/Nz7itXiUtMRVIFGL9O8zzFVZ79AUpJLZGLf7SFh0ZIrqrjkzPQ nUGMTSyjZbMe8Unpuipc9FXDuEX1NnvAzQdL94/HMr3KSIqNu/TaIB3PwuaWKTMIb2nl F5VRHfCNfx6YU9pYdci8//F5xaBEt/55m2d0mduxsGjv6Px08qQTT3zqbh+42rvI58ZS k76j6kC7WQ4r4Z5KUMV9Heq9Ihw6qiEKFJ4zXHABAyytLc5AlOjNdqWQvOM09Ue770Uq kZOg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-46392c1d386si14276121cf.225.2024.11.18.22.05.31 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Nov 2024 22:05:31 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1tDHLp-0000sD-VA; Tue, 19 Nov 2024 01:04:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <mjt@tls.msk.ru>) id 1tDHLn-0000jq-3Z; Tue, 19 Nov 2024 01:04:35 -0500 Received: from isrv.corpit.ru ([86.62.121.231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <mjt@tls.msk.ru>) id 1tDHLk-0004cR-Rq; Tue, 19 Nov 2024 01:04:34 -0500 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id A4FADA6261; Tue, 19 Nov 2024 09:04:14 +0300 (MSK) Received: from tls.msk.ru (mjt.wg.tls.msk.ru [192.168.177.130]) by tsrv.corpit.ru (Postfix) with SMTP id CBBBB1738D7; Tue, 19 Nov 2024 09:04:18 +0300 (MSK) Received: (nullmailer pid 2368929 invoked by uid 1000); Tue, 19 Nov 2024 06:04:18 -0000 From: Michael Tokarev <mjt@tls.msk.ru> To: qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org, Peter Maydell <peter.maydell@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>, Michael Tokarev <mjt@tls.msk.ru> Subject: [Stable-9.1.2 59/72] hw/i386/pc: Don't try to init PCI NICs if there is no PCI bus Date: Tue, 19 Nov 2024 09:04:00 +0300 Message-Id: <20241119060418.2368866-2-mjt@tls.msk.ru> X-Mailer: git-send-email 2.39.5 In-Reply-To: <qemu-stable-9.1.2-20241118224223@cover.tls.msk.ru> References: <qemu-stable-9.1.2-20241118224223@cover.tls.msk.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=86.62.121.231; envelope-from=mjt@tls.msk.ru; helo=isrv.corpit.ru X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
None
|
expand
|
diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 7779c88a91..a527c0df0a 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -1245,7 +1245,9 @@ void pc_nic_init(PCMachineClass *pcmc, ISABus *isa_bus, PCIBus *pci_bus) } /* Anything remaining should be a PCI NIC */ - pci_init_nic_devices(pci_bus, mc->default_nic); + if (pci_bus) { + pci_init_nic_devices(pci_bus, mc->default_nic); + } rom_reset_order_override(); }