From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E1470C25B75 for ; Thu, 23 May 2024 14:22:27 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.728541.1133484 (Exim 4.92) (envelope-from ) id 1sA9Kg-0004BG-1M; Thu, 23 May 2024 14:22:14 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 728541.1133484; Thu, 23 May 2024 14:22:14 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sA9Kf-0004B9-Uq; Thu, 23 May 2024 14:22:13 +0000 Received: by outflank-mailman (input) for mailman id 728541; Thu, 23 May 2024 14:22:12 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sA9Kd-0004At-W8 for xen-devel@lists.xenproject.org; Thu, 23 May 2024 14:22:12 +0000 Received: from wfhigh6-smtp.messagingengine.com (wfhigh6-smtp.messagingengine.com [64.147.123.157]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id d622ffa1-190f-11ef-90a1-e314d9c70b13; Thu, 23 May 2024 16:22:09 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.west.internal (Postfix) with ESMTP id 3727518000B8; Thu, 23 May 2024 10:22:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 23 May 2024 10:22:06 -0400 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 May 2024 10:22:04 -0400 (EDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: d622ffa1-190f-11ef-90a1-e314d9c70b13 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= invisiblethingslab.com; h=cc:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1716474125; x=1716560525; bh=wch4MQuvuoO/P1pJrQteF14ohcPjgykADHYQkfDfatc=; b= BjcgLiWmlR+xaH9GdQ+d4rEO0sgf1GtMiJTZCRcF2zSw5Kb+0LoFJUg6976wp0cm t78HTUzGk4MTKKLTRn67hNwkhj+5o20lLxhTFlwU84aJM65PwxGPhUnu7xWeud+x QB+lI9j2OPhzDy0Umf04mbO1KPrz7VwsU4wXCT5+irBQzllMu9m5rD609MYWwoYp exZXfrNmJq1qElVb/RdjYSaBJuFp8CUMF0Ey4UiXiKiTsFToWrbv8XKC1kvRH6TZ vtL++6GaH35hBfw2Dg6UT5514poW1hfDYl9x7x1WCVfpv35OrZW1QsJPJSygI90U Bi+DhF4Cfbupyorsh0dgbA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1716474125; x=1716560525; bh=wch4MQuvuoO/P1pJrQteF14ohcPj gykADHYQkfDfatc=; b=nXStMfr5tSxpoaGYxfs9eR5ys1YlaSRcGOiZMCyL7b6c 5nxMWORJPS78UC+XIB4Q+N0srgF0xsC8l6ML6i+cs+W8r3wwF/NfTBNHWb35bgu3 tKWXUi0+akkgOiqRW8djPIfpi+FMPwvmrQfEL99AW/mVfs1qN4mWaEWec6Z1F9rE tLB0SHzQeVTA2iGmSblsIk48DVh8sCDK3v4C5Nd4M/DdYeSAQ4QDkH2CAJFbTKqu qTyX19n0kLKGKWpjt7jxCqYIWDsTv9v4A97EAgy72AxwWyfFCgO5tO3595nhZ1Qz rwwqQQtoZsfmiyGNN9COytqPKGnxYFgOwPdQd6uVvQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeiiedgjeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttdejnecuhfhrohhmpeforghrvghk ucforghrtgiihihkohifshhkihdqifpkrhgvtghkihcuoehmrghrmhgrrhgvkhesihhnvh hishhisghlvghthhhinhhgshhlrggsrdgtohhmqeenucggtffrrghtthgvrhhnpeehvedv ueevheekhefhvefggffgvedugeetuefgleeivdehgfeuieeugfetteeiffenucffohhmrg hinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomhepmhgrrhhmrghrvghksehinhhvihhsihgslhgvthhhihhnghhslh grsgdrtghomh X-ME-Proxy: Feedback-ID: i1568416f:Fastmail Date: Thu, 23 May 2024 16:22:01 +0200 From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= To: xen-devel@lists.xenproject.org, Andrew Cooper , Roger Pau =?utf-8?B?TW9ubsOp?= Subject: Re: [PATCH v4 0/2] Add API for making parts of a MMIO page R/O and use it in XHCI console Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NVX2/ut/877rVt3E" Content-Disposition: inline In-Reply-To: --NVX2/ut/877rVt3E Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Date: Thu, 23 May 2024 16:22:01 +0200 From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= To: xen-devel@lists.xenproject.org, Andrew Cooper , Roger Pau =?utf-8?B?TW9ubsOp?= Subject: Re: [PATCH v4 0/2] Add API for making parts of a MMIO page R/O and use it in XHCI console On Wed, May 22, 2024 at 05:39:02PM +0200, Marek Marczykowski-G=C3=B3recki w= rote: > On older systems, XHCI xcap had a layout that no other (interesting) regi= sters > were placed on the same page as the debug capability, so Linux was fine w= ith > making the whole page R/O. But at least on Tiger Lake and Alder Lake, Lin= ux > needs to write to some other registers on the same page too. >=20 > Add a generic API for making just parts of an MMIO page R/O and use it to= fix > USB3 console with share=3Dyes or share=3Dhwdom options. More details in c= ommit > messages. >=20 > Marek Marczykowski-G=C3=B3recki (2): > x86/mm: add API for marking only part of a MMIO page read only > drivers/char: Use sub-page ro API to make just xhci dbc cap RO Does any other x86 maintainer feel comfortable ack-ing this series? Jan already reviewed 2/2 here (but not 1/2 in this version), but also said he is not comfortable with letting this in without a second maintainer approval: https://lore.kernel.org/xen-devel/7655e401-b927-4250-ae63-05361a5= ee71d@suse.com/ >=20 > xen/arch/x86/hvm/emulate.c | 2 +- > xen/arch/x86/hvm/hvm.c | 4 +- > xen/arch/x86/include/asm/mm.h | 25 +++- > xen/arch/x86/mm.c | 273 +++++++++++++++++++++++++++++++++- > xen/arch/x86/pv/ro-page-fault.c | 6 +- > xen/drivers/char/xhci-dbc.c | 36 ++-- > 6 files changed, 327 insertions(+), 19 deletions(-) >=20 > base-commit: b0082b908391b29b7c4dd5e6c389ebd6481926f8 > --=20 > git-series 0.9.1 --=20 Best Regards, Marek Marczykowski-G=C3=B3recki Invisible Things Lab --NVX2/ut/877rVt3E Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhrpukzGPukRmQqkK24/THMrX1ywFAmZPUQoACgkQ24/THMrX 1yyBAgf+OY4AI4FifIusRtmZbKOTGwbDJwPe3rQRQvQIoc2uzQwcYWNiirQdxXR3 8F+ZEL1/IWAC5jJk5kK5guXBFUXhLy0+ni6tfO/jlRg6P468eoIWrHvQ0vtyFcUF QWjk5MXs2UmPnSY+6FO90sZCU5CXv9E5T5xIXzm2IQGWyQtA5GHBBaGsDdPnsekN ccrwinyhyVvGSruXHnRpIyCM6Ghmw4Zyq0LpRRH9Mpxw8QiY8OU1mEuHi4txkHTZ O5RdlHc+nDg40xpY0S9GNzbm9mh9I/blzV+twHkOb+lTCzXq3UfqTH29kKdK6VVO N427hpmTrAYKGUPuqAZLtmo+c4M5Ig== =N8As -----END PGP SIGNATURE----- --NVX2/ut/877rVt3E--