From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 6401C74003D for ; Thu, 7 Dec 2023 16:34:30 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=XHbZNpJ3sLJNxq6/alKnLho49oCtzFINoLXn8P3GC8o=; c=relaxed/simple; d=groups.io; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:To:Cc:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding; s=20140610; t=1701966868; v=1; b=oycbeufESn4DQeJjzBIuEugQ44QgIqlvP3MIF52xDnyonmGdfzcKYYLyJWQfb4gwq1mHK8jA mU2jhbfXMzyNIiq2EzmSuXv9OocLSnP95oTF+N4NQHwt//23S05tQO3Gr3i2UmrlUNEzlQx1ZLl MEPMTtngIBa0OvElzOcuPzQ0= X-Received: by 127.0.0.2 with SMTP id nhpWYY7687511xYiWup05Iy2; Thu, 07 Dec 2023 08:34:28 -0800 X-Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by mx.groups.io with SMTP id smtpd.web11.88729.1701966867807728760 for ; Thu, 07 Dec 2023 08:34:28 -0800 X-Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by ams.source.kernel.org (Postfix) with ESMTP id CD037B828EE for ; Thu, 7 Dec 2023 16:34:25 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30E16C433C7 for ; Thu, 7 Dec 2023 16:34:25 +0000 (UTC) X-Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-50be58a751cso1070140e87.2 for ; Thu, 07 Dec 2023 08:34:25 -0800 (PST) X-Gm-Message-State: tPUTo47tgFDcSzo9SxbEYpvTx7686176AA= X-Google-Smtp-Source: AGHT+IG4IDdEsDIPXO/NYaElAZcj2qnuB626TNcqeGMCkS9vQNaiCZ9TC4GMw2xJvq8/J4cmcpGKk3AopUyHrH7050M= X-Received: by 2002:a2e:80c4:0:b0:2ca:1593:6ede with SMTP id r4-20020a2e80c4000000b002ca15936edemr1756963ljg.6.1701966863428; Thu, 07 Dec 2023 08:34:23 -0800 (PST) MIME-Version: 1.0 References: <20231120072453.10433-1-corvink@FreeBSD.org> In-Reply-To: <20231120072453.10433-1-corvink@FreeBSD.org> From: "Ard Biesheuvel" Date: Thu, 7 Dec 2023 17:34:12 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [edk2-devel] [PATCH v2 1/1] OvmfPkg/Bhyve: use a proper PCI IO range To: =?UTF-8?Q?Corvin_K=C3=B6hne?= Cc: devel@edk2.groups.io, Laszlo Ersek , Rebecca Cran , Ard Biesheuvel , Gerd Hoffmann , Liming Gao , Jiewen Yao Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ardb@kernel.org List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=oycbeufE; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=kernel.org (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io On Mon, 20 Nov 2023 at 08:25, Corvin K=C3=B6hne wrote= : > > Bhyve uses an io port range of [ 0x2000, 0x10000 ] [1]. At the moment, > EDKII is using a subset of this range [ 0xC000, 0x10000 ] [2]. Even > though the EDKII range doesn't exceed the bhyve range, it's causing > issues on some guests like OpenBSD [3]. We don't know why it's causing > issues yet. However, using the same IO port range in EDKII fixes the > issue and is a good idea anyway. > > [1] https://github.com/freebsd/freebsd-src/blob/82ea0132c8b17a7a6067c8a36= c6434e587ede6de/usr.sbin/bhyve/pci_emul.c#L133-L134 > [2] https://github.com/tianocore/edk2/blob/fb044b7fe893a4545995bfe2701fd3= 8e593355d9/OvmfPkg/Bhyve/PlatformPei/Platform.c#L156-L157 > [3] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274389 > > Signed-off-by: Corvin K=C3=B6hne > Reviewed-by: Laszlo Ersek > Reviewed-by: Rebecca Cran > Cc: Ard Biesheuvel > Cc: Gerd Hoffmann > Cc: Liming Gao > Cc: Jiewen Yao Queued up as #5121 - thanks. > --- > OvmfPkg/Bhyve/PlatformPei/Platform.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/OvmfPkg/Bhyve/PlatformPei/Platform.c b/OvmfPkg/Bhyve/Platfor= mPei/Platform.c > index f6d9a9038e12..bd1b22a9476e 100644 > --- a/OvmfPkg/Bhyve/PlatformPei/Platform.c > +++ b/OvmfPkg/Bhyve/PlatformPei/Platform.c > @@ -153,8 +153,8 @@ MemMapInitialization ( > UINT64 PciIoSize; > RETURN_STATUS PcdStatus; > > - PciIoBase =3D 0xC000; > - PciIoSize =3D 0x4000; > + PciIoBase =3D 0x2000; > + PciIoSize =3D 0xE000; > > // > // Create Memory Type Information HOB > -- > 2.42.0 > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#112203): https://edk2.groups.io/g/devel/message/112203 Mute This Topic: https://groups.io/mt/102703362/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-