Re: [PATCH RFC] virtio-pci: add MMIO property

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


On Mon, Mar 19, 2012 at 07:58:12PM +0200, Avi Kivity wrote:
> On 03/19/2012 05:56 PM, Michael S. Tsirkin wrote:
> > Currently virtio-pci is specified so that configuration of the device is
> > done through a PCI IO space (via BAR 0 of the virtual PCI device).
> > However, Linux guests happen to use ioread/iowrite/iomap primitives
> > for access, and these work uniformly across memory/io BARs.
> >
> > While PCI IO accesses are faster than MMIO on x86 kvm,
> > MMIO might be helpful on other systems which don't
> > implement PIO or where PIO is slower than MMIO.
> >
> > Add a property to make it possible to tweak the BAR type.
> >
> > Signed-off-by: Michael S. Tsirkin <mst@xxxxxxxxxx>
> >
> > This is harmless by default but causes segfaults in memory.c
> > when enabled. Thus an RFC until I figure out what's wrong.
> >
> 
> Should be done via an extra BAR (with the same layout, perhaps extended)
> so compatibility is preserved.

No, that would need guest changes to be of use.  The point of this hack
is to make things work for Linux guests where PIO does not work.

> -- 
> error compiling committee.c: too many arguments to function
_______________________________________________
Virtualization mailing list
Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/virtualization


[KVM Development]     [Libvirt Development]     [Libvirt Users]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Find Someone Nice]     [Video 4 Linux]     [Linux Resources]
Add to Google Powered by Linux