All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add API for making parts of a MMIO page R/O and use it in XHCI console
@ 2023-05-05 21:25 Marek Marczykowski-Górecki
  2023-05-05 21:25 ` [PATCH v2 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; 16+ messages in thread
From: Marek Marczykowski-Górecki @ 2023-05-05 21:25 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          |   8 +-
 xen/arch/x86/include/asm/mm.h   |  15 ++-
 xen/arch/x86/mm.c               | 253 +++++++++++++++++++++++++++++++++-
 xen/arch/x86/pv/ro-page-fault.c |   1 +-
 xen/drivers/char/xhci-dbc.c     |  14 +--
 6 files changed, 284 insertions(+), 9 deletions(-)

base-commit: 99a9c3d7141063ae3f357892c6181cfa3be8a280
-- 
git-series 0.9.1


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

end of thread, other threads:[~2023-07-10  7:05 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-05 21:25 [PATCH v2 0/2] Add API for making parts of a MMIO page R/O and use it in XHCI console Marek Marczykowski-Górecki
2023-05-05 21:25 ` [PATCH v2 1/2] x86/mm: add API for marking only part of a MMIO page read only Marek Marczykowski-Górecki
2023-05-17 19:28   ` Jason Andryuk
2023-05-30 11:56   ` Jan Beulich
2023-06-30 22:28     ` Marek Marczykowski-Górecki
2023-07-05  8:23       ` Jan Beulich
2023-07-07 11:02         ` Marek Marczykowski-Górecki
2023-07-10  7:04           ` Jan Beulich
2023-05-05 21:25 ` [PATCH v2 2/2] drivers/char: Use sub-page ro API to make just xhci dbc cap RO Marek Marczykowski-Górecki
2023-05-30 12:04   ` Jan Beulich
2023-06-30 22:38     ` Marek Marczykowski-Górecki
2023-07-05  8:28       ` Jan Beulich
2023-05-11 14:58 ` [PATCH v2 0/2] Add API for making parts of a MMIO page R/O and use it in XHCI console Jason Andryuk
2023-05-11 15:22   ` Marek Marczykowski-Górecki
2023-05-11 15:27     ` Jason Andryuk
2023-05-11 15:28       ` Marek Marczykowski-Górecki

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.