[PATCH 15 of 19] Declare kvm_abi as a global variable in libkvm.h

Jerone Young
2007-11-02T18:25:04Z

# Date 1194027873 18000
# Node ID df89e9282fd9f491579b42624565bac580f7db8e
# Parent 68585a137682a876dd438782147445f4484146ce
Declare kvm_abi as a global variable in libkvm.h

Signed-off-by: Jerone Young <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>

diff --git a/libkvm/libkvm.c b/libkvm/libkvm.c
--- a/libkvm/libkvm.c
+++ b/libkvm/libkvm.c
@@ -41,7 +41,7 @@
#include "kvm-x86.h"
#endif

-static int kvm_abi = EXPECTED_KVM_API_VERSION;
+int kvm_abi = EXPECTED_KVM_API_VERSION;

int free_slots[KVM_MAX_NUM_MEM_REGIONS];
unsigned long phys_addr_slots[KVM_MAX_NUM_MEM_REGIONS];
diff --git a/libkvm/libkvm.h b/libkvm/libkvm.h
--- a/libkvm/libkvm.h
+++ b/libkvm/libkvm.h
@@ -30,6 +30,9 @@ typedef struct kvm_context *kvm_context_
#if defined(__x86_64__) || defined(__i386__)
#include "libkvm-x86.h"
#endif
+
+/* kvm abi verison variable */
+extern int kvm_abi;

/*!