repository: /home/avi/kvm branch: (no branch) commit 674ce3aa423bd568834eb63c1e0c9eac4e58d86a Author: Jerone Young <[EMAIL PROTECTED]> Date: Tue Nov 6 10:48:50 2007 -0600
kvm: libkvm: make functions in libkvm.c nonstatic This patch makes the following functions nonstatic. These functions are potentially reusable by other archs, but are need by arch specific code in libkvm-x86.c. These functions include: handle_halt handle_shutdown post_kvm_run pre_kvm_run handle_io_window handle_debug Signed-off-by: Jerone Young <[EMAIL PROTECTED]> Signed-off-by: Avi Kivity <[EMAIL PROTECTED]> diff --git a/libkvm/kvm-common.h b/libkvm/kvm-common.h index 6f38ee5..e5b3511 100644 --- a/libkvm/kvm-common.h +++ b/libkvm/kvm-common.h @@ -65,4 +65,12 @@ int kvm_arch_create_default_phys_mem(kvm_context_t kvm, unsigned long phys_mem_bytes, void **vm_mem); +int handle_halt(kvm_context_t kvm, int vcpu); +int handle_shutdown(kvm_context_t kvm, int vcpu); +void post_kvm_run(kvm_context_t kvm, int vcpu); +int pre_kvm_run(kvm_context_t kvm, int vcpu); +int handle_io_window(kvm_context_t kvm); +int handle_debug(kvm_context_t kvm, int vcpu); +int try_push_interrupts(kvm_context_t kvm); + #endif diff --git a/libkvm/libkvm.c b/libkvm/libkvm.c index bd1fd57..41d4ffd 100644 --- a/libkvm/libkvm.c +++ b/libkvm/libkvm.c @@ -725,7 +725,7 @@ static int handle_io(kvm_context_t kvm, struct kvm_run *run, int vcpu) return 0; } -static int handle_debug(kvm_context_t kvm, int vcpu) +int handle_debug(kvm_context_t kvm, int vcpu) { return kvm->callbacks->debug(kvm->opaque, vcpu); } @@ -1010,17 +1010,17 @@ static int handle_mmio(kvm_context_t kvm, struct kvm_run *kvm_run) return r; } -static int handle_io_window(kvm_context_t kvm) +int handle_io_window(kvm_context_t kvm) { return kvm->callbacks->io_window(kvm->opaque); } -static int handle_halt(kvm_context_t kvm, int vcpu) +int handle_halt(kvm_context_t kvm, int vcpu) { return kvm->callbacks->halt(kvm->opaque, vcpu); } -static int handle_shutdown(kvm_context_t kvm, int vcpu) +int handle_shutdown(kvm_context_t kvm, int vcpu) { return kvm->callbacks->shutdown(kvm->opaque, vcpu); } @@ -1030,12 +1030,12 @@ int try_push_interrupts(kvm_context_t kvm) return kvm->callbacks->try_push_interrupts(kvm->opaque); } -static void post_kvm_run(kvm_context_t kvm, int vcpu) +void post_kvm_run(kvm_context_t kvm, int vcpu) { kvm->callbacks->post_kvm_run(kvm->opaque, vcpu); } -static int pre_kvm_run(kvm_context_t kvm, int vcpu) +int pre_kvm_run(kvm_context_t kvm, int vcpu) { return kvm->callbacks->pre_kvm_run(kvm->opaque, vcpu); } ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ kvm-commits mailing list kvm-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-commits