Fix declerations that should be in kvm-common.h & not in kvm-x86.h
PATCH 1/1 Fix declerations that should be in kvm-common.h & not in kvm-x86.h
# HG changeset patch
# User Jerone Young <jyoung5-r/[email protected]> # Date 1194543880 21600
# Node ID f87e6f60ddd69cb0ee4e0bbcaed657d2f12311ce
# Parent d6fa0d16fa60ee5083877fec698b69cea840d0b0
Fix declerations that should be in kvm-common.h & not in kvm-x86.h
During the first phase of the refactoring these function declerations where not moved over to the kvm-common.h.
Function decleartions include:
kvm_alloc_kernel_memory kvm_alloc_userspace_memory kvm_create_kernel_phys_mem kvm_show_code kvm_run_abi10
libkvm/kvm-common.h +12 -0
@@ -55,6 +55,14 @@ int get_free_slot(kvm_context_t kvm);int get_free_slot (kvm_context_t kvm);void register_slot (int slot,unsigned long phys_addr);int get_slot (unsigned long phys_addr); + +int kvm_alloc_kernel_memory (kvm_context_t kvm,unsigned long memory, +void **vm_mem); +int kvm_alloc_userspace_memory (kvm_context_t kvm,unsigned long memory, +void **vm_mem); +void *kvm_create_kernel_phys_mem (kvm_context_t kvm,unsigned long phys_start, +unsigned long len,int log,int writable); +void kvm_memory_region_save_params (kvm_context_t kvm,struct kvm_memory_region *mem); void kvm_userspace_memory_region_save_params(kvm_context_t kvm,
@@ -67,6 +75,10 @@ int kvm_arch_create_default_phys_mem(kvmunsigned long phys_mem_bytes, void **vm_mem); +void kvm_show_code (kvm_context_t kvm,int vcpu); +int kvm_run_abi10 (kvm_context_t kvm,int vcpu); + +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);
libkvm/kvm-x86.h +0 -17
@@ -20,27 +20,10 @@#include "kvm-common.h" -#include "kvm-common.h" -#define PAGE_SIZE 4096ul#define PAGE_MASK (~(PAGE_SIZE - 1)) - -int kvm_alloc_kernel_memory (kvm_context_t kvm,unsigned long memory, -void **vm_mem); - -int kvm_alloc_userspace_memory (kvm_context_t kvm,unsigned long memory, -void **vm_mem); -int kvm_set_tss_addr (kvm_context_t kvm,unsigned long addr); - - -void *kvm_create_kernel_phys_mem (kvm_context_t kvm,unsigned long phys_start, -unsigned long len,int log,int writable); - -int kvm_run_abi10 (kvm_context_t kvm,int vcpu); - -void kvm_show_code (kvm_context_t kvm,int vcpu);struct kvm_msr_list *kvm_get_msr_list (kvm_context_t );int kvm_get_msrs (kvm_context_t ,int vcpu,struct kvm_msr_entry *msrs,int n);
-------------------------------------------------------------------------
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/
Quoted 10 lines · Jerone Young
# HG changeset patch
# User Jerone Young <jyoung5-r/[email protected]> # Date 1194543880 21600
# Node IDf87e6f60ddd69cb0ee4e0bbcaed657d2f12311ce
# Parentd6fa0d16fa60ee5083877fec698b69cea840d0b0
Fix declerations that should be inkvm-common.h& not inkvm-x86.hDuring the first phase of the refactoring these function declerations where not moved over to the
kvm-common.h.
Quoted 8 lines
Function decleartions include:
kvm_alloc_kernel_memory kvm_alloc_userspace_memory kvm_create_kernel_phys_mem kvm_show_code kvm_run_abi10
Aren't most of these x86 specific?
Signature · 8 lines
error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- 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/
Quoted 20 lines · Avi Kivity
Quoted 10 lines · Jerone Young
# HG changeset patch
# User Jerone Young <jyoung5-r/[email protected]> # Date 1194543880 21600
# Node IDf87e6f60ddd69cb0ee4e0bbcaed657d2f12311ce
# Parentd6fa0d16fa60ee5083877fec698b69cea840d0b0
Fix declerations that should be inkvm-common.h& not inkvm-x86.hDuring the first phase of the refactoring these function declerations where not moved over to the
kvm-common.h.Quoted 8 lines
Function decleartions include:
kvm_alloc_kernel_memory kvm_alloc_userspace_memory kvm_create_kernel_phys_mem kvm_show_code kvm_run_abi10
Quoted 2 lines
Aren't most of these x86 specific?
Yes but currently they are still used in common code. So basically empty functions that return nothing or ENOSYS are created by other architectures till these can be worked out. Or maybe the arch might actually use them (well besides kvm_run_abi10).
-------------------------------------------------------------------------
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/