1 /* Generated by ./xlat/gen.sh from ./xlat/kvm_mem_flags.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(KVM_MEM_LOG_DIRTY_PAGES) || (defined(HAVE_DECL_KVM_MEM_LOG_DIRTY_PAGES) && HAVE_DECL_KVM_MEM_LOG_DIRTY_PAGES) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((KVM_MEM_LOG_DIRTY_PAGES) == ((1 << 0)), "KVM_MEM_LOG_DIRTY_PAGES != (1 << 0)"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define KVM_MEM_LOG_DIRTY_PAGES (1 << 0) 12 #endif 13 #if defined(KVM_MEM_READONLY) || (defined(HAVE_DECL_KVM_MEM_READONLY) && HAVE_DECL_KVM_MEM_READONLY) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((KVM_MEM_READONLY) == ((1 << 1)), "KVM_MEM_READONLY != (1 << 1)"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define KVM_MEM_READONLY (1 << 1) 19 #endif 20 21 #ifndef XLAT_MACROS_ONLY 22 23 # ifdef IN_MPERS 24 25 # error static const struct xlat kvm_mem_flags in mpers mode 26 27 # else 28 29 static 30 const struct xlat kvm_mem_flags[] = { 31 XLAT(KVM_MEM_LOG_DIRTY_PAGES), 32 XLAT(KVM_MEM_READONLY), 33 XLAT_END 34 }; 35 36 # endif /* !IN_MPERS */ 37 38 #endif /* !XLAT_MACROS_ONLY */ 39