Re: [PATCH 1/2] kvm tools: Fix IRQ assignments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 6, 2011 at 10:26 AM, Sasha Levin <levinsasha928@xxxxxxxxx> wrote:
> virtio-blk needs a block of 4 IRQs (currently - staticly defined).
> Giving the initial IRQ of 15 causes breakage when adding more
> than one device.
>
> Signed-off-by: Sasha Levin <levinsasha928@xxxxxxxxx>

Can we make the allocation dynamic instead? AFAICT, it could be a simple as

  int kvm__request_irq(struct kvm *kvm)
  {
          return kvm->next_irq++;
  }

that's done at device init time and then we'd just add "int irq" to
the individual struct devices.

                        Pekka
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux