On 07/19/2011 11:10 AM, Sasha Levin wrote:
This patch changes coalesced mmio to create one mmio device per zone instead of handling all zones in one device. Doing so enables us to take advantage of existing locking and prevents a race condition between coalesced mmio registration/unregistration and lookups. #include "coalesced_mmio.h" +static spinlock_t lock; +static LIST_HEAD(head);
Make these per-guest instead of global. The lock may be contended, and the list shouldn't hold items from different guests (why is it needed, anyway?)
The coalesced mmio devices will now contend with other io devices for NR_IOBUS_DEVS, so need to increase that (by KVM_COALESCED_MMIO_ZONE_MAX).
-- 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