From nobody Wed Feb 11 01:36:21 2026 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=reject dis=none) header.from=hostfission.com ARC-Seal: i=1; a=rsa-sha256; t=1681879680; cv=none; d=zohomail.com; s=zohoarc; b=G4lIVNlI0d7ohIqmjGKTgrGeZSyQd4NLTAeIjjBDMGl75RkaPJlUxLqGxnWAxoGr++5o8cAN3t7aNOH5zUNI6IH6SD96tyAbmBuReezu61We72L+uuNIEM3OtKRncthKRgMSUXpqXzV4uRAxdvn+sSZSEGQ5vZwFYcP9A0xJ1vE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1681879680; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=i9D4zJ1mLpvxVJ74JkmnmKy2CWt3Q2k9/4+yChlItq8=; b=jobt5rl2hN1sx5+u4XgUw6+UBKBt48ItNY7o4dNitToEnmIDaU49x9IwRjUzjYFQ+lCQE04pFaZ+vhR2Bk0IE4WqKz3S/YNrkrzvxi3PW/Y22QWNuJyA8wFiJY/9CPGhPs+J3UFrEgPgOmve96QEX8uMm+seOHpSFQhdl1hgOnQ= 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=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1681879680746783.7146568104879; Tue, 18 Apr 2023 21:48:00 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1poziS-0003oZ-M5; Wed, 19 Apr 2023 00:46:48 -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 1poziR-0003oM-H4 for qemu-devel@nongnu.org; Wed, 19 Apr 2023 00:46:47 -0400 Received: from mail1.hostfission.com ([118.127.8.195]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1poziN-0005DW-EI for qemu-devel@nongnu.org; Wed, 19 Apr 2023 00:46:47 -0400 Received: from aeryn.lan.ktmba (office.hostfission.com [220.233.29.71]) by mail1.hostfission.com (Postfix) with ESMTPS id DA1C01F0C17; Wed, 19 Apr 2023 14:39:50 +1000 (AEST) Received: by aeryn.lan.ktmba (Postfix, from userid 1000) id 63BAE2E0CE0; Wed, 19 Apr 2023 14:39:50 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hostfission.com; s=mail; t=1681879190; bh=PVVb1n898uEVCc+DSEsNRmKY3aU/upXnZrNrZ90NaiU=; h=From:To:Cc:Subject:Date:From; b=E0/JVGvmd0+hnIgmxJgh3eImA8a4sDLGcpItSWYXv2MOqVfoLlkJ7hWhrP7beWEIT uJrmDHCgZutLr8UcIgt6MY7dEtzWrlGqP/D73LIRjo/0Yygu0srZYk6KMnF0A9b5Rm s6tJ+tiR14QnrB3lG9oQfjM8UxIqRoK5pITe4/cw= From: Geoffrey McRae To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , Geoffrey McRae Subject: [PATCH] hw/misc/ivshmem: Use 32-bit addressing for the memory BAR Date: Wed, 19 Apr 2023 14:39:31 +1000 Message-Id: <20230419043931.36764-1-geoff@hostfission.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 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: none client-ip=118.127.8.195; envelope-from=geoff@aeryn.lan.ktmba; helo=mail1.hostfission.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NO_DNS_FOR_FROM=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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 @hostfission.com) X-ZM-MESSAGEID: 1681879682358100001 Content-Type: text/plain; charset="utf-8" Since OVMF 202211 the bios maps BAR2 to an upper address which has the undesirable effect of making it impossible to map the memory under Linux due to it exceeding the maximum permissible range for hotplug memory (see `mhp_get_pluggable_range` in `mm/memory_hotplug.c`). This patch resolves this by configuring the BAR as 32-bit. Signed-off-by: Geoffrey McRae --- hw/misc/ivshmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c index d66d912172..2f8f7e2030 100644 --- a/hw/misc/ivshmem.c +++ b/hw/misc/ivshmem.c @@ -913,7 +913,7 @@ static void ivshmem_common_realize(PCIDevice *dev, Erro= r **errp) pci_register_bar(PCI_DEVICE(s), 2, PCI_BASE_ADDRESS_SPACE_MEMORY | PCI_BASE_ADDRESS_MEM_PREFETCH | - PCI_BASE_ADDRESS_MEM_TYPE_64, + PCI_BASE_ADDRESS_MEM_TYPE_32, s->ivshmem_bar2); } =20 --=20 2.39.2