On Fri, May 08, 2009 at 04:31:21PM -0600, Alex Williamson wrote:
+#ifdef KVM_CAP_IRQ_ROUTING
We don't need these anymore.
+static inline void set_bit(unsigned int *buf, int bit)
+{
+ buf[bit 5] |= (1U (bit 0x1f));
+}
external () not needed here. bit 5 might be clearer as bit / 32
We're currently using a counter to track the most recent GSI we've
handed out. This quickly hits KVM_MAX_IRQ_ROUTES when using device
assignment with a driver that regularly toggles the MSI enable bit.
This can mean only a few minutes of usable run time. Instead, track
used GSIs in a bitmap.