diff mbox series

[kvm-unit-tests,v3,1/3] lib: s390: add ptlb wrapper

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

Commit Message

Claudio Imbrenda Dec. 18, 2024, 1:51 p.m. UTC
Add wrapper function for the Purge TLB instruction.

Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
---
 lib/s390x/asm/pgtable.h | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/lib/s390x/asm/pgtable.h b/lib/s390x/asm/pgtable.h
index 7b556ad9..fcb30a1e 100644
--- a/lib/s390x/asm/pgtable.h
+++ b/lib/s390x/asm/pgtable.h
@@ -247,4 +247,9 @@  static inline void idte_pgdp(unsigned long vaddr, pgdval_t *pgdp)
 	idte((unsigned long)(pgdp - pgd_index(vaddr)) | ASCE_DT_REGION1, vaddr);
 }
 
+static inline void ptlb(void)
+{
+	asm volatile("ptlb" : : : "memory");
+}
+
 #endif /* _ASMS390X_PGTABLE_H_ */