Skip to content

RFC Use INVPCID to flush global mappings

Wei Liu xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4x86: introduce cpu_has_invpcidxen/include/asm-x86/cpufeature.h+1 -01 reply
2/4x86: report if PCID and INVPCID are supportedxen/arch/x86/setup.c+7 -00 replies
3/4x86: add invpcid.hxen/include/asm-x86/invpcid.h+61 -06 replies
4/4x86: use invpcid to do global flushxen/arch/x86/flushtlb.c+18 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/4] Use INVPCID to flush global mappings

I wrote these patches sometime ago to explore PCID and INVPCID. I haven't thought through whether how to use both in Xen yet. But seeing Juergen laid out his thought on PCID and INVPCID I think some of the patches can be useful.

I had done some benchmark on the speed in one of my older branch by inserting some trace points before and after the flush. It showed that twiddling CR4.PGE is 3 to 5 times slower than invpcid.

This series is in incomplete -- obviously we have CR4.PGE twiddling in a few other places. But if you think it is beneficial I can try to convert those places as well.

Wei.

Wei Liu (4):
x86: introduce cpu_has_invpcid
x86: report if PCID and INVPCID are supported
x86: add invpcid.h
x86: use invpcid to do global flush

 xen/arch/x86/flushtlb.c          | 22 ++++++++++++---
 xen/arch/x86/setup.c             |  7 +++++
 xen/include/asm-x86/cpufeature.h |  1 +
 xen/include/asm-x86/invpcid.h    | 61 ++++++++++++++++++++++++++++++++++++++++
 4 files changed, 87 insertions(+), 4 deletions(-)
 create mode 100644 xen/include/asm-x86/invpcid.h
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel