All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/4] x86/p2m: Some P2M refactoring
@ 2025-11-27 13:39 Teddy Astie
  2025-11-27 13:39 ` [RFC PATCH 4/4] x86/hap: Migrate tlb flush logic to p2m->flush_tlb Teddy Astie
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Teddy Astie @ 2025-11-27 13:39 UTC (permalink / raw)
  To: xen-devel
  Cc: Teddy Astie, Jan Beulich, Andrew Cooper, Roger Pau Monné,
	Tim Deegan

First patch removes a shadow mode check in a function that can't be
called with shadow mode (only called with EPT hence HAP).

3 other patches drops guest_tlb_flush_mask by removing all its users :
in the shadow paging case by migrating it a shadow variant of it and
in the hap case by moving it to p2m->flush_tlb logic.

One of the goal is to prepare adding HAP-specific optimizations to TLB
flushing code without risking regressions in the shadow paging code.

Teddy Astie (4):
  x86/ept: Drop shadow mode check in ept_sync_domain()
  x86/shadow: Replace guest_tlb_flush_mask with sh_flush_tlb_mask
  x86/p2m-pt: Set p2m->need_flush if page was present before
  x86/hap: Migrate tlb flush logic to p2m->flush_tlb

 xen/arch/x86/flushtlb.c             | 15 ---------------
 xen/arch/x86/include/asm/flushtlb.h |  3 ---
 xen/arch/x86/include/asm/p2m.h      |  3 ---
 xen/arch/x86/mm/hap/hap.c           | 14 +++-----------
 xen/arch/x86/mm/hap/nested_hap.c    |  7 +------
 xen/arch/x86/mm/nested.c            |  2 +-
 xen/arch/x86/mm/p2m-ept.c           |  5 +++--
 xen/arch/x86/mm/p2m-pt.c            | 13 +++++--------
 xen/arch/x86/mm/p2m.c               |  8 ++++----
 xen/arch/x86/mm/shadow/common.c     | 12 ++++++------
 xen/arch/x86/mm/shadow/hvm.c        |  8 ++++----
 xen/arch/x86/mm/shadow/multi.c      | 18 ++++++------------
 xen/arch/x86/mm/shadow/private.h    | 22 ++++++++++++++++++++++
 13 files changed, 55 insertions(+), 75 deletions(-)

-- 
2.51.2



--
Teddy Astie | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech



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

end of thread, other threads:[~2025-11-28 11:14 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-27 13:39 [RFC PATCH 0/4] x86/p2m: Some P2M refactoring Teddy Astie
2025-11-27 13:39 ` [RFC PATCH 4/4] x86/hap: Migrate tlb flush logic to p2m->flush_tlb Teddy Astie
2025-11-27 14:30   ` Jan Beulich
2025-11-27 17:44     ` Teddy Astie
2025-11-27 13:39 ` [RFC PATCH 1/4] x86/ept: Drop shadow mode check in ept_sync_domain() Teddy Astie
2025-11-27 13:50   ` Jan Beulich
2025-11-27 13:39 ` [RFC PATCH 3/4] x86/p2m-pt: Set p2m->need_flush if page was present before Teddy Astie
2025-11-27 14:08   ` Jan Beulich
2025-11-27 16:37     ` Teddy Astie
2025-11-27 13:39 ` [RFC PATCH 2/4] x86/shadow: Replace guest_tlb_flush_mask with sh_flush_tlb_mask Teddy Astie
2025-11-27 13:57   ` Jan Beulich
2025-11-27 19:49 ` [RFC PATCH 0/4] x86/p2m: Some P2M refactoring Andrew Cooper
2025-11-28 11:14   ` Teddy Astie

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.