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 E7001740046 for ; Mon, 20 Nov 2023 07:20:39 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=JdoJYN+5qxoWlqGAtnw2LPqFurPev+sC/n0beFY1UWg=; c=relaxed/simple; d=groups.io; h=ARC-Message-Signature:ARC-Authentication-Results:ARC-Seal:Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References:Autocrypt:User-Agent:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type; s=20140610; t=1700464838; v=1; b=czC9iN5tgJC76Z38cQAU4EWGfBs83ozIghWZyNMxUaE5Jf8G4hW1+ayLx1uJTkvZJTsJT0VA g0msetObnBZElnntgOY27cwlDD5w1oUY3po/EgdfszuBjJljptF6aMpJdgji53rffq02wIRIp/r WPpk1dqfPcIKotjkNU6UguEI= X-Received: by 127.0.0.2 with SMTP id T91fYY7687511xDGTDh5Ri9q; Sun, 19 Nov 2023 23:20:38 -0800 X-Received: from mx2.freebsd.org (mx2.freebsd.org [96.47.72.81]) by mx.groups.io with SMTP id smtpd.web10.45439.1700464837277664705 for ; Sun, 19 Nov 2023 23:20:37 -0800 X-Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (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 4SYf6q65MHz4P2v; Mon, 20 Nov 2023 07:20:35 +0000 (UTC) (envelope-from corvink@FreeBSD.org) X-Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 4SYf6q57HYz4kyl; Mon, 20 Nov 2023 07:20:35 +0000 (UTC) (envelope-from corvink@FreeBSD.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700464835; 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: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=VTwdtn0yoad0453U3z4o8a2pQIkBfw3u0R+7/WmqZZU=; b=h2y/XS+iMwP/FZrY+C+egFYbREgn9m/K8tXHCbWOh8PCn48Zg+bjuIblxjEk6+lB8AATOU ni+GpnMDTH7ui1RlZjNIpz1Oad+RJ5zV8evIrsFJViqSuHzQK+fpXMbIZV0mMyweX1thiw t1AZS+O3gNcCRBZyKX2rYzXYKPSJ1x3eKfPg9Fk5KlA4TsS/OVQy+Ze1jm+ztAfwHmtWso EhpvycT+UTcIoiTRJfUMVNewHb7bLPvaDlcT/Iz1SxFfgrlnMx+jS1mKci1hf461PA30EM fnZjyBdVrFufNYKWu4Dm1FWEUPuIJRwQfxLu2YJiCD1ywUmA6Nm4FHjvRUb2Rw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700464835; a=rsa-sha256; cv=none; b=ImwGwAnHTGFmyT8BvkGDOSqCjNgih5ls4Xamo1s0f1j/5yXCDP5ppYAaRoPrH1RwmhPXSR kA0ZYZQz8w1Pn/2X3RqRUVHjYPJaq7CqgTUBe9yjF5qkrv55ObcfU8OrvSRj+2MRYf/OIm LG5bXK6WMEEMGqhtSfwzYt9SHkQrFV1TM8h/1yGUQ1TV57EffoI9uQqpFpNlu7Eqj0llJj BcDpwjUy3AmVNre9QamVNRaZX2jN12I89nwzDcdghpIc8k5eIFAe8np9Lj5OR0IRO7q1m5 q2buhd4mXVhQt2k9HDbH69IQkSXJt8swJayPsIvDMLe86iZJ24jRXO3ICi0WrQ== X-Received: from [172.21.179.59] (unknown [195.226.174.194]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) 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 4SYf6p2ghvzD28; Mon, 20 Nov 2023 07:20:34 +0000 (UTC) (envelope-from corvink@FreeBSD.org) Message-ID: <88a48b64a85e9db7f82f7ba60ab34970a5feb2e6.camel@FreeBSD.org> Subject: Re: [edk2-devel] [PATCH v1 1/1] OvmfPkg/Bhyve: use a proper PCI IO range From: =?UTF-8?B?Q29ydmluIEvDtmhuZQ==?= To: devel@edk2.groups.io, lersek@redhat.com Cc: Ard Biesheuvel , Gerd Hoffmann , Jiewen Yao , Rebecca Cran , "Liming Gao (Byosoft address)" Date: Mon, 20 Nov 2023 08:20:30 +0100 In-Reply-To: References: <20231117124354.63713-1-corvink@FreeBSD.org> Autocrypt: addr=corvink@FreeBSD.org; prefer-encrypt=mutual; keydata=mQINBGNjZaIBEADDTrDNf+0pwiuRPBdClcnZW83dH1UhuOi0u+A1J2SatEBbNaFVtXXAavewCTuyV/ZbNidjlhq3R/pWyiKjFKvs5dj7PMCw+3z2D5OWpMdHg7TrB+fbdFPOEsu0zQVKNaO+pSKCfN0Re0m7bL3wuvl7PXvBufRwA3Guo1P4j3TXWaEkuso7VupTvE25zVGg9ONHrGOjA9RUy+Yg4Se3NLgtUdjBgA21SBQTDvRQV4fDmVenlwvWeE0Xm8FcDcpQb6sJTihaDku78mi3Ux1HCk7rTcepVEB0xIB6qmFxv0sLlDmVv6Z6qg1y/Q5m23Pgz60o3TulMPV4F+3Itm8ifU+wgVSzBZbD29GYkd7LKqMkFbhvfSBk+5db3vbYY5OD//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Evolution 3.50.1 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: YOTmoi6XYOpPvWCj0yoyUMfWx7686176AA= Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-9y1iY34vPe+3Hxx7ERdJ" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=czC9iN5t; 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; arc=reject ("signature check failed: fail, {[1] = sig:freebsd.org:reject}") --=-9y1iY34vPe+3Hxx7ERdJ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2023-11-17 at 17:09 +0100, Laszlo Ersek wrote: > On 11/17/23 13:43, 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 exeed the bhyve range, it's causing >=20 > s/exeed/exceed/ >=20 > > 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. > >=20 > > [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 > >=20 > > Signed-off-by: Corvin K=C3=B6hne > > Cc: Ard Biesheuvel > > Cc: Gerd Hoffmann > > Cc: Jiewen Yao > > Cc: Rebecca Cran > > --- > > =C2=A0OvmfPkg/Bhyve/PlatformPei/Platform.c | 4 ++-- > > =C2=A01 file changed, 2 insertions(+), 2 deletions(-) > >=20 > > diff --git a/OvmfPkg/Bhyve/PlatformPei/Platform.c > > b/OvmfPkg/Bhyve/PlatformPei/Platform.c > > index f6d9a9038e12..bd1b22a9476e 100644 > > --- a/OvmfPkg/Bhyve/PlatformPei/Platform.c > > +++ b/OvmfPkg/Bhyve/PlatformPei/Platform.c > > @@ -153,8 +153,8 @@ MemMapInitialization ( > > =C2=A0=C2=A0 UINT64=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Pci= IoSize; > > =C2=A0=C2=A0 RETURN_STATUS=C2=A0 PcdStatus; > > =C2=A0 > > -=C2=A0 PciIoBase =3D 0xC000; > > -=C2=A0 PciIoSize =3D 0x4000; > > +=C2=A0 PciIoBase =3D 0x2000; > > +=C2=A0 PciIoSize =3D 0xE000; > > =C2=A0 > > =C2=A0=C2=A0 // > > =C2=A0=C2=A0 // Create Memory Type Information HOB >=20 > Reviewed-by: Laszlo Ersek >=20 > Can you create a BZ for this issue? With that, I think this should be > possible to merge during the hard feature freeze. Adding Liming. >=20 I've never created a BZ yet. I can't find a button to create a new account at https://bugzilla.tianocore.org/. > (For the typo fix in the commit message, either post v2, or ask > Liming > to fix it up upon merge.) >=20 > Thanks > Laszlo >=20 >=20 >=20 >=20 >=20 >=20 --=20 Kind regards, Corvin -=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 (#111460): https://edk2.groups.io/g/devel/message/111460 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- --=-9y1iY34vPe+3Hxx7ERdJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEgvRSla3m2t/H2U9G2FTaVjFeAmoFAmVbCL4ACgkQ2FTaVjFe Amo74A//ZjvNq6TtNRsg+yLazfxjH25caIvGQ3RGESsyB7HEaJechBYkL/DrjUaS V56zZeqawVL0WKn8C0VaSoCLn0T2fJubsA8D5t5wxWuEN5si0wrDbuuObWwsGQWc gkY/PSpK/p96gFvr0tPU5OvgspWPjus2faQMsbVrW/5sECjxHA/3Pzne90jy5QDC 1KKV2zzg710Dps2JVEj4gnkPGEdX/f4OsNlZkouzjT0LKGB0zO40OogZ8CQy6S3u MlAjSmZQIOGPAMyntAB0gIEspBawqBhT+5XIEvqq4aKkLJiHmhf0xGh/JTPl/F9/ vrPxrOegXpQwH5x3yocKtvzawmquMLrS31nLbEcrrsh/m/GBZKwpfzNZgtYO73Qh 95bb8Ye1w35Hv5yqe7UZ55ooiELuhlzk+JSURPAKZb8+cPzBDgwqpwHTwn1KJquH Kaij7Vjnvelu7bDJd1m7LY+tNqFKr5UgudCf4xBtlTkQioW2nfpoCY1EbCNQHyQ9 likxIhNroQ423n0OzYB3HgKW7+NlcORdI71LNDPoJk5g7/M7KTXSgHv65G9v7UPw pq9WDiMpCQnvEHDqZV4JDoqsnsl0j7LT0nExFW36xgcvCc9PwTsYoI3ti51QjaYq TInaJmR6HcHqQ57Dg7l9hWam4Tzr73klFKHlxsFcXNIX/kOXaIo= =nzJ3 -----END PGP SIGNATURE----- --=-9y1iY34vPe+3Hxx7ERdJ--