mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
KVM: Export kvm_init_irq_routing
On PPC, we can have different types of interrupt controllers, so we really only know that we are going to use one when we created it. Export kvm_init_irq_routing() to common code, so that we don't have to call kvm_irqchip_create(). Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
215e79c01c
commit
7b7745930b
3 changed files with 7 additions and 2 deletions
|
@ -954,7 +954,7 @@ static void clear_gsi(KVMState *s, unsigned int gsi)
|
|||
s->used_gsi_bitmap[gsi / 32] &= ~(1U << (gsi % 32));
|
||||
}
|
||||
|
||||
static void kvm_init_irq_routing(KVMState *s)
|
||||
void kvm_init_irq_routing(KVMState *s)
|
||||
{
|
||||
int gsi_count, i;
|
||||
|
||||
|
@ -1242,7 +1242,7 @@ static int kvm_irqchip_assign_irqfd(KVMState *s, int fd, int virq, bool assign)
|
|||
|
||||
#else /* !KVM_CAP_IRQ_ROUTING */
|
||||
|
||||
static void kvm_init_irq_routing(KVMState *s)
|
||||
void kvm_init_irq_routing(KVMState *s)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue