mbox series

[kvm-unit-tests,v3,0/3] s390x: pv: Add test for large host pages backing

Message ID 20241218135138.51348-1-imbrenda@linux.ibm.com (mailing list archive)
Headers show
Series s390x: pv: Add test for large host pages backing | expand

Message

Claudio Imbrenda Dec. 18, 2024, 1:51 p.m. UTC
Add a new test to check that the host can use 1M large pages to back
protected guests when the corresponding feature is present.

v2->v3
* remove pointless timing measurements
* add two missing patches (oops!)
* minor fixes (thanks Christoph)

Claudio Imbrenda (3):
  lib: s390: add ptlb wrapper
  lib: s390x: add function to test available UV features
  s390x: pv: Add test for large host pages backing

 s390x/Makefile               |   2 +
 lib/s390x/asm/arch_def.h     |   1 +
 lib/s390x/asm/pgtable.h      |   5 +
 lib/s390x/asm/uv.h           |  18 ++
 lib/s390x/uv.h               |   1 +
 lib/s390x/uv.c               |   9 +
 s390x/pv-edat1.c             | 387 +++++++++++++++++++++++++++++++++++
 s390x/snippets/c/pv-memhog.c |  59 ++++++
 8 files changed, 482 insertions(+)
 create mode 100644 s390x/pv-edat1.c
 create mode 100644 s390x/snippets/c/pv-memhog.c