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/s390/include/asm/kvm_host.h | |
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/s390/include/asm/kvm_host.h')
-rw-r--r-- | arch/s390/include/asm/kvm_host.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/s390/include/asm/kvm_host.h b/arch/s390/include/asm/kvm_host.h index d71291d3fb6f..f6dd90684b97 100644 --- a/arch/s390/include/asm/kvm_host.h +++ b/arch/s390/include/asm/kvm_host.h | |||
@@ -451,4 +451,18 @@ void kvm_arch_async_page_present(struct kvm_vcpu *vcpu, | |||
451 | 451 | ||
452 | extern int sie64a(struct kvm_s390_sie_block *, u64 *); | 452 | extern int sie64a(struct kvm_s390_sie_block *, u64 *); |
453 | extern char sie_exit; | 453 | extern char sie_exit; |
454 | |||
455 | static inline void kvm_arch_hardware_disable(void *garbage) {} | ||
456 | static inline void kvm_arch_check_processor_compat(void *rtn) {} | ||
457 | static inline void kvm_arch_exit(void) {} | ||
458 | static inline void kvm_arch_sync_events(struct kvm *kvm) {} | ||
459 | static inline void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) {} | ||
460 | static inline void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) {} | ||
461 | static inline void kvm_arch_free_memslot(struct kvm *kvm, | ||
462 | struct kvm_memory_slot *free, struct kvm_memory_slot *dont) {} | ||
463 | static inline void kvm_arch_memslots_updated(struct kvm *kvm) {} | ||
464 | static inline void kvm_arch_flush_shadow_all(struct kvm *kvm) {} | ||
465 | static inline void kvm_arch_flush_shadow_memslot(struct kvm *kvm, | ||
466 | struct kvm_memory_slot *slot) {} | ||
467 | |||
454 | #endif | 468 | #endif |