diff options
author | Radim Krčmář <rkrcmar@redhat.com> | 2014-08-28 09:13:02 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-08-29 10:35:55 -0400 |
commit | 0865e636aef751966e6e0f8950a26bc7391e923c (patch) | |
tree | ebd382925187756575fdbf677fe3a807f7e4d706 /arch/arm/kvm | |
parent | 656473003bc7e056c3bbd4a4d9832dad01e86f76 (diff) |
KVM: static inline empty kvm_arch functions
Using static inline is going to save few bytes and cycles.
For example on powerpc, the difference is 700 B after stripping.
(5 kB before)
This patch also deals with two overlooked empty functions:
kvm_arch_flush_shadow was not removed from arch/mips/kvm/mips.c
2df72e9bc KVM: split kvm_arch_flush_shadow
and kvm_arch_sched_in never made it into arch/ia64/kvm/kvm-ia64.c.
e790d9ef6 KVM: add kvm_arch_sched_in
Signed-off-by: Radim KrÄmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/arm/kvm')
-rw-r--r-- | arch/arm/kvm/arm.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index 9f788ebac55b..132bb0d9c5ad 100644 --- a/arch/arm/kvm/arm.c +++ b/arch/arm/kvm/arm.c | |||
@@ -97,27 +97,16 @@ int kvm_arch_vcpu_should_kick(struct kvm_vcpu *vcpu) | |||
97 | return kvm_vcpu_exiting_guest_mode(vcpu) == IN_GUEST_MODE; | 97 | return kvm_vcpu_exiting_guest_mode(vcpu) == IN_GUEST_MODE; |
98 | } | 98 | } |
99 | 99 | ||
100 | void kvm_arch_hardware_disable(void *garbage) | ||
101 | { | ||
102 | } | ||
103 | |||
104 | int kvm_arch_hardware_setup(void) | 100 | int kvm_arch_hardware_setup(void) |
105 | { | 101 | { |
106 | return 0; | 102 | return 0; |
107 | } | 103 | } |
108 | 104 | ||
109 | void kvm_arch_hardware_unsetup(void) | ||
110 | { | ||
111 | } | ||
112 | |||
113 | void kvm_arch_check_processor_compat(void *rtn) | 105 | void kvm_arch_check_processor_compat(void *rtn) |
114 | { | 106 | { |
115 | *(int *)rtn = 0; | 107 | *(int *)rtn = 0; |
116 | } | 108 | } |
117 | 109 | ||
118 | void kvm_arch_sync_events(struct kvm *kvm) | ||
119 | { | ||
120 | } | ||
121 | 110 | ||
122 | /** | 111 | /** |
123 | * kvm_arch_init_vm - initializes a VM data structure | 112 | * kvm_arch_init_vm - initializes a VM data structure |
@@ -284,14 +273,6 @@ int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu) | |||
284 | return 0; | 273 | return 0; |
285 | } | 274 | } |
286 | 275 | ||
287 | void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) | ||
288 | { | ||
289 | } | ||
290 | |||
291 | void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) | ||
292 | { | ||
293 | } | ||
294 | |||
295 | void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) | 276 | void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) |
296 | { | 277 | { |
297 | vcpu->cpu = cpu; | 278 | vcpu->cpu = cpu; |