Thread (11 messages) 11 messages, 2 authors, 2021-02-11

Re: [kvm-unit-tests PATCH v1 1/4] libcflat: add SZ_1M and SZ_2G

From: Thomas Huth <hidden>
Date: 2021-02-09 15:25:02
Also in: linux-s390

On 09/02/2021 15.38, Claudio Imbrenda wrote:
quoted hunk ↗ jump to hunk
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>
---
  lib/libcflat.h | 2 ++
  1 file changed, 2 insertions(+)
diff --git a/lib/libcflat.h b/lib/libcflat.h
index 460a1234..8dac0621 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
Reviewed-by: Thomas Huth <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help