aboutsummaryrefslogtreecommitdiff
path: root/xlat/kvm_mem_flags.h
diff options
context:
space:
mode:
Diffstat (limited to 'xlat/kvm_mem_flags.h')
-rw-r--r--xlat/kvm_mem_flags.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/xlat/kvm_mem_flags.h b/xlat/kvm_mem_flags.h
new file mode 100644
index 00000000..5a8ebee6
--- /dev/null
+++ b/xlat/kvm_mem_flags.h
@@ -0,0 +1,22 @@
+/* Generated by ./xlat/gen.sh from ./xlat/kvm_mem_flags.in; do not edit. */
+#if !(defined(KVM_MEM_LOG_DIRTY_PAGES) || (defined(HAVE_DECL_KVM_MEM_LOG_DIRTY_PAGES) && HAVE_DECL_KVM_MEM_LOG_DIRTY_PAGES))
+# define KVM_MEM_LOG_DIRTY_PAGES (1 << 0)
+#endif
+#if !(defined(KVM_MEM_READONLY) || (defined(HAVE_DECL_KVM_MEM_READONLY) && HAVE_DECL_KVM_MEM_READONLY))
+# define KVM_MEM_READONLY (1 << 1)
+#endif
+
+#ifdef IN_MPERS
+
+# error static const struct xlat kvm_mem_flags in mpers mode
+
+#else
+
+static
+const struct xlat kvm_mem_flags[] = {
+ XLAT(KVM_MEM_LOG_DIRTY_PAGES),
+ XLAT(KVM_MEM_READONLY),
+ XLAT_END
+};
+
+#endif /* !IN_MPERS */