On Fri, Jul 23, 2010 at 03:47:18PM -0600, Alex Williamson wrote: > When supported by the host kernel, we can use read/write on the > PCI sysfs resource file for I/O port regions. This allows us to > avoid raw in/out commands and works with deprivileged guests via > libvirt. > > Signed-off-by: Alex Williamson <alex.williamson@xxxxxxxxxx> > --- > > Required kernel patch pending here: > http://www.spinics.net/lists/linux-pci/msg09389.html > > v4: Remove commit sentence about uid since we removed the code > in v2. Identical patch to v3. Also note preliminary > agreement to include kerenl patch: > http://www.spinics.net/lists/linux-pci/msg09412.html > > v3: Fixup sysfs errno checking, anything except EINVAL should fall > back to in/out. This covers things like EPERM on the resource > file too. > > v2: Drop getuid() since it doesn't guarantee permissions > Don't use in/out as a fallback since we don't have permissions > Consolidate ioport read/write functions > > hw/device-assignment.c | 201 +++++++++++++++++++++++++++--------------------- > hw/device-assignment.h | 1 > 2 files changed, 116 insertions(+), 86 deletions(-) Applied, thanks. -- 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