diff options
author | Glauber Costa <glommer@redhat.com> | 2009-07-24 13:46:37 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-08-04 11:35:48 +0300 |
commit | b7e0dba1a864767ad5836f944f3d6dd89ebcdc7a (patch) | |
tree | b45ed0a2c720f0c81af16173c27bcb48124c0dd7 | |
parent | Use kvm_has_sync_mmu from upstream (diff) | |
download | qemu-kvm-b7e0dba1a864767ad5836f944f3d6dd89ebcdc7a.tar.gz qemu-kvm-b7e0dba1a864767ad5836f944f3d6dd89ebcdc7a.tar.bz2 qemu-kvm-b7e0dba1a864767ad5836f944f3d6dd89ebcdc7a.zip |
Remove useless wrappers around functions
Some more cleanup from the libkvm era. Functions that starts with
kvm_qemu_yyy just to wrap a kvm_yyy. I'm removing it, and changing
the name of one of them to match upstream.
Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r-- | qemu-kvm-ia64.c | 2 | ||||
-rw-r--r-- | qemu-kvm-x86.c | 2 | ||||
-rw-r--r-- | qemu-kvm.c | 12 | ||||
-rw-r--r-- | qemu-kvm.h | 5 |
4 files changed, 4 insertions, 17 deletions
diff --git a/qemu-kvm-ia64.c b/qemu-kvm-ia64.c index b8a2587c2..062fbd48b 100644 --- a/qemu-kvm-ia64.c +++ b/qemu-kvm-ia64.c @@ -25,7 +25,7 @@ void kvm_arch_save_regs(CPUState *env) { } -int kvm_arch_qemu_init_env(CPUState *cenv) +int kvm_arch_init_vcpu(CPUState *cenv) { return 0; } diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c index 65ba470b7..87ace303a 100644 --- a/qemu-kvm-x86.c +++ b/qemu-kvm-x86.c @@ -1254,7 +1254,7 @@ static void kvm_trim_features(uint32_t *features, uint32_t supported) } } -int kvm_arch_qemu_init_env(CPUState *cenv) +int kvm_arch_init_vcpu(CPUState *cenv) { struct kvm_cpuid_entry2 cpuid_ent[100]; #ifdef KVM_CPUID_SIGNATURE diff --git a/qemu-kvm.c b/qemu-kvm.c index 967ece5cd..605ddf481 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -1771,7 +1771,7 @@ static int kvm_main_loop_cpu(CPUState *env) pthread_mutex_lock(&qemu_mutex); - kvm_qemu_init_env(env); + kvm_arch_init_vcpu(env); #ifdef TARGET_I386 kvm_tpr_vcpu_start(env); #endif @@ -2238,16 +2238,6 @@ int kvm_setup_guest_memory(void *area, unsigned long size) return ret; } -int kvm_qemu_check_extension(int ext) -{ - return kvm_check_extension(kvm_state, ext); -} - -int kvm_qemu_init_env(CPUState *cenv) -{ - return kvm_arch_qemu_init_env(cenv); -} - #ifdef KVM_CAP_SET_GUEST_DEBUG struct kvm_set_guest_debug_data { diff --git a/qemu-kvm.h b/qemu-kvm.h index 8b0749a93..6476e6f0a 100644 --- a/qemu-kvm.h +++ b/qemu-kvm.h @@ -954,7 +954,6 @@ extern int kvm_allowed; int kvm_main_loop(void); -int kvm_qemu_init(void); int kvm_init_ap(void); int kvm_vcpu_inited(CPUState *env); void kvm_load_registers(CPUState *env); @@ -968,8 +967,6 @@ int kvm_remove_breakpoint(CPUState * current_env, target_ulong addr, target_ulong len, int type); void kvm_remove_all_breakpoints(CPUState * current_env); int kvm_update_guest_debug(CPUState *env, unsigned long reinject_trap); -int kvm_qemu_init_env(CPUState *env); -int kvm_qemu_check_extension(int ext); void kvm_apic_init(CPUState *env); /* called from vcpu initialization */ void qemu_kvm_load_lapic(CPUState *env); @@ -1006,7 +1003,7 @@ void kvm_arch_save_regs(CPUState *env); void kvm_arch_load_regs(CPUState *env); void kvm_arch_load_mpstate(CPUState *env); void kvm_arch_save_mpstate(CPUState *env); -int kvm_arch_qemu_init_env(CPUState *cenv); +int kvm_arch_init_vcpu(CPUState *cenv); void kvm_arch_pre_kvm_run(void *opaque, CPUState *env); void kvm_arch_post_kvm_run(void *opaque, CPUState *env); int kvm_arch_has_work(CPUState *env); |