[PATCH 13 of 17] Declare kvm_abi as a global variable in kvm-common.h

Jerone Young
2007-11-06T16:48:54Z

# Date 1194367654 21600
# Node ID 3c691b26a79c2e589e20d5c8245a7c30ec456976
# Parent 5148847d713a7108527906df774e35a042853ad1
Declare kvm_abi as a global variable in kvm-common.h

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

diff --git a/libkvm/kvm-common.h b/libkvm/kvm-common.h
--- a/libkvm/kvm-common.h
+++ b/libkvm/kvm-common.h
@@ -21,6 +21,8 @@
#define KVM_MAX_NUM_MEM_REGIONS 8u
#define MAX_VCPUS 4

+/* kvm abi verison variable */
+extern int kvm_abi;

/**
* \brief The KVM context
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];