From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 358EFD58D4B for ; Mon, 25 Nov 2024 14:06:16 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFZj8-0001xx-R9; Mon, 25 Nov 2024 09:06:11 -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 1tFZj5-0001x5-5A for qemu-riscv@nongnu.org; Mon, 25 Nov 2024 09:06:07 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tFZj2-0006Rp-1F for qemu-riscv@nongnu.org; Mon, 25 Nov 2024 09:06:06 -0500 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-43169902057so39537535e9.0 for ; Mon, 25 Nov 2024 06:06:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732543562; x=1733148362; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=AeD0P2OiM6dGib9Y7QdKZWERXOxrMdWt2Pcq04zPLT8=; b=iSfBENEsO7tDUZ4jhNgFqw9os/WT4E5JWDfhoRd1Jp8KLmTgNicdWukMBPLQJt03I6 QfryLUmJFzcQHKJkIfVC+nKi9lG5jLFT/GW/6YdNzjtzhJdLjBIX0yqu/vKA9ZIwNvX2 wyYOUYszT3h1DDjVMHL2+9/W4CDkVS4jZ2RVBe6zh+nJ5W8KNKEV1Q5fAQQt4QicuE69 Bfivhrn21AFndV33UhNPStwymZ3MltSYoEOg+KncklR80Q8ILjE6ayGYh4BGu4sYXsEt nc3SboCxlHJgPgZeoTaTxwXtDNMY1IhaFc/U/11OnKtL9fT7xOXo8lvZ5XDzoldgCK/w QXdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732543562; x=1733148362; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AeD0P2OiM6dGib9Y7QdKZWERXOxrMdWt2Pcq04zPLT8=; b=NK2iNfLi3aa/PHCtv4UvhnmpxZJMkRG8H15blbtQWJoDmaju045Zd3UCKLC/LKr8i6 A11jNTmwrWadsPBirbTeAksYcruEUdoT1EpSIyqL96OoRh9CBhLy/+8Hc7HeaOlSWZu6 cVVRJETMDhKd+VRiu/f4faH75nykpgdY7o4VxoTvnjDZlcxMYas0IregVozgiJz/fG/o VmgS4ofNNcKhleHdpBqY53uQuNqQ+C5NkDuMa7iAQ/Zux9/DRhJgR6cRcpJ3re5iYKB3 IfSYiQPgIEQWCMiLyCmSZ1HDjl5MccnVVfY+8VLXbQrTQ+UV3EQvD6L3v42EE9kGOfEI +22g== X-Forwarded-Encrypted: i=1; AJvYcCWi4vJ4RCxDhAiarVScPczoyJVQGfmRUCqyGKO0lQs8an4pgkSoqJZQcf09osTTpb4aKrhbTY2o3etQ@nongnu.org X-Gm-Message-State: AOJu0Yz3jYYVP9bc/o0BYXoii7cXwDX3QBCLNAdDiNQimabkDRpJBxhC +qvhzY3diO5JpuBcF2X4WzbuaDvZgdU99L9D66ht8lejXvfQoni8EtxCJH7JQvA= X-Gm-Gg: ASbGnct9Sqr0jCgSHleDf8viWm0e2ZFjEiIAhPHTq0kwXu1St9XMlq7i8hGiTOYRyA/ NWCVqk0tjcn07RPmeonBHhiOihyLh9v0B9Q34PVqyhxGZywhxDT+puhS05asqqbFmMHiBW7EDau 247OUPn80BmUlX8EHwk7Ha5GpO2Pn7RRF68ilhDkoNzmnUOW91R6e7uCZAkdsz1anaCxF3Wu3b7 Ap0Jy4UklnOrWgpARH0xZVjCpy0Eq0Lml5C9GHQjFktaD1GGXmAraEQ6SNZg6z6RBGHC3iR X-Google-Smtp-Source: AGHT+IHLP+UUX6cL/ixIRSYIjytDfrJPlkfU51kAk2X6zzlDdsnbX5ilVe2fdWmGidmW5A1KKvscvw== X-Received: by 2002:a05:6000:1882:b0:382:4fd6:405e with SMTP id ffacd0b85a97d-38260b86b69mr9463747f8f.29.1732543539222; Mon, 25 Nov 2024 06:05:39 -0800 (PST) Received: from localhost.localdomain ([176.176.170.239]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434a340369asm4387695e9.3.2024.11.25.06.05.36 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 25 Nov 2024 06:05:38 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Daniel Henrique Barboza , Marcin Juszkiewicz , Bin Meng , Alistair Francis , Harsh Prateek Bora , Zhao Liu , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Daniel Henrique Barboza , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Liu Zhiwei , Palmer Dabbelt , Marcel Apfelbaum , qemu-arm@nongnu.org, "Michael S. Tsirkin" , Nicholas Piggin , Leif Lindholm , Peter Maydell , qemu-riscv@nongnu.org, Weiwei Li , Radoslaw Biernacki , Thomas Huth , Yanan Wang , Eduardo Habkost , qemu-ppc@nongnu.org Subject: [PATCH-for-10.0 0/8] hw/boards: Remove legacy MachineClass::pci_allow_0_address flag Date: Mon, 25 Nov 2024 15:05:27 +0100 Message-ID: <20241125140535.4526-1-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=philmd@linaro.org; helo=mail-wm1-x331.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 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@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-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org This series aims to remove a legacy field from MachineClass. Rather than a global exposed to all machines, use a pci-bus specific flag on each machine requiering it. IMO it would be cleaner to add the property at the PCI_BUS level, but we only provide qdev properties for *devices*, not *buses*. Meanwhile we could register the property using plain QOM API, but at this stage I thought it might be over-engineering, so I restricted to property to the GPEX device. After all, there is no concern by similar PCI_BUS_EXTENDED_CONFIG_SPACE use. Philippe Mathieu-Daudé (8): hw/pci/pci_bus: Introduce PCIBusFlags::PCI_BUS_IO_ADDR0_ALLOWED hw/ppc/spapr_pci: Set PCI_BUS_IO_ADDR0_ALLOWED flag in host bridge hw/pci-host/gpex: Allow machines to set PCI_BUS_IO_ADDR0_ALLOWED flag hw/arm/virt: Set PCI_BUS_IO_ADDR0_ALLOWED flag on GPEX host bridge hw/arm/sbsa-ref: Set PCI_BUS_IO_ADDR0_ALLOWED flag on GPEX host bridge hw/riscv/virt: Remove pointless GPEX_HOST() cast hw/riscv/virt: Set PCI_BUS_IO_ADDR0_ALLOWED flag on GPEX host bridge hw/pci/pci: Remove legacy MachineClass::pci_allow_0_address flag include/hw/boards.h | 1 - include/hw/pci-host/gpex.h | 1 + include/hw/pci/pci_bus.h | 6 ++++++ hw/arm/sbsa-ref.c | 3 ++- hw/arm/virt.c | 3 ++- hw/pci-host/gpex.c | 6 ++++++ hw/pci/pci.c | 4 +--- hw/ppc/spapr.c | 1 - hw/ppc/spapr_pci.c | 1 + hw/riscv/virt.c | 23 +++++++++++------------ 10 files changed, 30 insertions(+), 19 deletions(-) -- 2.45.2