From patchwork Fri Mar 1 18:59:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 777061 Delivered-To: patch@linaro.org Received: by 2002:adf:e94d:0:b0:33d:f458:43ce with SMTP id m13csp1516105wrn; Fri, 1 Mar 2024 11:00:45 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUR+fl49oijBarjtBP1bgM5LGzaWw5YDU6tM6H8WqWg93Bs9Nz/8mf9sjZQBswu4YLKobXjGQ5iiNsYW7r9267c X-Google-Smtp-Source: AGHT+IFIa9eRiftJljYKO0J8oCoD+NwRekmaJQmW84t9GB42ESsIZP3sBjPHQ5tyYqU64bhkrV/x X-Received: by 2002:a05:6102:3e1a:b0:472:6851:53f2 with SMTP id j26-20020a0561023e1a00b00472685153f2mr2437491vsv.7.1709319645443; Fri, 01 Mar 2024 11:00:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709319645; cv=none; d=google.com; s=arc-20160816; b=fbK1rCvq6LQGmYfwestjwVtuYwh8MvCfHuflXOQO6UYBNZDYLe2MO934lru8ExMSVR EgJ5JtegrZrUBB8ZTkMOjKLnZWzeWdTZqKJ5dd5eSYoSowbwaFgLZZx8dS2meol47WoN 4SdPBPboSiCiUQHX8J37sfIl5Ja41dD4jGqrkyU56N08beMcTzn3ZvUHrNox6N89Z/vX N9mqw9zaJBjWlkyy9LSpRTd3fq98LQVA63G9D77p+5q7J1LvE95/qZwJ14gSDwceu9J9 OBMUrlyCr3/uczMWPVszDK7EC+Ghv0mOx+0gbz2LKQ1PYBySQCnQW14tnNeNGkqJrCva PoOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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:dkim-signature; bh=BtfJTO9TdCzL5i6d7LjIfwE/FV4OnWItChimAYUDyq8=; fh=uo24KDmBVqaherla3Bl59bDnptNUrC8zBjew3/B+d3s=; b=zxPAuVVgt4lSTfK8sh9akqZMuoOlne6fUiCUn1aG148Kg517mP1ZL8fvq08qOVdY89 PThQla6mGSnB4eG0Vd8KEdWSEFu+9A6+8EZKQXvxXyCVFvK5k6009v8avTGV3177ejrz jQZSYavk+sbw9fxJUDnL3ELOR33cEGfYeLq9aCWymzs/0wHLj4Pw5okLWoKM1lk31Ah8 IXut0YBiBexZwSlhBOZZs9CPfeMsmRYe+xAR60UypMvEc6y5thvNVR5l6MwHsad0N+tJ SV5c5cMzMTNxcjtqgyRXrJiPC7wia0HyRsUXByzV37LGGU3wSKG2n8EQJ8Artt8lJVkN WUOg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pd74+PDh; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id dh26-20020a056102579a00b004705a0f1c2fsi814004vsb.271.2024.03.01.11.00.45 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Mar 2024 11:00:45 -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; dkim=pass header.i=@linaro.org header.s=google header.b=pd74+PDh; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rg86p-0007NP-8P; Fri, 01 Mar 2024 13:59:51 -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 ) id 1rg86n-0007Mu-PD for qemu-devel@nongnu.org; Fri, 01 Mar 2024 13:59:49 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rg86m-0004Ku-8X for qemu-devel@nongnu.org; Fri, 01 Mar 2024 13:59:49 -0500 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-412cda08022so2742685e9.2 for ; Fri, 01 Mar 2024 10:59:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709319586; x=1709924386; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BtfJTO9TdCzL5i6d7LjIfwE/FV4OnWItChimAYUDyq8=; b=pd74+PDhBwRykPDzoMQjve0GsXlz7jkEV+eHlzjYx1nBB1vBN/f1LHAdHdaB6Oaze7 V/FHcIOTmNzFJDHm28895Wv4fiN6TFlczxxib6RPa9JjtwTOjd3DVof1nV4gW3fhyDtg v6t3O+yCqL1xfiM/e7cidMlkJsY+94JrfyPOrrk/j4R/PdqZkiTfqVD7Vy7v6kocLc+N sxozAeCLRhbFhQfyUTRpgrn4iz1V7KlfFeSGP0Adykj5r8CXkpnBjRwgab7LmGJ7SGa9 hO2wz/JIwpqNAy/7ejxKBq8hZFiuM5UzYHNra2SJKnSZvsJM/TUXaPHe4okJx6qbZL9d mZbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709319586; x=1709924386; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BtfJTO9TdCzL5i6d7LjIfwE/FV4OnWItChimAYUDyq8=; b=fHBem9Khz8160vIMGovcIOTT7nBWUXQxKukGKqRDhpCFzXHqR2UGFAVncz/LevdECK 75yvmB6G/d3y3B0TCwcnYH9kgKZqEATlDOVxusdIN9tatD1KcQvbXV+pNxxpQ96eHOT/ bv5VLvM116Z8pZepoado5Gyl9i6jCx2NIoCcMw3ldBlacgdqwmZ3MOcHqwysGRZfCiXw fP5fOG2LtnGlPK3Zkm57AFBL18P8kF4lq8S4VzMt76tGWn5PBKn7rfSVjXYqcVdkvpul iEhevjjkxHrrg0PcpvQsYVwcDbs7kkAcvEE8QQNQdNE8u/2srhDfb6CF+S2GTtUXpQ8D FodQ== X-Gm-Message-State: AOJu0YyZCuE52Kw6cf2z7b55dsqUVcim/Vm6KzmuSHGMz6eeulhP/zCN RbgFLqaoSlaoZvKEsfk+LY28RAMQWZTDLSA7uTW4TLFtVv1PYM88a9e3yqiSLq0DboRb1d4+hW4 GtNa6ZA== X-Received: by 2002:a5d:6a08:0:b0:33e:fd3:8f4c with SMTP id m8-20020a5d6a08000000b0033e0fd38f4cmr2012508wru.1.1709319586405; Fri, 01 Mar 2024 10:59:46 -0800 (PST) Received: from m1x-phil.lan ([176.187.210.84]) by smtp.gmail.com with ESMTPSA id m17-20020a056000009100b0033e17341ebesm3737235wrx.117.2024.03.01.10.59.44 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 01 Mar 2024 10:59:46 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Bernhard Beschow , Eduardo Habkost , "Michael S. Tsirkin" , Richard Henderson , Marcel Apfelbaum , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 1/4] hw/i386/pc: Remove pc_compat_1_4..1.7[] left over declarations Date: Fri, 1 Mar 2024 19:59:33 +0100 Message-ID: <20240301185936.95175-2-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240301185936.95175-1-philmd@linaro.org> References: <20240301185936.95175-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=philmd@linaro.org; helo=mail-wm1-x32e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org These definitions were removed in commit ea985d235b ("pc_piix: remove pc-i440fx-1.4 up to pc-i440fx-1.7"). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- include/hw/i386/pc.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h index 5065590281..b958023187 100644 --- a/include/hw/i386/pc.h +++ b/include/hw/i386/pc.h @@ -288,18 +288,6 @@ extern const size_t pc_compat_2_1_len; extern GlobalProperty pc_compat_2_0[]; extern const size_t pc_compat_2_0_len; -extern GlobalProperty pc_compat_1_7[]; -extern const size_t pc_compat_1_7_len; - -extern GlobalProperty pc_compat_1_6[]; -extern const size_t pc_compat_1_6_len; - -extern GlobalProperty pc_compat_1_5[]; -extern const size_t pc_compat_1_5_len; - -extern GlobalProperty pc_compat_1_4[]; -extern const size_t pc_compat_1_4_len; - #define DEFINE_PC_MACHINE(suffix, namestr, initfn, optsfn) \ static void pc_machine_##suffix##_class_init(ObjectClass *oc, void *data) \ { \ From patchwork Fri Mar 1 18:59:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 777063 Delivered-To: patch@linaro.org Received: by 2002:adf:e94d:0:b0:33d:f458:43ce with SMTP id m13csp1516193wrn; Fri, 1 Mar 2024 11:00:53 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXrTG2wDSOR3+ZkJOzPyeE4Hxg3ZIFt718k9AOO/pK3kkr4jurAroMV7zbQNw97+WC87jPFduDfHL26xuroZUlv X-Google-Smtp-Source: AGHT+IHdQh71NX5laf3CdtrSf1M86hpcupWL1KWQMR4dzcwLtjiLmDjoE6vJYKlJRqQCahyXQNdm X-Received: by 2002:a05:6102:18cb:b0:471:e3d8:e59b with SMTP id jj11-20020a05610218cb00b00471e3d8e59bmr2297028vsb.20.1709319653116; Fri, 01 Mar 2024 11:00:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709319653; cv=none; d=google.com; s=arc-20160816; b=d5kj0nu+OFrCxMRPFEu5HVsVPCn32BDJfq5CeAJUeZeTLqSEe0pTI9rrxeTUTvzoM9 tB2OGjvqMbQUcploBfhoUM1tlqgJ/PRNC41yuAcUy/fBRyNJdfhdpyLL21mDYg8VktPL 2WB6ttiEnRR76nO+/py3e/2+6qkaq3hIHAoqjB/l4LNeaIFK9CUtdreo14fJVTjzQuvJ mR+EO/h5yktlRSvX5ekslhmOi753NgJxMuHrFGe3pKWJvnoUp0EgV+H0uRq7LhJ1rtpd nrvDGUJtPBrfnuZ/PhHofNNcJ2U4zqH20mdGBbCkjMUx7asjLdX3k/XycB//nYqqwTwo mgHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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:dkim-signature; bh=rt0/+i2C3VmFBjnLzoqxPp8QQxKL3HX9E43/9vQY3SM=; fh=uo24KDmBVqaherla3Bl59bDnptNUrC8zBjew3/B+d3s=; b=qEWIK9z3/+VqtRn19A2rdJuUPO3677kzxY1rn5OjHyBf+9tmVS5cpaD/cOCMIAS40C 6wic2C+V5AuMjju5oDb2RSw1r2KH5QInEV9WdcLzNCBx8T95edI2hwVHITruLSs5pmFP 1BbxHRsosxBkuupaBD5cIju0uX3xMlJ4JJU8yWjoz+WykXLrZXZet2vFteCkPsY3G5to VTjnJhWPpKO4yeegn/2EB1hZ7hlrWodOqeyzp7RgVyY6lUQ8EbeYMKnc5bbHgly/m+XF JEq8GQl2uS0pj2t1YbkU1kgNfTV8BspAOFSVdHoyuiaH8hLFbS29zyTXkwOTA382kc5A 9RQQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WqYLV6gd; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ch21-20020a0561300c9500b007db1827d356si195438uab.186.2024.03.01.11.00.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Mar 2024 11:00:53 -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; dkim=pass header.i=@linaro.org header.s=google header.b=WqYLV6gd; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rg86v-0007VZ-OZ; Fri, 01 Mar 2024 13:59:57 -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 ) id 1rg86u-0007UT-26 for qemu-devel@nongnu.org; Fri, 01 Mar 2024 13:59:56 -0500 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rg86s-0004L6-JI for qemu-devel@nongnu.org; Fri, 01 Mar 2024 13:59:55 -0500 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-412c780464dso7503865e9.0 for ; Fri, 01 Mar 2024 10:59:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709319593; x=1709924393; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rt0/+i2C3VmFBjnLzoqxPp8QQxKL3HX9E43/9vQY3SM=; b=WqYLV6gdGU2zcNc6Dt4ee/o59z0oZDrNV7Y0k7CMgNmstLdOWityJrvrwCeAJ8vQ3N FZwEXag8vDF1e5EeKwfUy0uZZggKnHFDj+HntSjrAcWV8N97Rw2ShJugyiukyBunvfYo L6wZYCpotuRturtV4bPlXtiy1GX6yTbkrbyO4abo0W74BthqjW0EDGD5MS+jGlKgAwCh 7lh9950/sQsCHDa4/YloEL1FTOotH7yPU+pBtAHyAS8uFdzazle/8hAxIVNLKNVWztmo d04PjsR2WR2oBQ5fXkRUUGCU+ahX6aeyCefcHu+BLuHO2jqhxV8Rf/AibICNy9+oX6NH K1Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709319593; x=1709924393; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rt0/+i2C3VmFBjnLzoqxPp8QQxKL3HX9E43/9vQY3SM=; b=DMien0SgipfHR9OlalTCr4FTUGNU3AXR4DUzDLXfl/3wtzqT3lZy+/NgnkwgjlD9b1 RCZIjJnYEnoD9WzX1a+sy5v8e8qmi5LWzffRVc+fHXvHu673setmea/o4NJzotO1c8oK /1qBcKdxPvdcauyqBMCaFzPq7O1bwvg6RCTOvL1wyiT3YsGP5ULh4piVXjdGbYxODpvU XmH5P3qglmBRG9d1acL3fx8j3/BqDqGbydTL/1/dC40ebYwsxAcbeRGk9q9mqk3H4/ch 31Wn0VPGMfbrK3/IR4OXLKqGFTwioM70BBa34hISmXd6+PvnTPQUFRRGiSFDLbk7arU7 ZMCg== X-Gm-Message-State: AOJu0Yyfzrq0mDdzGFuW3v0GSNl8BqOAIJ6FKVF67rrXxYplHSYRHynJ WNySW/JHaATxCaos75bvqBGWAfOZyFYzj+DcFDqEEbg+op6caQST+aFNpuaPCU5Br87Y34JO1Np f+hJs2w== X-Received: by 2002:a05:600c:350a:b0:412:cb58:6b20 with SMTP id h10-20020a05600c350a00b00412cb586b20mr1079044wmq.7.1709319592896; Fri, 01 Mar 2024 10:59:52 -0800 (PST) Received: from m1x-phil.lan ([176.187.210.84]) by smtp.gmail.com with ESMTPSA id dx14-20020a05600c63ce00b004129f28e2cdsm9185881wmb.3.2024.03.01.10.59.51 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 01 Mar 2024 10:59:52 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Bernhard Beschow , Eduardo Habkost , "Michael S. Tsirkin" , Richard Henderson , Marcel Apfelbaum , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 2/4] hw/i386/pc: Use generated NotifyVmexitOption_str() Date: Fri, 1 Mar 2024 19:59:34 +0100 Message-ID: <20240301185936.95175-3-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240301185936.95175-1-philmd@linaro.org> References: <20240301185936.95175-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=philmd@linaro.org; helo=mail-wm1-x336.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org NotifyVmexitOption_str() is QAPI-generated in "qapi/qapi-types-run-state.h", which "sysemu/runstate.h" already includes. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- hw/i386/pc_piix.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index ce6aad758d..0e688ed655 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -60,6 +60,7 @@ #include "hw/xen/xen.h" #include "migration/global_state.h" #include "migration/misc.h" +#include "sysemu/runstate.h" #include "sysemu/numa.h" #include "hw/hyperv/vmbus-bridge.h" #include "hw/mem/nvdimm.h" @@ -382,9 +383,6 @@ static const QEnumLookup PCSouthBridgeOption_lookup = { .size = PC_SOUTH_BRIDGE_OPTION_MAX }; -#define NotifyVmexitOption_str(val) \ - qapi_enum_lookup(&NotifyVmexitOption_lookup, (val)) - static int pc_get_south_bridge(Object *obj, Error **errp) { PCMachineState *pcms = PC_MACHINE(obj); From patchwork Fri Mar 1 18:59:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 777062 Delivered-To: patch@linaro.org Received: by 2002:adf:e94d:0:b0:33d:f458:43ce with SMTP id m13csp1516089wrn; Fri, 1 Mar 2024 11:00:44 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUDD8MbcqagLv6OsxcIMD1fJ+bzXB6gLcCbclj+yB7ZoLHRxUFIZWqRuhO8XvTExcFWESR2YpijgPVzaYCF5KDX X-Google-Smtp-Source: AGHT+IFw8mjpdNUtmkxFaoFxwWppAp1I5eCyPKp3E9SY7JnvT8vKXfepdmOUg7KDL8VlZSV2ffgc X-Received: by 2002:a67:f714:0:b0:472:66c8:e7fb with SMTP id m20-20020a67f714000000b0047266c8e7fbmr2420685vso.2.1709319644716; Fri, 01 Mar 2024 11:00:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709319644; cv=none; d=google.com; s=arc-20160816; b=DOjpmCOyXFc2bBRe/+Ni9T299t+dipe8PqYeTUG5cP7n6eqd/sRFB8BjotfBiwh2aN MrNGsclwfL9Jvf3gKjM6CviD8+FyaGOZNvYA7Xrwf33JWTQsDbghRVIE+SR2EhbhYega LEu4RGvM8bW4ANqffmlotljDRSzDgQFks168rzY4UHwr7yV8s9I9j0k3MAfJl0UbePgs VGEH7U/hOWp84yNcY8y9Dx+xr4MAiRhNpDkH2pIVbGqBJwpM0PqJGtxcxyB2cUp7xBaC rOLp+MXJhOdV05EDaEFNws/sMr8y6DImuQYG22mrKsu3Xy3oOptWa161xai4zXRi+k6k DYKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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:dkim-signature; bh=iHk7WDIhUQBXUG2yd5CNMJ5GMZ9MlTxW37cN4pEmRS8=; fh=uo24KDmBVqaherla3Bl59bDnptNUrC8zBjew3/B+d3s=; b=pAsD4VNPF31JyWCM+FoJLrO/rYYsrDd1yng2gcz9b6YlpyHwzK6DBc3he2gxE19EF/ fAJHtqwWt2wjmICJYK4WrU/y5zi8vSI125jL3rg2KBBmByVroM69YAdmZlW+4VfDLHrh f1TQPSOvk87aGPLONLh2w8/fE24HXuoHWDmw0faYY7V0DzALqyoGsFOG5BnZBEf8pzoG u496T/2svpefK8hknsP8fN5UOG0+moHUHaXiVzpqu36OxPd0Rw3wnkxUFlEDCxfdw1yP t2KBI40NDI8ozI0ssT6QkhVYuoANjHmGUNutmKYxYfEUrnQfemIYwoQYsuQOrsAUnfus kkgQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nyX6ydOp; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id bg6-20020a056102366600b0047265ea814esi596503vsb.140.2024.03.01.11.00.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Mar 2024 11:00:44 -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; dkim=pass header.i=@linaro.org header.s=google header.b=nyX6ydOp; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rg874-0007sB-AF; Fri, 01 Mar 2024 14:00:06 -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 ) id 1rg872-0007ot-ON for qemu-devel@nongnu.org; Fri, 01 Mar 2024 14:00:04 -0500 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rg870-0004Mo-Va for qemu-devel@nongnu.org; Fri, 01 Mar 2024 14:00:04 -0500 Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2d33986dbc0so11814461fa.2 for ; Fri, 01 Mar 2024 11:00:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709319599; x=1709924399; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iHk7WDIhUQBXUG2yd5CNMJ5GMZ9MlTxW37cN4pEmRS8=; b=nyX6ydOpWAsKrfwS+YiBv3bFfKkXmQC0BK6m0O6GyabF5oYjxdrTh1ZWVWP3ycftV4 s4J1I1ieXouO2IPe2jhtN3WR5TAczgyqzJs2DueAG+YLXIJHaUUtnJXD2HhuBvs4vQRZ qUz0dTpP156szK2bPKwBj/KkCXDyJp1AcgZxfchA7c/jx1jBMjJO7NboyRmzDNVPRNkp SD2Lpsg98bnyafzD3g8SdZsIkA0yQTim0Em6wRXFGRZ6vmzGQpAEu/G6NMqgSlFQkipY aIUm45kBEchkRAi2jR98SVq+IQOtWEdZsQcC+2Ri1BXysxkgkNM93KiY1LchjRMJyqgY H7kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709319599; x=1709924399; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iHk7WDIhUQBXUG2yd5CNMJ5GMZ9MlTxW37cN4pEmRS8=; b=IIArCNGaYvisS2syknSKrFFo1fqR4u1U6sDj6/CiYXX0dMwkLzNm8VnuP3QSFT8EfV VQMN5abeWKBmjTLqXRXeBQbOIApGAXDa3JBj2GYglRyQGUoKABLqqdSFowjby0lMmkGL BSaLgCam22htpcwR3mtU0rg+FMNQhyT2YYyswkmCFXPSa3GsdmrrhMSm0f4A0isWLEm5 b0Y0xndgV505SyxlAe6iavAveWTXLvD9UVzBY2SZT+2DIlGrbJ6UVN2ebciMDg9ajZxL oa0aFpmRhe0GVJwdFL38Qv9I8KEqeMPxQFp2Ek9CYF5G1Gs1oMWq51nfmXMN2DDneIOv WVsA== X-Gm-Message-State: AOJu0YxWPxG8kPBZGwDX3XEv8NsbUIZTm1gyH5U0aU9l7f2VOvRR9Okj SUafUiNMZtEccksj2ycOoCrYd0bQNKh2XDgOHWVypF93wo7I3gGzykWP7SWcHiU6yGsaLZz8DB/ zHs0big== X-Received: by 2002:a05:651c:1043:b0:2d2:a440:d704 with SMTP id x3-20020a05651c104300b002d2a440d704mr1824172ljm.24.1709319599194; Fri, 01 Mar 2024 10:59:59 -0800 (PST) Received: from m1x-phil.lan ([176.187.210.84]) by smtp.gmail.com with ESMTPSA id p39-20020a05600c1da700b00412d149ec79sm51068wms.5.2024.03.01.10.59.57 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 01 Mar 2024 10:59:58 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Bernhard Beschow , Eduardo Habkost , "Michael S. Tsirkin" , Richard Henderson , Marcel Apfelbaum , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 3/4] hw/i386/pc: Remove 'host_type' argument from pc_init1() Date: Fri, 1 Mar 2024 19:59:35 +0100 Message-ID: <20240301185936.95175-4-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240301185936.95175-1-philmd@linaro.org> References: <20240301185936.95175-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::229; envelope-from=philmd@linaro.org; helo=mail-lj1-x229.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org All callers use host_type=TYPE_I440FX_PCI_HOST_BRIDGE. Directly use this definition within pc_init1(). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson --- hw/i386/pc_piix.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 0e688ed655..400b1c1e15 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -100,8 +100,7 @@ static void piix_intx_routing_notifier_xen(PCIDevice *dev) } /* PC hardware initialisation */ -static void pc_init1(MachineState *machine, - const char *host_type, const char *pci_type) +static void pc_init1(MachineState *machine, const char *pci_type) { PCMachineState *pcms = PC_MACHINE(machine); PCMachineClass *pcmc = PC_MACHINE_GET_CLASS(pcms); @@ -193,7 +192,7 @@ static void pc_init1(MachineState *machine, memory_region_init(pci_memory, NULL, "pci", UINT64_MAX); rom_memory = pci_memory; - phb = OBJECT(qdev_new(host_type)); + phb = OBJECT(qdev_new(TYPE_I440FX_PCI_HOST_BRIDGE)); object_property_add_child(OBJECT(machine), "i440fx", phb); object_property_set_link(phb, PCI_HOST_PROP_RAM_MEM, OBJECT(ram_memory), &error_fatal); @@ -450,7 +449,7 @@ static void pc_compat_2_0_fn(MachineState *machine) #ifdef CONFIG_ISAPC static void pc_init_isa(MachineState *machine) { - pc_init1(machine, TYPE_I440FX_PCI_HOST_BRIDGE, TYPE_I440FX_PCI_DEVICE); + pc_init1(machine, TYPE_I440FX_PCI_DEVICE); } #endif @@ -460,9 +459,7 @@ static void pc_xen_hvm_init_pci(MachineState *machine) const char *pci_type = xen_igd_gfx_pt_enabled() ? TYPE_IGD_PASSTHROUGH_I440FX_PCI_DEVICE : TYPE_I440FX_PCI_DEVICE; - pc_init1(machine, - TYPE_I440FX_PCI_HOST_BRIDGE, - pci_type); + pc_init1(machine, pci_type); } static void pc_xen_hvm_init(MachineState *machine) @@ -487,8 +484,7 @@ static void pc_xen_hvm_init(MachineState *machine) if (compat) { \ compat(machine); \ } \ - pc_init1(machine, TYPE_I440FX_PCI_HOST_BRIDGE, \ - TYPE_I440FX_PCI_DEVICE); \ + pc_init1(machine, TYPE_I440FX_PCI_DEVICE); \ } \ DEFINE_PC_MACHINE(suffix, name, pc_init_##suffix, optionfn) From patchwork Fri Mar 1 18:59:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 777064 Delivered-To: patch@linaro.org Received: by 2002:adf:e94d:0:b0:33d:f458:43ce with SMTP id m13csp1516300wrn; Fri, 1 Mar 2024 11:01:02 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXka83eM1f0CGkELDrUoWhe2OIEJOVJ2lHXj54jY4G0Rja9OgZDJdQ2YwkJGXPpOe0LbhMEfroa5WbHkrMWQ5sN X-Google-Smtp-Source: AGHT+IG4JiQaOLllihDqPFiLb6pjlTlBiH5GHPToXkhvNKrlpbqWPPY+NfMVaNKzauwgQ3zHc8Yk X-Received: by 2002:a05:6102:3136:b0:472:63ea:a261 with SMTP id f22-20020a056102313600b0047263eaa261mr2172901vsh.13.1709319662049; Fri, 01 Mar 2024 11:01:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1709319662; cv=none; d=google.com; s=arc-20160816; b=JfTmss+HHrXVP35YAD2vft+KlnV5KoZ6becSb7yAsALo4qbpz4zDBgYhhnpZ6X0oMh 8QTYOVNovtA1nYgEng6ouqmHVdh9zWGafXnbSdu/h4hchs4vZwPuREASFY84vWOeNx1K 53VPWf+6dNjUSD/TtVsZ/QCs6f/AoODN0TlPQHqhI1sJBjzveKPusL2NFtI1SvgZaawr QRu+sO+Z+kFr6TgeLVfxPZoZnjmsHUS4wPgfrGVVL6IfS0X7Tz1ecqGtbZOQQXhK6h2X Os4N6ORzCAM7r+7qTdRz7o7Ro1ROvmBhYUqFSoZFrYMMV6wpZ8twQ7gtuaZZCR8J/dSV UkAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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:dkim-signature; bh=LnLg0GlDlx8BY5bqC0PJRd1qke0B9SIhpAt2ftapvRU=; fh=uo24KDmBVqaherla3Bl59bDnptNUrC8zBjew3/B+d3s=; b=TZTI0CtNNz7UiKlI2ErmejEZMyQdU2RyeKUAjkwKPz2erM+Yl2GOrnhVR5nRUsYlf7 EEYwmJdnuGD2SHCPEYaFecSkqwJUB+PzMaRqZdrAOl7i9/6vgQ+aJsR5Dx1SyGuqBk7S pg2o6ndTF3ObJ1a7w0Q3zrK2rUdKTW00IXGLNClF7d3MS55fs5r+OOPQ1D6IiNsWbADa 3V+qfjnKMImc+GBbUN2UWlHlxQpGGo/TlXkZYoPYCGEcrhLXTMnGIW9fxsocnWXulF6U KYcXcZVsk+PXHwktqewRQao9PaWW15y8ZjAm2sONWieeMEis6lsqlsvgNjBDlPfxxONg mGbw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MvAF5qYA; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id l24-20020a056102309800b0046d353d3956si622565vsb.430.2024.03.01.11.01.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Mar 2024 11:01:02 -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; dkim=pass header.i=@linaro.org header.s=google header.b=MvAF5qYA; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rg87A-0007vz-53; Fri, 01 Mar 2024 14:00:12 -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 ) id 1rg877-0007vQ-KR for qemu-devel@nongnu.org; Fri, 01 Mar 2024 14:00:09 -0500 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rg876-0004Z6-41 for qemu-devel@nongnu.org; Fri, 01 Mar 2024 14:00:09 -0500 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-412cb23625fso4369645e9.1 for ; Fri, 01 Mar 2024 11:00:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709319605; x=1709924405; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LnLg0GlDlx8BY5bqC0PJRd1qke0B9SIhpAt2ftapvRU=; b=MvAF5qYAfpApw60SfBfomJe+4cnnEgJx3jWq1fkrqupNN5ePuWaw7n2ZhVNlvAmatM d3fAZkyN+WQfhxC3KHJL1IA05LWwVEzz18DRJSb7THcUZZ4HQ/YeyHoykma7zIQc+Yy2 bneI6tC452hqvnqrDo2PIPUhyKgEw4M+b3LHDb3mn5liCQeNgGKr9tXD6mQ1a/4sopc9 rZ1/gKw0JVRCEHo5++pdRoTdEZhYWNmEKnUjxQtkqY+922ds2mhr8SbFuPqbc64KqHur ZxOhHweNp0ImeHyU2dyEF2ghj24/swzTQVf+McY3l19xrB+9PiAJFbsF7HaKjup1HoqY I8hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709319605; x=1709924405; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LnLg0GlDlx8BY5bqC0PJRd1qke0B9SIhpAt2ftapvRU=; b=a24OMi4DXT3fCHWRsfjNhHP18u1Lih8DPAYA4LYz3jrx6new0dhxouUTz0wCyJQBrZ nzqRWimNg0kAt7V130EQYL+cEzV5n6FTvIpAD8r60LubYp1Lk332EYN8Fl3vkLAqQBjM sFLe5m6tisxnQwgP1zr+/ssDJnAGHn8Qk/sdU5qcmMDrgG1nCpZ2gUovad6VwoRUXfHQ QSrY+mTyt9sXqcyZjBAqRUCuro4/z1wIWckWGxSQbE+1qMap/51dhX7RwlApfqeg/cHL HOC0bXyjmsle5XgfwXiBJoQjd+C3zTJ34Db7/EXtvBJKyAJgqseKeduWwE0EQSX4kvVJ LzbQ== X-Gm-Message-State: AOJu0YzrOUN1vwDVPrpSmXWzaJ1/MQO+/9ZkH9I8PrnjZSYauxXxCqGN QDROUND0MPWQ6QmmG3sqIvS+0cuQQVl4QmcxvvtPqSDkeHVPBPF/WjuuLB2flZ3ObOeCG5prqGv UPWZ1+g== X-Received: by 2002:a05:600c:3645:b0:412:b30b:e47b with SMTP id y5-20020a05600c364500b00412b30be47bmr1754728wmq.27.1709319605315; Fri, 01 Mar 2024 11:00:05 -0800 (PST) Received: from m1x-phil.lan ([176.187.210.84]) by smtp.gmail.com with ESMTPSA id dx14-20020a05600c63ce00b004129f28e2cdsm9186404wmb.3.2024.03.01.11.00.03 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 01 Mar 2024 11:00:04 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Bernhard Beschow , Eduardo Habkost , "Michael S. Tsirkin" , Richard Henderson , Marcel Apfelbaum , Paolo Bonzini , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 4/4] hw/i386/pc: Have pc_init_isa() pass a NULL pci_type argument Date: Fri, 1 Mar 2024 19:59:36 +0100 Message-ID: <20240301185936.95175-5-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240301185936.95175-1-philmd@linaro.org> References: <20240301185936.95175-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=philmd@linaro.org; helo=mail-wm1-x32b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org The "isapc" machine only provides an ISA bus, not a PCI one, and doesn't instanciate any i440FX south bridge. Its machine class defines PCMachineClass::pci_enabled = false, and pc_init1() only uses the pci_type argument when pci_enabled is true. Since for this machine the argument is not used, passing NULL makes more sense. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Bernhard Beschow --- hw/i386/pc_piix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 400b1c1e15..fa5f93f99f 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -449,7 +449,7 @@ static void pc_compat_2_0_fn(MachineState *machine) #ifdef CONFIG_ISAPC static void pc_init_isa(MachineState *machine) { - pc_init1(machine, TYPE_I440FX_PCI_DEVICE); + pc_init1(machine, NULL); } #endif