From patchwork Mon Nov 25 14:05:27 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: 845316 Delivered-To: patch@linaro.org Received: by 2002:a5d:688e:0:b0:382:43a8:7b94 with SMTP id h14csp1196661wru; Mon, 25 Nov 2024 06:06:25 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXL7r1/CJOMvC1DvV+seW+OVuQkuUjjPUkwdYxIUjyVYSgXCYaSgsl9OMTSDLua0So7QG9iYg==@linaro.org X-Google-Smtp-Source: AGHT+IE4SIkhz/xjmalKi1c0BgcwDBPWvOOulPffN9TmEmyL9u1KoNt7+LrAKB+39kjV3uh/6a3+ X-Received: by 2002:a05:6402:278e:b0:5cf:ab23:1f07 with SMTP id 4fb4d7f45d1cf-5d020629f13mr11196937a12.15.1732543584948; Mon, 25 Nov 2024 06:06:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1732543584; cv=none; d=google.com; s=arc-20240605; b=Z7LiNj5mjbKLgNyBrY+6ku9FqD15S/Y9rOiP+eK8IX5S0aOmVUvx9C8JBqsPvvhnvw VRjR+pFM2stT+CBjQfNDHv7Kh9mc22VaCk9Zw1NDr9gxBFGCKFCcJRC6vWhqp/rbSHJi CjlbIDUpmpDA6bzRZywjR6o85ySwE/4JGj/m6Ghwjd9J2zDwaAS2bNkEhekogx8pH9gM pTU1ixOPo0zHLoNvWTWVu26vugY+9uWlkhAtZEueFK5xXrDNeAQO2vtmwO9/OeOPS31o C1yhH16gOUxPuw4OgNeA2J9qnhSrYn17U+Fc2b5BtOcPDiGZ2VXT711yPIZYvf+IRC5M 375Q== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=AeD0P2OiM6dGib9Y7QdKZWERXOxrMdWt2Pcq04zPLT8=; fh=01MTBs686u0z/v+1HBxc617dy4wgnTfT5lmRb9hvZO0=; b=XGEaTmU6GSNmDYyD9jrcmSNl3oPMvp+FLWUQveCAAAJ+iuzPcbqtPh71AscduTa7Ru zkbZ3ZkvmvjvMUp7PRCvNeplPHNZh4oFLb9S2EyE1Z+N7DkAm1VMY7G34khk4TyKOZCS IXHXcd4+5dYes9QaLgkmQZAlqdIZfOuLynuLkd2649Q9NgZXj82+O+C/gj2TsPeTsLCf xKKtuH+Mxxi/KFPOXSDnch2eaVN4Rtjsil2un5J4vj3Xg4bkTATAn3TgQTAE4zdcyqSN jMWyBMtM+BYEXe3H+V5kqH8frhddyQQXoY8eCLLWELp0N3yD5a6tisjyoeE9STYHhCPT 46Yg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iSfBENEs; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5d0676e0164si176126a12.88.2024.11.25.06.06.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 Nov 2024 06:06:24 -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=iSfBENEs; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFZj9-0001yW-AJ; 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-0001x6-63 for qemu-devel@nongnu.org; Mon, 25 Nov 2024 09:06:07 -0500 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tFZj2-0006Rx-1N for qemu-devel@nongnu.org; Mon, 25 Nov 2024 09:06:06 -0500 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-434a10588f3so5421295e9.1 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=mm/7eOWs5XMQ3k7WPX8zDGQDreYN9tkNm/Qk1DzPKn6xHpjBW4wWHmDe//0oW38xY5 Z87dMHGgglk27deVL17IPG2/G5BFYIOJ15yOKjx4jalQNXAPBaWY5c0/UMJ4LHG6sUgy vQxgrCA00p1mKUSgfLUnP9FwjwrIYoNdRLjJnfoXBxplCIZVjZXiHjz2W5/u98hgklG5 gqk2j6Qi0awtXwPseRAXDQfqXbIEsGIztATAjjK/G4fJrlKHPcaoseng87rN8rQbcBEJ GwSgKUIwuRwG0I6A1k5Zjy3YHXA4Yap+gXnWJq4QT0wiYBMoU88NePkZ978WOsKO9+KY 5oNQ== X-Gm-Message-State: AOJu0YyETek3M9itAhwZjzYB2KXCzoNi3faaieR1eTZxsK9YDF3h616W uwMB9aR/cuLIF4kQraGMN/wZ8gOlbylKELybAjgWFIGZ/Eb9Z9FgZrIYZYOvx9OvEm90U2UT4kB z X-Gm-Gg: ASbGncuElhCcbF+4Rs0RQ+yiYXDbmwcLa8qs8X49aC6krwLrimgD+P7HVNTtOVirfub Tr65h3zjKhCVI8us+UWGu2H2S3qYwlNGJDPWEq6JP6BXEqV8iVlfCXUbY4PZM3Sm+njTkGGcRQO 44jggE7V99Xu9/PH2HYmrgtGLKvl9G/ddAdQEm8de5wP5Sez2fYdbh9Hjs1EHxKQGEkRrWx2tKl bQkAtNrv1J5fmrM7Y3YI3YWp2xSxe008miNkIgwseEQsmrGlLMbSomTzcVQsnLExqyq2LLK 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_Mathieu-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_P_=2E_Berrang=C3=A9?= , Daniel Henrique Barboza , =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-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 Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=philmd@linaro.org; helo=mail-wm1-x335.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-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 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(-)