Thread (10 messages) 10 messages, 2 authors, 2021-06-18
STALE1856d REVIEWED: 1 (0M)
Revisions (4)
  1. v1 [diff vs current]
  2. v3 [diff vs current]
  3. v4 [diff vs current]
  4. v5 current

[kvm-unit-tests PATCH v5 2/7] libcflat: add SZ_1M and SZ_2G

From: Claudio Imbrenda <imbrenda@linux.ibm.com>
Date: 2021-06-11 14:07:19
Also in: linux-s390
Subsystem: library code, the rest · Maintainers: Andrew Morton, Linus Torvalds

Add SZ_1M and SZ_2G to libcflat.h

s390x needs those for large/huge pages

Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Thomas Huth <redacted>
---
 lib/libcflat.h | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/lib/libcflat.h b/lib/libcflat.h
index f40b431d..97db9e38 100644
--- a/lib/libcflat.h
+++ b/lib/libcflat.h
@@ -157,7 +157,9 @@ extern void setup_vm(void);
 #define SZ_8K			(1 << 13)
 #define SZ_16K			(1 << 14)
 #define SZ_64K			(1 << 16)
+#define SZ_1M			(1 << 20)
 #define SZ_2M			(1 << 21)
 #define SZ_1G			(1 << 30)
+#define SZ_2G			(1ul << 31)
 
 #endif
-- 
2.31.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help