[PATCH 2/2] KVM: Make enum values in userspace interface explicit

From: Avi Kivity
Date: Mon Nov 27 2006 - 03:49:50 EST


Signed-off-by: Avi Kivity <avi@xxxxxxxxxxxx>

--- linux-2.6/include/linux/kvm.h 2006-11-27 10:31:40.000000000 +0200
+++ linux-2.6/include/linux/kvm.h 2006-11-19 12:25:35.000000000 +0200
@@ -36,13 +36,13 @@
#define KVM_EXIT_TYPE_VM_EXIT 2

enum kvm_exit_reason {
- KVM_EXIT_UNKNOWN,
- KVM_EXIT_EXCEPTION,
- KVM_EXIT_IO,
- KVM_EXIT_CPUID,
- KVM_EXIT_DEBUG,
- KVM_EXIT_HLT,
- KVM_EXIT_MMIO,
+ KVM_EXIT_UNKNOWN = 0,
+ KVM_EXIT_EXCEPTION = 1,
+ KVM_EXIT_IO = 2,
+ KVM_EXIT_CPUID = 3,
+ KVM_EXIT_DEBUG = 4,
+ KVM_EXIT_HLT = 5,
+ KVM_EXIT_MMIO = 6,
};

/* for KVM_RUN */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/