From nobody Fri Nov 14 19:39:57 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1761638650; cv=none; d=zohomail.com; s=zohoarc; b=UKxv0gK2d+ZmPgl2HxKYwhWXicnhul6YEXKjKI9nue+OzCcwtPETxT7rMNSARPxj4BV2wet3mCEDQTKx5rT4NJ6TeBx/zoJinXygBeS7jG20n2wu1qYPSrER+A0RxUk9Boo7YZEbFYhcovWi9MlHS4ncvX6Q0QnzAkFeHjfGa5w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1761638650; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=0bJEm1B8ks9h5HyZDKkIUNIPRZdg3XjuMbaxmF/lz1I=; b=hIP3AtVadluAbKCll3uVuolEN1mh69DhpxqxSzOBbbQMu+9lj3s+sApxzBtjCGG1J5eTidDiv8xF13exa/KyQzSQmqxLbdXuPiE/3ZBgEMBIg/tX5HhhU3vqAVfVWX3xWu8w7ttnGhUEU4R3BgkioLwBpk4TAOvyZDIPslWaU2Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1761638650263441.2049326808469; Tue, 28 Oct 2025 01:04:10 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vDegB-00064K-Qg; Tue, 28 Oct 2025 04:03:43 -0400 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 1vDeg0-000616-L5 for qemu-devel@nongnu.org; Tue, 28 Oct 2025 04:03:32 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vDefv-0000oE-6s for qemu-devel@nongnu.org; Tue, 28 Oct 2025 04:03:32 -0400 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-4770c2cd96fso19420125e9.3 for ; Tue, 28 Oct 2025 01:03:24 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-475dd035dc2sm184181795e9.5.2025.10.28.01.03.21 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 28 Oct 2025 01:03:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1761638602; x=1762243402; 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=0bJEm1B8ks9h5HyZDKkIUNIPRZdg3XjuMbaxmF/lz1I=; b=UMfETVQOdyLejXM+bn0lXHRmLNYaPXRrl0gur2oUg0/hF+y80ManCvk1IsOGtf5PkJ fZCoBPMIYF+cz9HgADD6p8hqL17vHeD39aQXT0fANz2gAHXQpt9NNm2/czGSp73TB5YV UDLq2vis7IknDPMHwZsQtGqVl8smFHtgo5lXQ4cJuFi6fwzw0ehn/J76J3Nz4vSMQ77b HDAEwa4qZnERoYQ5EOClX/ZtQ7YZyYrjD7y856lf232PvUXO75r17ZtEV8ZzQY8AO725 du08puqQ4h9FLEFIaYJGT/YR4C3WM2r92i+UlWjWScIRaaj+eyfLNTqSUl2zPPVo1r3Z sa3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761638602; x=1762243402; 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=0bJEm1B8ks9h5HyZDKkIUNIPRZdg3XjuMbaxmF/lz1I=; b=okIhAvJwOnZSM4j69nKqbfasBEODvRaFsW+cEh531jX+i3F/DB4UAViGnZpgXBW/Q9 emPOvR9oC8TdgTiA4JFB9nXyi0CddJmZzw+gsS5BY8KCvkRRFpoDlkuln7ZuC+d0p88i 9+ht1Ks1snE/yQDKVBz3antOfRLbsC73GSW8VrR2Mw4vdT+Yz6fG303vP7qz4gxHDfoa BLLIWheLYmSu/JdnQ+IXSZma3rxCvWa9vxkRkeWSaE1S7Bcau3RuC3fwBLMkCwL6pZaJ UNk8QEfqwsaS98huNhsIsVaCrquFyGnTCCi93C86Iw8Z5W5IryBiepkCBjhfYggkg32t Cd7w== X-Gm-Message-State: AOJu0Yw8l9J8ld2LqcrT0aqvcBGTOxLOEVlakO7tFT8cywcV67f9jVJl 5nbs4POtpDywyxqOKM+5zVR7mwMi0Ux6hPjuIpck2AfLwTAgrgDY7W3zhp4/x0cCQNZlbmOnkx4 btd8PB5M= X-Gm-Gg: ASbGncsp6LRIbJVD23rnhCDauZmrnShmMSa3YuRHGCFCXIVg+aGnROv87pRiUgfcxeq onaiQDgAIh6W14s/OWo99hRjWVqgFM8x5o/xleCfez1GKpHFn3bAIAkG6MRfvHoLWZL1hlU0Va7 CIMgeTucUYhHmaZ9gJzCr64Z+lUvT97VIzdruJjINP9yhfCukrOsd6syi9jDUJXlx2FPfZgS2nk HR6gxWIRD/JFFA48lBxgfVoj4FjRV0LzqXJDvT2NYHoPP+l+J5G4xG640gK00mfbfZ17qWN0VlR p+OcL9ZWG2xuY3mSQBBA4B9MxgkB4o/bZg1pn2+dJAOgxVlW4bKZOFBN5HhQnTbgy+SolbBr5PR fiAhg+EVVGfb0Nkttlt7Wyte+C3bSNOEt6Qrm4BAzkgtW9ZI8rTFv8vV14QvbFXaosylLW5KInD Sk++Vqt5FKDaIBzOJUQmXpSElgO0bRN0mJWe1Xk1hJ/k6fcliseEcaWwI= X-Google-Smtp-Source: AGHT+IGu8tAz7QNSfENwh5DhebxcpB0Uf+T7MY5mWmoV8QBJEMMaI05N0PzFr/4r9vD0c/yed5mTVw== X-Received: by 2002:a05:600c:1554:b0:470:ffd1:782d with SMTP id 5b1f17b1804b1-47717df6c74mr21252585e9.6.1761638602070; Tue, 28 Oct 2025 01:03:22 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-riscv@nongnu.org, Bernhard Beschow , Mark Cave-Ayland , qemu-ppc@nongnu.org, qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paolo Bonzini , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Eduardo Habkost Subject: [PATCH v2 1/7] hw/sysbus: Use memory_region_name() Date: Tue, 28 Oct 2025 09:02:51 +0100 Message-ID: <20251028080258.23309-2-philmd@linaro.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251028080258.23309-1-philmd@linaro.org> References: <20251028080258.23309-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=philmd@linaro.org; helo=mail-wm1-x329.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1761638656077158500 MemoryRegion::name is kind of internal. Use the proper memory_region_name() accessor, which might return a different name. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Marc-Andr=C3=A9 Lureau --- hw/core/sysbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/core/sysbus.c b/hw/core/sysbus.c index ae447c1196a..d33be6b2b52 100644 --- a/hw/core/sysbus.c +++ b/hw/core/sysbus.c @@ -154,7 +154,7 @@ void sysbus_mmio_map(SysBusDevice *dev, int n, hwaddr a= ddr) int sysbus_mmio_map_name(SysBusDevice *dev, const char *name, hwaddr addr) { for (int i =3D 0; i < dev->num_mmio; i++) { - if (!strcmp(dev->mmio[i].memory->name, name)) { + if (!strcmp(memory_region_name(dev->mmio[i].memory), name)) { sysbus_mmio_map(dev, i, addr); return i; } --=20 2.51.0 From nobody Fri Nov 14 19:39:57 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1761638794; cv=none; d=zohomail.com; s=zohoarc; b=IfFdsuSPcC7Kn0SB9k0WaMKR0lN1JLXir8449BJfYMgpTqKGCqPhS3wG+GNplLcQsjXo7X7PFyIHZkw+xObvJa9et8dmbVSo9QrokqEHJ1lelOvAXozxDHX1/HoPSoKLWehnRC8dnlkTFEfbKrmDE2MPKn5d3wReIXfKRkuY2kE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1761638794; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=NfFJAb/KcoEMKci+o785xcZsNgBjcX1J9BbfpmwSLMI=; b=flsv53EVLpxFTCCcE87VBdc4WPy+vAHIX/g/hA09pbLz/3tYn44L/fwgNhft6MRXKvYQT3z6fMrC4n/moVMWjR9Mb6/IoVsFpcX3KOyYm5FzI+kl3Xwd5iR7Yy7nlqPpu8OjwzH0LEaD/1XIOBnnDJFcbI8R3md4/snI/3QWbZU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1761638794377766.3031539666877; Tue, 28 Oct 2025 01:06:34 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vDegO-0006BH-0i; Tue, 28 Oct 2025 04:03:56 -0400 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 1vDegL-0006A1-S3 for qemu-devel@nongnu.org; Tue, 28 Oct 2025 04:03:53 -0400 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 1vDegF-0000q8-Cm for qemu-devel@nongnu.org; Tue, 28 Oct 2025 04:03:53 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-475de184058so12574705e9.2 for ; Tue, 28 Oct 2025 01:03:46 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-475dd4924e2sm181628655e9.8.2025.10.28.01.03.42 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 28 Oct 2025 01:03:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1761638624; x=1762243424; 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=NfFJAb/KcoEMKci+o785xcZsNgBjcX1J9BbfpmwSLMI=; b=OGoLgKdVoCaE2T3xH9wupfPbDGMJ/xnctBPlyqMa/y5KE3ZRjO17R2yQwWGaZrccvk kkedxlerr73yonHvcghIJQSmeqdHIUVdOkL4sZyNYASTCyChcjw5gn8lm3gQA7nvObRM TkkJzWmdDIRFJjEfrltjgewCliLbOI4tvplp8X11T6J8iCVerAmDxO7/IwU9ZuENAGxi 4cxSwkPcFOzTJW7Xnm+1DStH7QFHJ9CunF5zsk1F/8fCuHMqKtmNLmK4yfIzuRSKUqgS g2WDwd4ctzPrhxiGS7DKICUT08J94XmNfoIkEZ1foULuUXvekmUQ9v2n2xQlMkAgNfp0 TnRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761638624; x=1762243424; 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=NfFJAb/KcoEMKci+o785xcZsNgBjcX1J9BbfpmwSLMI=; b=aaKaFOX1Wtu5obEPqOYlC+DBP8+tp4Rvnr/7josv4pG4KwtUzVX3HxyygVuSVp0cpv C8wQtkbWqHdggL86xIYQzqDzhAFQXmz7Ph/Bl8dTKt76/7WOkeaJ5wUjqlNt+96h8oto K05DFvEdGnwgxJDrVnJsOPtUHxmeNaExH8yd7Y7z27JGMAxq9JisjwMSSDxzPVrSytih HxejfskKFVQ5WjCMg4vIUaJ9SY7WR3BivaOm+Qs/hiyxqJ7vDmchRNYaYj6ccHqCNgpB +rj60KsGoQCWjp4h8ZAwSGXwC9bjuVX4F3HMcJpp366gp9C44gL3Yt60OsaU4iep4q/7 AzbA== X-Gm-Message-State: AOJu0Yx5d4pBIAMULpEfsUNF/m8ZxxogWzpXfWFz5Y/MvlqAdCucrLOJ E/LfgUvR8eMo4W/IKctxYCDryCcpxlTQ/yb+JqBhBmQpzkfleOF+JDqr7WNK0421D7D3r8YzeCr s5a1pd0E= X-Gm-Gg: ASbGncsFInMikonxf+n56iS79RhdR0P41gyNLDFGTlJ+eVsl/RW7fsCqGs9Ynlt6igI 60ny1BiABrm3YNxR7KDgD9Yzxk+A5EltKYX+qh6Gnf4sAwgc8RBOhbf+JGwQFH5rbArax6vbdRw aaCoR6JFVCo1TT8q7Q4wz+0XtfDk7QasY8YWtCOZQ2FJcsNsQ/R/qZQaC3F91pMzG37aXu64WWr /DBoXDKUrCgBCdHCkdYZY0SgbS0QsrSky/oSC00NuuKmTQvjipxlQbaDCgp8NMdxo38BWb/61hK nDzaQDOpBBOXPsklRbRH1jKfwEa96TnHWgpo7gUOJkMFrfcAFz6mnbW/jw9eDGrHQPH9c+zZgpz vzP6kd8n3n5xuKGv4m0Xa1cvjCyrMNV9ok8j3bZtZKwEiIGfmh1Cm6r65Xkmajozc5D8tyBbtzU wXwNa7I0gMV8LjmR0wQSCBKgEvVGojQqDC89WlTnJS4fDcH0J9t81Iyr4= X-Google-Smtp-Source: AGHT+IHslOLt0A2dbjqzbLtEsNJtl3R3pIFza8TJNrv03AKv+l+uzukq9Z2XKJvp6fa0I0jvn6HcRA== X-Received: by 2002:a05:600c:8b83:b0:475:daa7:ec60 with SMTP id 5b1f17b1804b1-47717e522ecmr18646975e9.21.1761638623972; Tue, 28 Oct 2025 01:03:43 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-riscv@nongnu.org, Bernhard Beschow , Mark Cave-Ayland , qemu-ppc@nongnu.org, qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , "Michael S. Tsirkin" , Marcel Apfelbaum , Paolo Bonzini , Richard Henderson , Eduardo Habkost Subject: [PATCH v2 2/7] hw/i386/microvm: Use proper SysBus accessors Date: Tue, 28 Oct 2025 09:02:52 +0100 Message-ID: <20251028080258.23309-3-philmd@linaro.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251028080258.23309-1-philmd@linaro.org> References: <20251028080258.23309-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; 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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1761638795653158500 SysBusDevice::mmio[] is kind of internal. Use the proper sysbus_mmio_get_region() accessor. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/i386/microvm-dt.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/i386/microvm-dt.c b/hw/i386/microvm-dt.c index cb27dfd732e..d7f49bc1b5f 100644 --- a/hw/i386/microvm-dt.c +++ b/hw/i386/microvm-dt.c @@ -71,7 +71,8 @@ static void dt_add_virtio(MicrovmMachineState *mms, VirtI= OMMIOProxy *mmio) return; } =20 - hwaddr base =3D dev->mmio[0].addr; + MemoryRegion *mr =3D sysbus_mmio_get_region(dev, 0); + hwaddr base =3D mr->addr; hwaddr size =3D 512; unsigned index =3D (base - VIRTIO_MMIO_BASE) / size; uint32_t irq =3D mms->virtio_irq_base + index; @@ -150,7 +151,8 @@ static void dt_add_pcie(MicrovmMachineState *mms) =20 static void dt_add_ioapic(MicrovmMachineState *mms, SysBusDevice *dev) { - hwaddr base =3D dev->mmio[0].addr; + MemoryRegion *mr =3D sysbus_mmio_get_region(dev, 0); + hwaddr base =3D mr->addr; char *nodename; uint32_t ph; int index; --=20 2.51.0 From nobody Fri Nov 14 19:39:57 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1761638678; cv=none; d=zohomail.com; s=zohoarc; b=X22NnpHgjrXq71GKCuBh3MebkO/LIBTOAhDy/aG9Ciz/PmMOL1TkhCo6VEDHtinIISOxSVZaUBZe+mXMU0demGh2/CX/QLxgUnJAWn+w8sN6l6a732D4t7imKeCw7t9SPsCfKXKP6c01ciK6vpJYl0+y9dwzUdlJVROsQWCPGyA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1761638678; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=IXTrcwnFN2dR0ftftMdZpCG9tw6TOxe98L9iT4TQNSQ=; b=QHmrh846/viyVprqio7GqXypglxGDTwQvo3BiUsDu25yzKwKgWv9ASVQw/eIzkgeZV2um+M7squ+4SVIRn4D0d66CknAcpsIznj5XMSjim6DENDZhtpPXVkTbzzq44AuYSSzZOcCGIsE7VWwDyLJg+bz5IWrH7Kl8tylc4+khRU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1761638678471437.79856790378017; Tue, 28 Oct 2025 01:04:38 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vDegh-0006mm-CS; Tue, 28 Oct 2025 04:04:15 -0400 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 1vDegf-0006jv-Rt for qemu-devel@nongnu.org; Tue, 28 Oct 2025 04:04:13 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vDegb-0000rb-76 for qemu-devel@nongnu.org; Tue, 28 Oct 2025 04:04:13 -0400 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-47112a73785so35625275e9.3 for ; Tue, 28 Oct 2025 01:04:08 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4771843eabfsm14785185e9.2.2025.10.28.01.04.04 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 28 Oct 2025 01:04:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1761638646; x=1762243446; 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=IXTrcwnFN2dR0ftftMdZpCG9tw6TOxe98L9iT4TQNSQ=; b=xwjN7urz36lJ850xMIPLl/RdKR+on8dA5wr8HTdI+xxQFqZBce9M1okYOQh/MENN6N 6zInfb7jBBLe32wotLUtor/5MkEZEjf+ml0nyl0YxMZ5PY8yy7VwP6LnnPyrkBDhboDH nVRL9y41tX8dSLHzhF+5rnvu02LeNa09jPpSpRS12fJgeS6QAprWWQIFxMlwI6ew5Rhz 1iN3Q7wMX0CRxpgFtD8REFjgGMrkHyMGlY0Hqe+20Cd3EYf5LICTLD1frPuAndDnkpOV fE72WjwISxEudLILZ8MopWfZ+E6ZlyQo0U1EEJ5Gt3vGfesz88sVvHBOphJVLtTrrjad 2uRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761638646; x=1762243446; 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=IXTrcwnFN2dR0ftftMdZpCG9tw6TOxe98L9iT4TQNSQ=; b=m7DRGnkV6hFUY76PQyNssmrln3r3sRyzqyVa2h+VLV8ElOCtXC7XvIexQj+PnrXkdV pT1c+we4DDPEOyuLY6IDNo51iwoIUHDlwANqg52aBEUVuICxU9T6FWUMRAzWWECPuAg8 D9YC4GBw+eQhijvcaFwqFFwJbxpmzMVXLcCZ1I/EnNUbshvse/r9cv0vnH/Z9P65TFS4 j44oFCsx+fhRSclJQ+zKuAHWe3YXU7T3gJZvoqbpXcU4MQxxktg3LmzTqEDYuQnPK3lu qma+2fWu4q4mnsbPmYeH2ej+fO/54Qoho5UOk3OOBevQP9SRTLMXNz3Vwvyk8a5xsriU pKUg== X-Gm-Message-State: AOJu0YzPDeDpTRGzgb/58sp50PwXw3vuZrC/TPXVHfLuWjEmlSFqcudb A5wXsElIrX9ii8xoNpbYVz9vh9yA1CA2joSzis2QPb1B6gI+iB1PI3S625Ac9F4V+GTowV0Yju0 4TMpTpkw= X-Gm-Gg: ASbGncuc17c8aWPuY8b5iqrQllX0pM/X8xWhcIT5LHnBkZ+iYjXIFve7m9s2AkWhazo Eh7K71b3pZK+HwiqqwRovM/C5cK92Xn0T/4biwqYN2HgrIw0QX3F5r1eyahJj+AvQ7QaI6Z5mgl Rw1/LTiuG3taK8FICc7j+jSTW6axots4Tpj5ssKZLcHgxF1pnKLS9UNoB6TKNh6h9AmSmVxOlKJ jvYsjXkB7oRaq9pc1iQCTs6+vwy7S4KtlsahNVR4gomjjAeLfkJGvNLHDbmA0dAJiRyt5CurgHz Kqq+mgmU6CPr5eYnGigT+wI0LUCbE44hUwAIv8XRg9k1Dv0zf+fLjEvox4e5f5fGFhqkwWcYH+Q eGLQ4K/A98h0Msm/GuOL4Q7BAvX9oZSVXB7efAg1PQxxIBorXPEIyNm7UfwmbJIbhgVqtdnrVQp cw6KD7PpGHCjZCjVE1ysxgAkPd10lE2/0J1x4/PpRwRYf2VS2Pnru/PMQ= X-Google-Smtp-Source: AGHT+IFSc+GTUbGoMWV0djgdJjUsuRAV3TG84f4Wo0S16Hh+bXc/T+lXNDrAgKUF66mxAuI5Dv8UBw== X-Received: by 2002:a05:600c:4e93:b0:471:9da:5232 with SMTP id 5b1f17b1804b1-47717dfa486mr18951495e9.15.1761638646065; Tue, 28 Oct 2025 01:04:06 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-riscv@nongnu.org, Bernhard Beschow , Mark Cave-Ayland , qemu-ppc@nongnu.org, qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paolo Bonzini , Richard Henderson , Eduardo Habkost , "Michael S. Tsirkin" , Marcel Apfelbaum Subject: [PATCH v2 3/7] hw/i386/ioapic: Use proper SysBus accessors Date: Tue, 28 Oct 2025 09:02:53 +0100 Message-ID: <20251028080258.23309-4-philmd@linaro.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251028080258.23309-1-philmd@linaro.org> References: <20251028080258.23309-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=philmd@linaro.org; helo=mail-wm1-x32f.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1761638682363154100 SysBusDevice::mmio[] is kind of internal. Use the proper sysbus_mmio_get_region() accessor. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/i386/kvm/ioapic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/i386/kvm/ioapic.c b/hw/i386/kvm/ioapic.c index 693ee978a12..0519432edbe 100644 --- a/hw/i386/kvm/ioapic.c +++ b/hw/i386/kvm/ioapic.c @@ -80,6 +80,7 @@ static void kvm_ioapic_put(IOAPICCommonState *s) { struct kvm_irqchip chip; struct kvm_ioapic_state *kioapic; + MemoryRegion *mr =3D sysbus_mmio_get_region(s->busdev, 0); int ret, i; =20 chip.chip_id =3D KVM_IRQCHIP_IOAPIC; @@ -87,7 +88,7 @@ static void kvm_ioapic_put(IOAPICCommonState *s) =20 kioapic->id =3D s->id; kioapic->ioregsel =3D s->ioregsel; - kioapic->base_address =3D s->busdev.mmio[0].addr; + kioapic->base_address =3D mr->addr; kioapic->irr =3D s->irr; for (i =3D 0; i < IOAPIC_NUM_PINS; i++) { kioapic->redirtbl[i].bits =3D s->ioredtbl[i]; --=20 2.51.0 From nobody Fri Nov 14 19:39:57 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1761638687; cv=none; d=zohomail.com; s=zohoarc; b=J46cilGjnNoDX3cpevHODg8p5kU1lgfx8V/CCk+jvwNGd7sUPv7+DjVjrC9xoNfj/1LX6H98Trapfl92Xtar396GtQgxTYd1KwKYIU9YP4Q3pLZugqMQzsMxVdtAUe8Hn7Cj3kkrOkl7YV+EOx9tkCFW7UfioGV5Ke5hKS9hEEY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1761638687; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=khQ4f+JLpb7fh8Bk0A11QSSL3qpoF8Qk2ODQYUaP4ck=; b=MKekui9uJlVLfOmmsupmxejTbEpDJhdyBQNw0mskrFdrW7mIxDSqVjC9GFqCEd5osjIytKrc2zWF3y2k3TNANRl1u6NrnBvZVwsm6UwS4H70mXSWixnT/FnUd/4r6ZCF64tyN9T9dndmqh6TLvYElE0Zpx8G84SwjWGmLcDbZtk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1761638687817426.8892491515784; Tue, 28 Oct 2025 01:04:47 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vDeh7-0007Qe-Tk; Tue, 28 Oct 2025 04:04:41 -0400 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 1vDeh5-0007NM-Co for qemu-devel@nongnu.org; Tue, 28 Oct 2025 04:04:39 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vDegw-0000tc-U5 for qemu-devel@nongnu.org; Tue, 28 Oct 2025 04:04:39 -0400 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-475dc0ed8aeso27969655e9.2 for ; Tue, 28 Oct 2025 01:04:29 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-475dd4cc596sm184858365e9.15.2025.10.28.01.04.26 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 28 Oct 2025 01:04:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1761638668; x=1762243468; 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=khQ4f+JLpb7fh8Bk0A11QSSL3qpoF8Qk2ODQYUaP4ck=; b=zkuuk7rZoAjECDh55GKh+1gdt5keehE1DPz4jNyoDUSwW3Bc/k6gkvz26qonP5J53c Fhpkv6BdO+nPao7rRphEtnpHXf8gxxkLCq5vXkzp2kZyq7M7s3DCaW0/QA4aqEZ2yYqi ksIecl4wwqymzOd+kRpeLpMFYb3fkTCUHQHHzmVkHYYr2J1e7Q72dr0jEDJOaL9+TQZw NHRW2CC+yPGrxhpfT9L/ENB6iMVGn2a34AMnHC4bg246zTptAlTEWgkyLkjm8N4b8g3J 7yPxA/O5U3Qq/lF6QN0W8wslrAXfRvugNbb688AfG+ps8FNA6OWhA9MhG5bps7xPIuyk Gi5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761638668; x=1762243468; 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=khQ4f+JLpb7fh8Bk0A11QSSL3qpoF8Qk2ODQYUaP4ck=; b=gxUJTBwNx2ZN4cUydHNxDutNMqoxKNj72qKaxPHuaYru06AMhtjHbktbdC0wIV/C8M oVvMBtnZvynUrDSr38iML8jurFX0RyTkRYIA4n7HQbuUAXDOnqsnkU1JJkO1u/PvWUG4 VxlF3FHB4h8oYpOwSI96aFv6gXAMPtpjP/Adt3b6hM/8FJZJvDNN4NdxHOeKpXv5Tbjy PK44KEjHYHbg4ro7RVZehjb+0hbRZ2kG4pP04H3m9dTtRUQUG8/QI957ctVD78k9qQyL lb6VVTHMKP31Y0S35lLDfkhV1XaoWCrNF+5UvAKaDRE3j6cjbUmuIzOIzelYm6Euzu50 BXVg== X-Gm-Message-State: AOJu0YwzzqwkrTXXylbqtw2uo1N8NQi7uh0ETb2LrL6V2T4mpluBGm+L os34NNWH1xq7wQ/IAXugK/VKt91U8fpqUWc/nmCKL6cC+kP6ZLhbIS7WLpeL9CZ700pjxrnhP2C X9BVwbhc= X-Gm-Gg: ASbGncv+F2pt/sstKdr55H75wuncJpu767kr3UfD+WbFUeg5hlmvMzZ5nPmCg1cbwt/ vEU1IyfOAmpUJGY97SGIgZyIg2zWr2Bt/1nM0NwmjTFmADcY9dCAljrZx4v2td1Dgs/xJgnGcYF 5Uve7wmfkcoY4VibPcidCgLYSy+prWojmndiIT08+NoCM/9Oh/R7/+LJNopLO5oZsPRShgbrkUk 6ztkCRQMao0B1z61Heqc70aCOQtzlbEK4wQDTETtNf05gWbdtHGDAiJhVXcZ6LzJrpX2vw7gdrj fBiRuHL+KgyC/c5tWjfL2e9Hxhzbamr4iZEqVoWcHiiKCF1XvpqeaknjjvWERVghPNgdm0fk0nT NJ6FLRk97FBz70Pj+OZ828fEf3JAskS28aX8JBAFc8DTA571+x06ZM7B0Uiq88cTluLe1+rz1Kd DfsxvYqXk8GYOyXEo+4Bn61TuQ7Sce1rAaNZ6IoP6puFUoLQQNgsuZOQ8= X-Google-Smtp-Source: AGHT+IH1wWc1POY3IlDrRidKTdwgtpTWr8O8xuTBDKg1cdXSQD1kcxB/k214JvO/0FfhxYoR6eTTJQ== X-Received: by 2002:a05:600c:6303:b0:477:fad:acd9 with SMTP id 5b1f17b1804b1-47717e40960mr25113255e9.34.1761638667885; Tue, 28 Oct 2025 01:04:27 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-riscv@nongnu.org, Bernhard Beschow , Mark Cave-Ayland , qemu-ppc@nongnu.org, qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , "Michael S. Tsirkin" , Paolo Bonzini Subject: [PATCH v2 4/7] hw/timer/hpet: Use proper SysBus accessors Date: Tue, 28 Oct 2025 09:02:54 +0100 Message-ID: <20251028080258.23309-5-philmd@linaro.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251028080258.23309-1-philmd@linaro.org> References: <20251028080258.23309-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=philmd@linaro.org; helo=mail-wm1-x334.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1761638690370154100 SysBusDevice::mmio[] is kind of internal. Use the proper sysbus_mmio_get_region() accessor. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/timer/hpet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/timer/hpet.c b/hw/timer/hpet.c index 1acba4fa9db..4ed79d72620 100644 --- a/hw/timer/hpet.c +++ b/hw/timer/hpet.c @@ -655,6 +655,7 @@ static void hpet_reset(DeviceState *d) { HPETState *s =3D HPET(d); SysBusDevice *sbd =3D SYS_BUS_DEVICE(d); + MemoryRegion *mr =3D sysbus_mmio_get_region(sbd, 0); int i; =20 for (i =3D 0; i < s->num_timers; i++) { @@ -677,7 +678,7 @@ static void hpet_reset(DeviceState *d) s->hpet_offset =3D 0ULL; s->config =3D 0ULL; hpet_fw_cfg.hpet[s->hpet_id].event_timer_block_id =3D (uint32_t)s->cap= ability; - hpet_fw_cfg.hpet[s->hpet_id].address =3D sbd->mmio[0].addr; + hpet_fw_cfg.hpet[s->hpet_id].address =3D mr->addr; =20 /* to document that the RTC lowers its output on reset as well */ s->rtc_irq_level =3D 0; --=20 2.51.0 From nobody Fri Nov 14 19:39:57 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1761638789; cv=none; d=zohomail.com; s=zohoarc; b=b14YGgdwKlq/6qlfFY2MlpGHALKRtrWvMcCdfr59DepwI1Xn7E85MDjyig197R2iAFMb6nnZDprUeMAmbpifQTsLX0Sej8rMrq7KKDPiB3JFbvSNaz48kAXX8byG6wePLFIOkDG++PQKYAklh246wf9JbuAFU6WkSd/AT6m7qac= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1761638789; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=BU4cbGt91bL/zj+kwzBNgRzNipaoran6iEGhQUMuavI=; b=f9IKbCILaEtm4Q9/LOsQv7DKAAcCwgWwVoHgAc15z/jgRBrJN/37jpLDSWA0I5jnYgoXxdDUnrotWNxPXKVofIsTMhpBoLqLFWelf/L+myy5V8Y3gZ9U1nMbLsJc9G1gWHo/cxLoiTD522Pqp6bKtrICqpmHPNcR8ZqGJQcQGWs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1761638789725562.8340384301586; Tue, 28 Oct 2025 01:06:29 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vDeiF-0008FH-5z; Tue, 28 Oct 2025 04:05:55 -0400 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 1vDehN-00080t-0u for qemu-devel@nongnu.org; Tue, 28 Oct 2025 04:04:59 -0400 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vDehJ-0000vC-Kx for qemu-devel@nongnu.org; Tue, 28 Oct 2025 04:04:56 -0400 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-3ece1102998so4015013f8f.2 for ; Tue, 28 Oct 2025 01:04:52 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-429952db80fsm18400849f8f.31.2025.10.28.01.04.48 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 28 Oct 2025 01:04:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1761638690; x=1762243490; 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=BU4cbGt91bL/zj+kwzBNgRzNipaoran6iEGhQUMuavI=; b=CVl0e+pTF5yKF4TGl+V9VaqqCKNEbJbVZFw9skdSMMJ8fgcRkhbFmgKDsFxkWplSmv IUtcN9UJae5zBg62hxrRpkWUYCk2ADvY9qhYRHjvhOBzOi3m9XX3mHvf49DJ2rcB57R+ 4ykP2D42ko73FKCL7OGa1fN1ltmhecPdgYzkHfaPQJddk1Ebc+9+AAvR7MUKAoPrxfDn QgEmSwJ94QHGUi5VpcAkz9Nc/QpMguT/LJVOG+tE0ZSoAGLyocWDw725XwIIOCXMHt6b 5GFWNqZiWHS9Xi4sv27IVT0vuINxDXgznlyfo4olG7XgH5OL1+jrkH5S0wkHLPiayfX6 M5VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761638690; x=1762243490; 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=BU4cbGt91bL/zj+kwzBNgRzNipaoran6iEGhQUMuavI=; b=IoNUadAO3bG9lo68kb3o+blKHVpeS3I16TB2reThuSGKwZK3T9H7+8wIqGM1MX1pYQ JtCPkh+5dmozjB3/iEvtm9gjThMl4MDfvNcElSnwNFZYsWR9C8aEDoOjVZ3/r5/deYhq d2Ma995v+mvi3dAbJKLRqMEdEF1Q21Dfz/NM2RPu3hsV6agzTo6gp/ycNhj97bX2jOF4 v8kN+MVC32gRs3Pd2wZCHcyixPR8xtVGfsg5r0Hnd7xhW2vVhRiE/f3nQl5MvSHlECeW vaKb+c+pRjGEFjDP0ItRKPfu5jCNpYXBjoSJ7ltYxWlvZw1lCM9j4yHgrTQy6YhKp4yk NoNA== X-Gm-Message-State: AOJu0Yz7DgJDvH/en3IGQshiXnW1Ey01luWfykinn+dUYq6mgL680HUC egOv6XBIBZEOxmnpDXiSkkxqza99EUzc3zUBmk4P5O8R5EPyjACsvvwhywN7X0yiuQVNq9ilAGw VVeVwsmo= X-Gm-Gg: ASbGnctaoQ+bViq3nzkOkB7QDKOnmV/neTFX0Z1KAQ1ZpaQfsLxUb+zQtRfdHWvP2Er RYm6sRoQgf9zzXYIlfUjHBcEzlWsmQ/z5H/eHrNOrVpbaUHLJTBB46xtvKVfZkratr3gB0KT0kz 7UFkQmqFKWJgnM0ktFhd3gVBfosv1Bn0TeO+6nsUmPBFeIX1f5dM80VCUS5V3GQGpD1PCKD7Aue Zh2PR8M7pitC0ahSqiW9fAGQygyWxmTjQN9ClrPYhHVUwYC874d0ScTdYzdQEFFOIojfItolWFY Cv+3JM2GcupbV6VK3IU5SnvlYD2kXPCWAeh/ei1h2ZJrIu+qP0JbNlhYBFyX4I3lFMQp6VO8leZ aI4i7D9hQgdxGuT/9W0jmFa/pwmxOOkbUTO10fLsUv7Wmu6BfQ4AMqcb82kw3freZtt7BmQbhjx RrZWx78GGEidfqhaFi20Leqq30A5skV45amNnhPHlS8IZYkblhDhBlgRU= X-Google-Smtp-Source: AGHT+IG3QDDR+Lrr+fbcwn1dwgH4NdC7JNF+0fC97Yvd0G9hDjhSV8LBvqRvsw+uaEZQ1JTHvTioDA== X-Received: by 2002:a05:600c:3548:b0:46e:37af:f90e with SMTP id 5b1f17b1804b1-47717df644fmr21641325e9.6.1761638689834; Tue, 28 Oct 2025 01:04:49 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-riscv@nongnu.org, Bernhard Beschow , Mark Cave-Ayland , qemu-ppc@nongnu.org, qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , "Michael S. Tsirkin" , Igor Mammedov , Ani Sinha Subject: [PATCH v2 5/7] hw/acpi/cxl: Use proper SysBus accessors Date: Tue, 28 Oct 2025 09:02:55 +0100 Message-ID: <20251028080258.23309-6-philmd@linaro.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251028080258.23309-1-philmd@linaro.org> References: <20251028080258.23309-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=philmd@linaro.org; helo=mail-wr1-x432.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1761638791707154100 SysBusDevice::mmio[] is kind of internal. Use the proper sysbus_mmio_get_region() accessor. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/acpi/cxl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/acpi/cxl.c b/hw/acpi/cxl.c index 75d5b30bb8b..77c99dfb184 100644 --- a/hw/acpi/cxl.c +++ b/hw/acpi/cxl.c @@ -104,7 +104,7 @@ static void cedt_build_chbs(GArray *table_data, PXBCXLD= ev *cxl) { PXBDev *pxb =3D PXB_DEV(cxl); SysBusDevice *sbd =3D SYS_BUS_DEVICE(cxl->cxl_host_bridge); - struct MemoryRegion *mr =3D sbd->mmio[0].memory; + MemoryRegion *mr =3D sysbus_mmio_get_region(sbd, 0); =20 /* Type */ build_append_int_noprefix(table_data, 0, 1); --=20 2.51.0 From nobody Fri Nov 14 19:39:57 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1761638891; cv=none; d=zohomail.com; s=zohoarc; b=Oi+RcFIqhrb3erhg2OiQRmpl/T8K0jmFhuA7EUjBMKKuYO/FZHzsmroPqhewqRqaBh9Md3+EcTRaqoKU9MBYYssaalepVAyqqw+fRGPOMZ1+7HzfbyZZP+5IUwh3TE1s+kfyJ9Y/NcOM6Mw4puMjwnJ+RQpLI7k4CTffIq6/ldI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1761638891; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=LLmkeQSs/VBwfVzEPmuGbOaGLChFkPJiX0fIN4S0l5E=; b=SAsBnsuR+6A3tgwMwNR4KtckMDgPKghIQeU4L9Wc/ZJXEcRe0ZNU4aGD86MSVKhz29tbMnWwiZVeOIiuCSR1fsrpMxaY0qhQR+x3l+uhuB7sCktXVGLnvszyZuAySTJ/otFJTVXV7WgniJCq2K/r47/YQaK6huJioLxOK5gXNeo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1761638891640925.0773960685602; Tue, 28 Oct 2025 01:08:11 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vDej6-0000wr-Ul; Tue, 28 Oct 2025 04:06:45 -0400 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 1vDeiJ-0008M2-RY for qemu-devel@nongnu.org; Tue, 28 Oct 2025 04:05:57 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vDeiD-00018H-M6 for qemu-devel@nongnu.org; Tue, 28 Oct 2025 04:05:55 -0400 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-3ee15b5435bso4158268f8f.0 for ; Tue, 28 Oct 2025 01:05:14 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-475dd4cc5efsm184271135e9.16.2025.10.28.01.05.10 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 28 Oct 2025 01:05:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1761638711; x=1762243511; 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=LLmkeQSs/VBwfVzEPmuGbOaGLChFkPJiX0fIN4S0l5E=; b=ERnlU5R6iqL5NWN7fq9piHLTjem5yA1oyLRHZ386MpyL4viJ4SadZgnq5vZ5WzfDeX VZfzsG79dwCBvkNhZWNJFQ9cY7jzV/PXl7YU57OKdf5uJEbZauheb2o/xi0QaTQgMA9L k1F11wac+GuPSZYaQbZx5ishp2vvuqRAPCsWJlhzjS7qNfkfqzw40cdjvo9K0I+AvBaU 4yumqENXUDSG+kMGdE+svcgvq4+GSv2xCAFM5MWw/ibbfqkg/Guer70g7QK8fCKd19Km K9Pf/gVrQ1jOpgZ0XM31CK16JVBe50H10LqVzmu3M1uPPgFdvPzg2Gb7raP6XXvst8/Q k5+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761638711; x=1762243511; 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=LLmkeQSs/VBwfVzEPmuGbOaGLChFkPJiX0fIN4S0l5E=; b=rOX5i9W3lil4LJ+7ZA9mxiz9ugvuR4kJXp5zBs9rE2vfQSKdmp+V2VVu8JqTwPFI/f cC5PEVBLWrhSJCT+QkSaJItQu/7ffIkHnqr92zMNtb25aKlXqNaSBRGAj3fQK8wIdGGm vTSX0+aTX+x6g7dZj+WBsvpQ/rIEX+gCYbvDhPuPyt/FHfaofASMsT9rb2WESphFFOTt +wbzAL/hWlho7kmpHgMTOo/Rqa5hWm/9jTEsTqmfvR82PnI0MotaoItTQNgUEWBAekjO WU25mo8RV+ptd8D9+xslVOi+cxzi7Odkg0iMrwv9y8IQZtYS2tzwZRBYhPV1wePcArjE 5ccQ== X-Gm-Message-State: AOJu0YyUoqmtVHvUPso/rUIY5RManiX52tn8IiY6RQ/OrUNL0DEg1VU8 yL34w2hJuqlG4jklsHp7ed8zsHpm8CV+lIk6NNpuXAmPijzzakbHblXqVIYQUh3C+kYcCFlZhL1 5H6OZNHk= X-Gm-Gg: ASbGncsRW3SxJEcN2EZqvf9M9pn70pZjCzVHD9Lrx9uQJ3UeBXAz3Tjmtk2ObLeyqIa snOimrku7d+aA2/rdrUBbQw/CRiVMhroHhaeb5Un8M6M0dkkurnOhdoreIZEQJfc+k/t8PP8zJI KxYoCooca0u4DVQM3Li3BN1V428/vGiqC3Gbt5nl64UdJVfiz3XVjzsm6a6fNlbKhOpnb4+urni HYe1mQw3t2/JoqmRDLt8QHgu1f3/R9l7og9kpDR4Cdbyf84piE4+CaBf2fVcjR1IWCOTC1Eq9Qe EQ1DQ83Pgb8r0/zLjqYJ/muiOZ9hVO4fkUb20CARnCqW+njlUaaKMXvXmgX8yxMBXzxi8qrDtlw KbHZfmlWTFCrvB3jzvbjdesXPcZdn5QbW+xlYE80CdbyHxHXjUbHZPOUpSFoIIrQwT7xYax12/U moVU3FNTij2ZV+iuXtSYcrBtehS0ftldmtj7NyrZKJpvNN+FNCwDYjjy5+t4aVrZIJ3g== X-Google-Smtp-Source: AGHT+IEm4UO+ArAp4I0x0HhwWaEbKOmqewIUYrU1pqmrcvMN2x072Qa9ZTR2JoRQRO+Jpx4Yao1nWQ== X-Received: by 2002:a05:600c:5295:b0:46f:b32e:5094 with SMTP id 5b1f17b1804b1-47717e6ac65mr22788165e9.32.1761638711619; Tue, 28 Oct 2025 01:05:11 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-riscv@nongnu.org, Bernhard Beschow , Mark Cave-Ayland , qemu-ppc@nongnu.org, qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v2 6/7] hw/ppc/e500: Use proper SysBus accessors Date: Tue, 28 Oct 2025 09:02:56 +0100 Message-ID: <20251028080258.23309-7-philmd@linaro.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251028080258.23309-1-philmd@linaro.org> References: <20251028080258.23309-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=philmd@linaro.org; helo=mail-wr1-x431.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1761638898849158500 SysBusDevice::mmio[] is kind of internal. Use the proper sysbus_mmio_get_region() accessor. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: BALATON Zoltan --- hw/ppc/e500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c index 8842f7f6b88..fe1aeffe676 100644 --- a/hw/ppc/e500.c +++ b/hw/ppc/e500.c @@ -887,7 +887,7 @@ static DeviceState *ppce500_init_mpic(PPCE500MachineSta= te *pms, =20 s =3D SYS_BUS_DEVICE(dev); memory_region_add_subregion(ccsr, MPC8544_MPIC_REGS_OFFSET, - s->mmio[0].memory); + sysbus_mmio_get_region(s, 0)); =20 return dev; } --=20 2.51.0 From nobody Fri Nov 14 19:39:57 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1761638889; cv=none; d=zohomail.com; s=zohoarc; b=cB5YDl46TYzl6OiMk57/ETcmTwnAmxft6/4X/Ke2glGUQg8W+rwy0x+tQtkq1jzWu/BXZbgwUnGB/ma8YHQN/zqDFLjswbM8tApkQBojtzOHtWzRjfUHY6re1qxcfW3yjF44wAI2gRSQ3hraLqCaxxpB2Eod3ZcfhsgkGw/6Csg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1761638889; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=iLNTJJ29Ee3X1iQPo0J9sRKYXDME7PYcE1MlaahJ0F8=; b=F79i7hiPHGCGrXjxLw9V765b+vpayibQCRHKEkCPV7jHjnTZuVbIG+tSnsQzYTnrtep/NRwA8dSz3uXntHBLK/EEmrtLl9TOgDwB7Cvm/qGDZPloBgPd/b1dZezrH2VFqhOHiFuA2/92zfSDkbc/CPmJMAMOoUUkZSnIo0DRDd4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1761638889248609.3892925799237; Tue, 28 Oct 2025 01:08:09 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vDej0-0000is-1S; Tue, 28 Oct 2025 04:06:39 -0400 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 1vDeiK-0008M3-5R for qemu-devel@nongnu.org; Tue, 28 Oct 2025 04:05:57 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vDeiD-000193-M4 for qemu-devel@nongnu.org; Tue, 28 Oct 2025 04:05:55 -0400 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-42421b1514fso3959115f8f.2 for ; Tue, 28 Oct 2025 01:05:35 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-429952da12dsm19103620f8f.29.2025.10.28.01.05.32 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 28 Oct 2025 01:05:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1761638733; x=1762243533; 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=iLNTJJ29Ee3X1iQPo0J9sRKYXDME7PYcE1MlaahJ0F8=; b=NmbsCkdFO1bIXmdJPZU5bZmPxgf5ssytzFLmJLBu+iAO8MQO8Euwm1fpl0FSv2MkhR jVUuPj97s9f+Lq7Waz2GWX5rrBTYr0Pord70qhHz6verIv0VuR9M5XIzNC9P5V2MXWhg 9WS50bMnqQQ7OCZ//b5YytlMQ2bo8CQnnTdnTKWIymkU4zovi1f9aRBY7YVjjbHQLJfZ GpEZHNOzEpuKzhyuAznsOIh7InZtsUkccwWDeiQrczi/7oVbxvHiH48csvARNMOUhDvU vAK3c/Qj+bHA5ff6d2nI5X6857bQEvPHlFsJnJFgN3yAs5cyFzOINwErkw1cZnsJ9OpA b9IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761638733; x=1762243533; 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=iLNTJJ29Ee3X1iQPo0J9sRKYXDME7PYcE1MlaahJ0F8=; b=qfqHBG0UBvrJexfwZBR8TaIbqWbFL6d72dbJtJzTA6DPwcCedPartFXzCzjt8wtMjG 8vlEqj6l0jA3nigJdKoR46c8E2bWWrKcuV+Qy+EzZHUi3/yA3GbICCFtUmWWre9cD1lx 0aehzvvV5DxUKJF/02VJ1j3a12AM1/g+McMujoUpCqiSBnH0gPGGxQ9CAWGbah3sfCLr Ai+GabvOWYuy916VZ8Nu/B/NhExdvw1m6CLnQ6A9U4LO5QdJUSh6jjLeYVtmMOk09XTr znkuJ9SyjBGRfPIKkI67sQguNnNhNqPRMjKId3GIZtGOIUJJJhPa7bn48G35wADYBr26 QKNg== X-Gm-Message-State: AOJu0YwqoT3bq7tFeQxQypdnD1ac6sOb7yFK8h/f/UoOU8wPXJha4pU/ ZpT0b3xRzcihS0wH61G4y0aYPTaweuJSZiryRKUiYFDMq/n8ASKFM7RG2LF8Hpoo/bwZ6N5cTwO mRJYh9YI= X-Gm-Gg: ASbGncteaZ8NsEjEi1GbAh0kRISTOsQmz7z8u/mUeMv7JkJPmhgpcp5zOxZPJa8PRaR 2Fyvrjj/KyDtWhs/1Gzp8Li4PJxCkfXX6etJo5MGLH395uxHgFTP09djiYZj3KnlocFF5OdrF/2 NDUXMNSeZ+G/+IMIRO8nwlNy+mo+8pJmJ+j+1gyfWwZ/H2UrLepbJCDRPiKgd4FKjigf0wJe8Xo r7AweMDJlL4ipP0lTOcEYU4CJIZYoJvSFAPrbLx3KECNVCVTZEvhSkGXvUlqhGnwVklRCrGX6Vs zWsdSxfsxb9U3uGRBUmn7SOfc5YTM7maazme0cHognYZx//bEj3HNJKWZyhLWDg6KBZMvVA2s8n NqbATDpNwSQ4HlIQuDKteENcJmsrYTkmrQJM0YsEkb2h1Yf/YXVnGXmyOXjCmRgPjKlyO/nGdx6 BBv+hEglYH09ztCNwJNl1ZkqRzzuxthowpYgYrlgTP7ALg2ub8ddKrztCoUt6CnrFwUg== X-Google-Smtp-Source: AGHT+IHTV9tfboutLKGYM3eTyb+CR5VW0SOflc97As9XGisSmavfqFO11jtskHLKrFhaWBMZ+mW0Jw== X-Received: by 2002:a05:6000:40d9:b0:427:665:e37f with SMTP id ffacd0b85a97d-429a7e36fe9mr1801485f8f.4.1761638733488; Tue, 28 Oct 2025 01:05:33 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-riscv@nongnu.org, Bernhard Beschow , Mark Cave-Ayland , qemu-ppc@nongnu.org, qemu-block@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , "Michael S. Tsirkin" , Marcel Apfelbaum Subject: [PATCH v2 7/7] hw/pci-bridge/pci_expander_bridge: Use proper SysBus accessors Date: Tue, 28 Oct 2025 09:02:57 +0100 Message-ID: <20251028080258.23309-8-philmd@linaro.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251028080258.23309-1-philmd@linaro.org> References: <20251028080258.23309-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=philmd@linaro.org; helo=mail-wr1-x430.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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1761638890764154100 SysBusDevice::mmio[] is kind of internal. Use the proper sysbus_mmio_get_region() accessor. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/pci-bridge/pci_expander_bridge.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/pci-bridge/pci_expander_bridge.c b/hw/pci-bridge/pci_expand= er_bridge.c index 1bcceddbc4d..b4e2c95ae4c 100644 --- a/hw/pci-bridge/pci_expander_bridge.c +++ b/hw/pci-bridge/pci_expander_bridge.c @@ -157,9 +157,9 @@ static char *pxb_host_ofw_unit_address(const SysBusDevi= ce *dev) main_host =3D PCI_HOST_BRIDGE(pxb_dev_base->parent_bus->parent); main_host_sbd =3D SYS_BUS_DEVICE(main_host); =20 - if (main_host_sbd->num_mmio > 0) { - return g_strdup_printf(HWADDR_FMT_plx ",%x", - main_host_sbd->mmio[0].addr, position + 1); + if (sysbus_has_mmio(main_host_sbd, 0)) { + MemoryRegion *mr =3D sysbus_mmio_get_region(main_host_sbd, 0); + return g_strdup_printf(HWADDR_FMT_plx ",%x", mr->addr, position + = 1); } if (main_host_sbd->num_pio > 0) { return g_strdup_printf("i%04x,%x", --=20 2.51.0