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 A9FE87803D9 for ; Fri, 17 Nov 2023 12:44:16 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Vj85qDuLLVRtjzb2BWH4w7hK4vd73139DMFCq1DT8NI=; c=relaxed/simple; d=groups.io; h=ARC-Message-Signature:ARC-Authentication-Results:ARC-Seal:From:To:Cc:Subject:Date:Message-ID:MIME-Version: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=1700225055; v=1; b=ko5Kl/dXefSTZgQjNrFOdWpx5eDv/dX5r+h0VS6T5Eo8hVj4V5ERuD9euwDEGBEhurer9cS4 +vMVua8hoV7xAt8LO7oGNLVAUg0h+I98uuS2nRBeoL3M0pYatVhSVukpEoUBXVjnjapliFzG/xA WFIig2nBuKI7yxO/6dkLzdtg= X-Received: by 127.0.0.2 with SMTP id o5SGYY7687511xDlZhi58n6E; Fri, 17 Nov 2023 04:44:15 -0800 X-Received: from mx2.freebsd.org (mx2.freebsd.org [96.47.72.81]) by mx.groups.io with SMTP id smtpd.web10.10252.1700225053989571941 for ; Fri, 17 Nov 2023 04:44:14 -0800 X-Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "R3" (verified OK)) by mx2.freebsd.org (Postfix) with ESMTPS id 4SWxRc52Fjz4LyQ; Fri, 17 Nov 2023 12:44:12 +0000 (UTC) (envelope-from corvink@FreeBSD.org) X-Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SWxRc4C0Hz3RSw; Fri, 17 Nov 2023 12:44:12 +0000 (UTC) (envelope-from corvink@FreeBSD.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700225052; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5RAs4VwAgsCkpuLivO8p6xK8vyDd/Ot00h0WnTmnm7o=; b=NmBTgikBAkW4lIw+HDyqx6lHF09/F+Hx5DY5tRjFS3zv1JZMVjKkwKJ8FnMCO2AhbpQa9u 8MToE+3AE4UsvqnHx17eSsV/waDtwFxLlJIrkWvpDK0Ol+hC5eAOLIAS2La9pqnSURfZt1 3B4BtjEl/PQWsN4WrnOhmUlWRjh1+pkAyLEVUeSpq8y+TrYexJ3tOt+BxEM4BqLU8Bqmvu 2perrel71Bytq37ED3/xQgMdeLjoWp61qCgF0/tEJBHjMNt6UiTDZmoe5yFxKfsMdhHvep Qpifsva/8N6QTLXCSaWoUPASBsfOIFiyNpcX8C1j0N+nkb6nls8ASfK280l3vQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700225052; a=rsa-sha256; cv=none; b=SisnJU5yTLrCYQQScvl1bo/oyZDzBfLOhEanL7UdxLgAjcEicYvb4uceJvmZue42I1JPB+ MCFTTXpq385yEZQ9+8Pu4UDdlcMAPiP0r6LxO/c5n6WtoQOuzplixdfncEx5bFJcjZ2zc1 XOw3c9Loh7DqbhaiEdRdly2Xtsl147Y3Q/Nm6Zlj5LdYzO5RMB0iA+vdZbN7EbRkVTqRzj KqsIkP2NnWoeKJw4IvKjdSTJNCTDd1ZaCiGpt24RX45fN9xyvE6PR6s8FJCmVbwEglUFfo PoT8MfBWkFqVXGO9mMT3SBqPJdvEaBX9mroK9RV5fYGo8e9eUhL5QMndS4aMXw== X-Received: from corvink-nb.beckhoff.com (unknown [195.226.174.194]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: corvink) by smtp.freebsd.org (Postfix) with ESMTPSA id 4SWxRW3YD1z1PkQ; Fri, 17 Nov 2023 12:44:07 +0000 (UTC) (envelope-from corvink@FreeBSD.org) From: =?UTF-8?B?Q29ydmluIEvDtmhuZQ==?= To: devel@edk2.groups.io Cc: Ard Biesheuvel , Gerd Hoffmann , Jiewen Yao , Rebecca Cran Subject: [edk2-devel] [PATCH v1 1/1] OvmfPkg/Bhyve: use a proper PCI IO range Date: Fri, 17 Nov 2023 13:43:54 +0100 Message-ID: <20231117124354.63713-1-corvink@FreeBSD.org> MIME-Version: 1.0 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,corvink@FreeBSD.org List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 2S5304zGYdqjJygqKV9d2XXwx7686176AA= 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="ko5Kl/dX"; arc=reject ("signature check failed: fail, {[1] = sig:freebsd.org:reject}"); dmarc=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 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 exeed the bhyve range, it's causing issues on some guests like OpenBSD. 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/82ea0132c8b17a7a6067c8a36c6= 434e587ede6de/usr.sbin/bhyve/pci_emul.c#L133-L134 [2] https://github.com/tianocore/edk2/blob/fb044b7fe893a4545995bfe2701fd38e= 593355d9/OvmfPkg/Bhyve/PlatformPei/Platform.c#L156-L157 Signed-off-by: Corvin K=C3=B6hne Cc: Ard Biesheuvel Cc: Gerd Hoffmann Cc: Jiewen Yao Cc: Rebecca Cran --- OvmfPkg/Bhyve/PlatformPei/Platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OvmfPkg/Bhyve/PlatformPei/Platform.c b/OvmfPkg/Bhyve/PlatformP= ei/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; =20 - PciIoBase =3D 0xC000; - PciIoSize =3D 0x4000; + PciIoBase =3D 0x2000; + PciIoSize =3D 0xE000; =20 // // Create Memory Type Information HOB --=20 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 (#111397): https://edk2.groups.io/g/devel/message/111397 Mute This Topic: https://groups.io/mt/102646333/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-