Re: [PATCH v2 0/9] qemu-kvm: Clean up and enhance MSI irqchip support

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

 



On 04/27/2011 12:06 PM, Jan Kiszka wrote:
>
>  We can simply drop all route entries that are used exclusively in qemu
>  (i.e. not bound to an irqfd) and let the cache rebuild itself.

When should they be dropped?

Whenever we need to allocate a new routing entry, but cannot because it is full.

def kvm_send_msi_message(addr, val):
      gsi = route_cache.get((addr, val), None)
      if gsi is None:
          expire_volatile_route_cache_entries_if_full()
          gsi = alloc_gsi_cache_entry()
          route_cache[(addr, val)] = gsi
          update_route_cache()
       kvm_irq_line(gsi, 1)
       kvm_irq_line(gsi, 0)

The code would have to be in kvm.c, where it can track whether an entry is volatile or persistent.

--
error compiling committee.c: too many arguments to function

--
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