-
- Downloads
KVM: replace direct irq.h inclusion
virt/kvm/irqchip.c is including "irq.h" from the arch-specific KVM source
directory (i.e. not from arch/*/include) for the sole purpose of retrieving
irqchip_in_kernel.
Making the function inline in a header that is already included,
such as asm/kvm_host.h, is not possible because it needs to look at
struct kvm which is defined after asm/kvm_host.h is included. So add a
kvm_arch_irqchip_in_kernel non-inline function; irqchip_in_kernel() is
only performance critical on arm64 and x86, and the non-inline function
is enough on all other architectures.
irq.h can then be deleted from all architectures except x86.
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Showing
- arch/arm64/kvm/arm.c 5 additions, 0 deletionsarch/arm64/kvm/arm.c
- arch/arm64/kvm/irq.h 0 additions, 16 deletionsarch/arm64/kvm/irq.h
- arch/powerpc/kvm/irq.h 0 additions, 22 deletionsarch/powerpc/kvm/irq.h
- arch/powerpc/kvm/powerpc.c 16 additions, 2 deletionsarch/powerpc/kvm/powerpc.c
- arch/s390/kvm/irq.h 0 additions, 19 deletionsarch/s390/kvm/irq.h
- arch/s390/kvm/kvm-s390.c 5 additions, 0 deletionsarch/s390/kvm/kvm-s390.c
- arch/x86/kvm/irq.c 5 additions, 0 deletionsarch/x86/kvm/irq.c
- include/linux/kvm_host.h 2 additions, 0 deletionsinclude/linux/kvm_host.h
- virt/kvm/irqchip.c 1 addition, 2 deletionsvirt/kvm/irqchip.c
Loading
Please register or sign in to comment