Message ID | 20241125140535.4526-8-philmd@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:688e:0:b0:382:43a8:7b94 with SMTP id h14csp1198653wru; Mon, 25 Nov 2024 06:09:15 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCV96CFuRby5rF0MokSVXjL/2Rey1z9TRl4NRyaz2lk9CS6/38y+vUncHt7jlWBdFmnGNW4SOg==@linaro.org X-Google-Smtp-Source: AGHT+IFWXLatquT5P8+fU9QeovtPkHiZj4p0plsmgreZIrZtSuiFtLlIq08iUzP3fgt6yluJN+Fv X-Received: by 2002:a5d:47c6:0:b0:382:5016:fd0b with SMTP id ffacd0b85a97d-38260be5406mr7351959f8f.50.1732543754676; Mon, 25 Nov 2024 06:09:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1732543754; cv=none; d=google.com; s=arc-20240605; b=Et0NTIP8Bj9mwFedmkAbyqK6QsHzphY9Z5VXLdD2rgGzXObKsimIYuJuMU9sMNacjY /1hiLAv8qt0ufwQQ0YHzcqHgPGM1H13yMKTVE4paaj32XxseaBqYXu8MyC6O+z1taSFt yuSv24oFV23xVR8V4kE1Kg7sP4bSy9mfNRlX8IDqyzJAy5X2aDwj9DFZcfJcvQC3TDxD E/0/mV13JbgXYl1FSxB3FHZBqferyrn7cf0sEWTHAhSt6A4OfnzMHA64F7JvR1PT+a7W Y63S7DGaQ7RVQXExIOGYdiUXHOJYJisiWCh964OmU0L4t0c+9G8J6gvEe78x6JQFdRjk CnyA== 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:dkim-signature; bh=mBLNIub1rHgG9lgkZtJGEcAkQWIxnGXQvYMrFBUCUkM=; fh=01MTBs686u0z/v+1HBxc617dy4wgnTfT5lmRb9hvZO0=; b=aR45URSynXSGsKNq61XdczXESsbGgb0izXYGyEDmZQGUy+UG56wSvnbB2u3xzqI8EB vV5GSkcu0UiE6v7GdrikK9D/1bQ3d2Fy9pPyvlB2eYO26JgtgV6abqY78yNqXlEoJzKg +U0snSahgHH9ynXO6hc8sQHX7/FewGCY7NvPfAet0ybPA2sLXfAwPWWVjdcOM+Q7X/22 Zxcqu3Y5fdbIfU5s5SDLSYJ7SJ7mz+BYJsxzCBAidt/EMpRi1wXW2qNlEVOdmIw9b2h5 x+TG0BgcL2fW9Ch36uZRUuTy5vEzWf6KQGzbZsgD79pqlJJlF0i3wkstWuGubI5a+Eqt on7w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r49EAaOR; 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: <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 ffacd0b85a97d-385be9a2373si5736f8f.988.2024.11.25.06.09.14 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 Nov 2024 06:09:14 -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=r49EAaOR; 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 <qemu-devel-bounces@nongnu.org>) id 1tFZkN-0003Rm-Sv; Mon, 25 Nov 2024 09:07:27 -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 <philmd@linaro.org>) id 1tFZkI-00034f-PI for qemu-devel@nongnu.org; Mon, 25 Nov 2024 09:07:23 -0500 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1tFZkH-0006na-6a for qemu-devel@nongnu.org; Mon, 25 Nov 2024 09:07:22 -0500 Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-53dd0cb9ce3so4089859e87.3 for <qemu-devel@nongnu.org>; Mon, 25 Nov 2024 06:07:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732543638; x=1733148438; 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=mBLNIub1rHgG9lgkZtJGEcAkQWIxnGXQvYMrFBUCUkM=; b=r49EAaORrweJ0acZ+vN1kcF0cl2h0eCeGluLRmLmKHk82Ymo7UFzC80RqJiSxfdAyW WzDON1b26XTh52Ek0EFYgC1XAWQIGnubM+jWL6HU3oPGK3Pd+ZNx4kkMCH+pU4RiJxtp pbqHJmOopgb3UX/1mp8Z0cUMymlM8d7K29a0gKlMIhgOf5gQ4tb8mdKyebk/I+vl5lyP BsrI9sjCTc6KxS+vRO3+w0397mZd30blEN29VGAQ/1MjSIHKiTd3WKzJA1KHN5bhI6l9 ERwGskz3NXEnTb9shJMQHN/dKaCxGTl9EjnLCnUpzdH5U/IN8PT+l3NKgS4uOVjGXBRs Dl2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732543638; x=1733148438; 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=mBLNIub1rHgG9lgkZtJGEcAkQWIxnGXQvYMrFBUCUkM=; b=G8q3fw/ZR9x8I7MF5ItyG6e0OnZgueZk+sW5bMarUyZqJwM2LJOIxC20drJBv4Cc8z 1T1zsX39L6zGUCN+gLu7ImNK/RLX9o6E6jwRn8zLD3bfdp9/AFLrSu3l4MWuC0cfFJii PBuYxkcY1j8UV1Bc90xBGsA2pFtikSIHj2NBIv+M0XaRovrLe3ATt/MlJfJV5+SzWBGS CFDkeCkhWuIbXikgdsHZBu9DZJ187gAPrdIcxYIDe99vv4o3TFlf9yj6AxwKp7tfe1OV G2Cg4sjeKiRjQZiniYAX6Aq071Dg3W8XLk+ee05Qai3U8Tu86UDrIcq/8JJzhQwvl3GC y9jg== X-Gm-Message-State: AOJu0Yw+h2X8TvH1jvpgZoWcwadm5cPEJf7fZZq+0fH7Hu72oOWLl+md f6XTunWa6TZYVqDcrwGJCrFiK25ND4grPyOk6JbviRQHBXgSPD6F5tpla7yM/CLiVdVe//nl1Kc T X-Gm-Gg: ASbGnct9LGcNpRMm0CJktzNtZVIqfX3ilegCW4/CMQ7sIKQhV6XCsN5ftY6Ly8W7Zpn of7yPGDpHE39uqNBq0xJsFicx2czsUwChyGczuvfSf2MN+mvqsDfpHDMko87S8kHVx24IHwFe+N 0Rmop+wFiCI8WTnqO003tXAPmAxoqoKnJOvU/G1HZdujs0WOsZmwQXB+NkbT1g/dfF56cdve8HA TiCFcppOxmWPP5z8itxnqQ7MxXsGPGDwX70xZ2nF4CexzV3Hk6pfvHZ1fmRuZn6dbdAeQ+R X-Received: by 2002:a05:6512:e87:b0:53d:ddd1:adf5 with SMTP id 2adb3069b0e04-53dddd1c480mr2858013e87.12.1732543638183; Mon, 25 Nov 2024 06:07:18 -0800 (PST) Received: from localhost.localdomain ([176.176.170.239]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3825fbee043sm10499689f8f.104.2024.11.25.06.07.15 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 25 Nov 2024 06:07:17 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: Daniel Henrique Barboza <danielhb413@gmail.com>, Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>, Bin Meng <bmeng.cn@gmail.com>, Alistair Francis <alistair.francis@wdc.com>, Harsh Prateek Bora <harshpb@linux.ibm.com>, Zhao Liu <zhao1.liu@intel.com>, =?utf-8?q?Daniel_P_=2E_Berrang=C3=A9?= <berrange@redhat.com>, Daniel Henrique Barboza <dbarboza@ventanamicro.com>, =?utf-8?q?Philippe_Mat?= =?utf-8?q?hieu-Daud=C3=A9?= <philmd@linaro.org>, Liu Zhiwei <zhiwei_liu@linux.alibaba.com>, Palmer Dabbelt <palmer@dabbelt.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, qemu-arm@nongnu.org, "Michael S. Tsirkin" <mst@redhat.com>, Nicholas Piggin <npiggin@gmail.com>, Leif Lindholm <quic_llindhol@quicinc.com>, Peter Maydell <peter.maydell@linaro.org>, qemu-riscv@nongnu.org, Weiwei Li <liwei1518@gmail.com>, Radoslaw Biernacki <rad@semihalf.com>, Thomas Huth <thuth@redhat.com>, Yanan Wang <wangyanan55@huawei.com>, Eduardo Habkost <eduardo@habkost.net>, qemu-ppc@nongnu.org Subject: [PATCH-for-10.0 7/8] hw/riscv/virt: Set PCI_BUS_IO_ADDR0_ALLOWED flag on GPEX host bridge Date: Mon, 25 Nov 2024 15:05:34 +0100 Message-ID: <20241125140535.4526-8-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241125140535.4526-1-philmd@linaro.org> References: <20241125140535.4526-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=philmd@linaro.org; helo=mail-lf1-x12c.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: <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 |
hw/boards: Remove legacy MachineClass::pci_allow_0_address flag
|
expand
|
diff --git a/hw/riscv/virt.c b/hw/riscv/virt.c index 2feb851f15..4e1ce3a423 100644 --- a/hw/riscv/virt.c +++ b/hw/riscv/virt.c @@ -1156,6 +1156,8 @@ static inline DeviceState *gpex_pcie_init(MemoryRegion *sys_mem, pio_base, NULL); object_property_set_int(OBJECT(dev), PCI_HOST_PIO_SIZE, pio_size, NULL); + object_property_set_bool(OBJECT(dev), "allow-io-addr0-accesses", + true, &error_fatal); sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal); @@ -1803,7 +1805,6 @@ static void virt_machine_class_init(ObjectClass *oc, void *data) mc->default_cpu_type = TYPE_RISCV_CPU_BASE; mc->block_default_type = IF_VIRTIO; mc->no_cdrom = 1; - mc->pci_allow_0_address = true; mc->possible_cpu_arch_ids = riscv_numa_possible_cpu_arch_ids; mc->cpu_index_to_instance_props = riscv_numa_cpu_index_to_props; mc->get_default_cpu_node_id = riscv_numa_get_default_cpu_node_id;
See commit acead54c78 ("riscv: virt: Allow PCI address 0") all RISCV Virt machines set this flag. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- hw/riscv/virt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)