All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] Add API for making parts of a MMIO page R/O and use it in XHCI console
@ 2024-05-22 15:39 Marek Marczykowski-Górecki
  2024-05-22 15:39 ` [PATCH v4 1/2] x86/mm: add API for marking only part of a MMIO page read only Marek Marczykowski-Górecki
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Marek Marczykowski-Górecki @ 2024-05-22 15:39 UTC (permalink / raw)
  To: xen-devel; +Cc: Marek Marczykowski-Górecki

On older systems, XHCI xcap had a layout that no other (interesting) registers
were placed on the same page as the debug capability, so Linux was fine with
making the whole page R/O. But at least on Tiger Lake and Alder Lake, Linux
needs to write to some other registers on the same page too.

Add a generic API for making just parts of an MMIO page R/O and use it to fix
USB3 console with share=yes or share=hwdom options. More details in commit
messages.

Marek Marczykowski-Górecki (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

 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(-)

base-commit: b0082b908391b29b7c4dd5e6c389ebd6481926f8
-- 
git-series 0.9.1


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2024-06-11 15:02 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-22 15:39 [PATCH v4 0/2] Add API for making parts of a MMIO page R/O and use it in XHCI console Marek Marczykowski-Górecki
2024-05-22 15:39 ` [PATCH v4 1/2] x86/mm: add API for marking only part of a MMIO page read only Marek Marczykowski-Górecki
2024-06-07  7:01   ` Jan Beulich
2024-06-11 11:00     ` Marek Marczykowski-Górecki
2024-06-11 10:40   ` Roger Pau Monné
2024-06-11 11:26     ` Jan Beulich
2024-06-11 11:38     ` Marek Marczykowski-Górecki
2024-06-11 12:55       ` Roger Pau Monné
2024-06-11 13:15         ` Marek Marczykowski-Górecki
2024-06-11 14:07           ` Roger Pau Monné
2024-06-11 15:01             ` Marek Marczykowski-Górecki
2024-05-22 15:39 ` [PATCH v4 2/2] drivers/char: Use sub-page ro API to make just xhci dbc cap RO Marek Marczykowski-Górecki
2024-05-23  8:22   ` Jan Beulich
2024-05-23 14:22 ` [PATCH v4 0/2] Add API for making parts of a MMIO page R/O and use it in XHCI console Marek Marczykowski-Górecki
2024-05-23 14:28   ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.