Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Benjamin Herrenschmidt
On Thu, 2012-01-12 at 08:51 +0200, Michael S. Tsirkin wrote: > One othe rinteresting thing is that > in practice host often runs on the same CPU as guest. That's surprising. On Power with our huge exit cost, I would think that would hurt more than anything else. > This is the fastest way to run

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Michael S. Tsirkin
On Thu, Jan 12, 2012 at 05:28:34PM +1100, Benjamin Herrenschmidt wrote: > On Thu, 2012-01-12 at 08:09 +0200, Michael S. Tsirkin wrote: > > On Thu, Jan 12, 2012 at 03:31:59PM +1100, Benjamin Herrenschmidt wrote: > > > However I can see at least one advantage of what you've done :-) You > > > never h

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Michael S. Tsirkin
On Thu, Jan 12, 2012 at 05:13:42PM +1100, Benjamin Herrenschmidt wrote: > On Thu, 2012-01-12 at 07:29 +0200, Michael S. Tsirkin wrote: > > On Thu, Jan 12, 2012 at 09:56:39AM +1100, Benjamin Herrenschmidt wrote: > > > I'd suggest doing a simple user space app that creates such a ring, > > > forks, a

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Benjamin Herrenschmidt
On Thu, 2012-01-12 at 08:09 +0200, Michael S. Tsirkin wrote: > On Thu, Jan 12, 2012 at 03:31:59PM +1100, Benjamin Herrenschmidt wrote: > > However I can see at least one advantage of what you've done :-) You > > never have to deal with holes in the ring. > > Another advantage is the design goal fo

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Benjamin Herrenschmidt
On Thu, 2012-01-12 at 07:29 +0200, Michael S. Tsirkin wrote: > On Thu, Jan 12, 2012 at 09:56:39AM +1100, Benjamin Herrenschmidt wrote: > > I'd suggest doing a simple user space app that creates such a ring, > > forks, and produce / consume. We can then run that through perf and > > analyze the cach

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Michael S. Tsirkin
On Thu, Jan 12, 2012 at 03:31:59PM +1100, Benjamin Herrenschmidt wrote: > However I can see at least one advantage of what you've done :-) You > never have to deal with holes in the ring. Another advantage is the design goal for that ring: host never needs to copy even if it completes descriptors

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Michael S. Tsirkin
On Thu, Jan 12, 2012 at 12:31:09PM +1030, Rusty Russell wrote: > On Wed, 11 Jan 2012 12:21:30 +0200, "Michael S. Tsirkin" > wrote: > > On Wed, Jan 11, 2012 at 10:55:52AM +1030, Rusty Russell wrote: > > > On Tue, 10 Jan 2012 19:03:36 +0200, "Michael S. Tsirkin" > > > wrote: > > > > On Wed, Dec 2

[PATCH] vhost-net: add module alias (v2.1)

2012-01-11 Thread Stephen Hemminger
Subject: vhost-net: add module alias (v2.1) By adding some module aliases, programs (or users) won't have to explicitly call modprobe. Vhost-net will always be available if built into the kernel. It does require assigning a permanent minor number for depmod to work. Also: - use C99 style initia

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Michael S. Tsirkin
On Thu, Jan 12, 2012 at 09:56:39AM +1100, Benjamin Herrenschmidt wrote: > I'd suggest doing a simple user space app that creates such a ring, > forks, and produce / consume. We can then run that through perf and > analyze the cache behaviour, maximum throughput, etc > > Cheers, > Ben. Sure. Y

[PULL] virtio and lguest

2012-01-11 Thread Rusty Russell
(I called the tag to-linus. I think it worked). To g...@github.com:rustyrussell/linux.git + 3ed0016...b6c96c0 master -> master (forced update) + 815645d...f8e8df5 to-linus -> to-linus (forced update) + git request-pull remotes/origin/master git://github.com/rustyrussell/linux.git The following

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Benjamin Herrenschmidt
On Thu, 2012-01-12 at 12:31 +1030, Rusty Russell wrote: > > Are we going to keep guest endian for e.g. virtio net header? > > If yes the benefit of switching config space is not that big. > > And changes in devices would affect non-PCI transports. > > Yep. It would only make sense if we do it fo

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Rusty Russell
On Wed, 11 Jan 2012 12:21:30 +0200, "Michael S. Tsirkin" wrote: > On Wed, Jan 11, 2012 at 10:55:52AM +1030, Rusty Russell wrote: > > On Tue, 10 Jan 2012 19:03:36 +0200, "Michael S. Tsirkin" > > wrote: > > > On Wed, Dec 21, 2011 at 11:03:25AM +1030, Rusty Russell wrote: > > > > Yes. The idea th

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Rusty Russell
On Wed, 11 Jan 2012 07:30:34 -0600, Anthony Liguori wrote: > I think the more important thing to do is require accesses to integers in the > config space to always be aligned and to use the appropriate accessor. > Non-integer fields should be restricted to byte access. > > That limits config s

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Rusty Russell
On Thu, 12 Jan 2012 00:02:33 +0200, "Michael S. Tsirkin" wrote: > Look, we have a race currently. Let us not tie a bug fix to a huge > rewrite with unclear performance benefits, please. In theory, yes. In practice, we bandaid it. I think in the short term we change ->get to get the entire sequ

Re: [PATCH] vhost-net: add module alias (v2)

2012-01-11 Thread Zhi Yong Wu
On Thu, Jan 12, 2012 at 1:16 AM, Stephen Hemminger wrote: > By adding the correct module alias, programs won't have to explicitly > call modprobe. Vhost-net will always be available if built into the kernel. > It does require assigning a permanent minor number for depmod to work. > Choose one next

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Benjamin Herrenschmidt
On Thu, 2012-01-12 at 00:13 +0200, Michael S. Tsirkin wrote: > > Well, I would argue that the network driver world has proven countless > > times that those are good ideas :-) > > Below you seem to suggest that separate rings like > virtio has now is better than a single ring like Rusty > suggest

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Benjamin Herrenschmidt
On Thu, 2012-01-12 at 00:13 +0200, Michael S. Tsirkin wrote: > > We typically pre-populate the data rings with skb's for 1500 and 9000 > > bytes packets. Small packets come in immediately in the completion ring, > > and large packets via the data ring. > > Won't real workloads suffer from packet

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Benjamin Herrenschmidt
On Thu, 2012-01-12 at 00:02 +0200, Michael S. Tsirkin wrote: > > We could probably have a helper library for sending control messages > > which could handle waiting for a ring slot to be free (practically > > always the case on control queues), writing the message, sending it > and > > waiting for

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Michael S. Tsirkin
On Thu, Jan 12, 2012 at 08:13:42AM +1100, Benjamin Herrenschmidt wrote: > On Wed, 2012-01-11 at 12:21 +0200, Michael S. Tsirkin wrote: > > > > > BenH also convinced me we should finally make the config space LE if > > > we're going to change things. Since PCI is the most common transport, > > > g

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Michael S. Tsirkin
On Thu, Jan 12, 2012 at 08:02:06AM +1100, Benjamin Herrenschmidt wrote: > On Wed, 2012-01-11 at 14:26 -0600, Anthony Liguori wrote: > > > > I'd say that's a special case but I see what you're getting at here. > > > > So what about keeping the config space read-only and using control > > queues fo

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Michael S. Tsirkin
On Wed, Jan 11, 2012 at 02:26:55PM -0600, Anthony Liguori wrote: > On 01/11/2012 02:14 PM, Michael S. Tsirkin wrote: > >On Wed, Jan 11, 2012 at 01:42:39PM -0600, Anthony Liguori wrote: > >>On 01/11/2012 11:08 AM, Michael S. Tsirkin wrote: > >>> > >>>Not sure what you mean. Using VQ is DMA which is

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Benjamin Herrenschmidt
On Wed, 2012-01-11 at 12:21 +0200, Michael S. Tsirkin wrote: > > > BenH also convinced me we should finally make the config space LE if > > we're going to change things. Since PCI is the most common transport, > > guest-endian confuses people. And it sucks for really weird machines. > > Are we

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Benjamin Herrenschmidt
On Wed, 2012-01-11 at 14:26 -0600, Anthony Liguori wrote: > > I'd say that's a special case but I see what you're getting at here. > > So what about keeping the config space read-only and using control > queues for > everything else? Which is exactly what Rusty and I are proposing :-) I would g

Re: [PATCH] vhost-net: add module alias (v2)

2012-01-11 Thread Ben Hutchings
On Wed, 2012-01-11 at 09:16 -0800, Stephen Hemminger wrote: > By adding the correct module alias, programs won't have to explicitly > call modprobe. Vhost-net will always be available if built into the kernel. > It does require assigning a permanent minor number for depmod to work. > Choose one nex

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Benjamin Herrenschmidt
On Wed, 2012-01-11 at 13:42 -0600, Anthony Liguori wrote: > On 01/11/2012 11:08 AM, Michael S. Tsirkin wrote: > > > > Not sure what you mean. Using VQ is DMA which is pretty common for PCI. > > Do you know of a network device that obtains it's mac address via a DMA > transaction? I wouldn't be s

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Benjamin Herrenschmidt
On Wed, 2012-01-11 at 17:21 +, Stefan Hajnoczi wrote: > > It won't be hard to show siginificant performance regression if > > we do this. Hard to justify for something as niche as nested virt. > > For x86 this should be mostly a nop. No it won't be. Or rather, it will be as long as you map yo

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Benjamin Herrenschmidt
On Wed, 2012-01-11 at 17:21 +0200, Michael S. Tsirkin wrote: > > Possible but doesn't let us layer nicely to allow unchanged drivers > that work with all transports (new pci, old pci, non pci). > Something like a command VQ would be a generic transport > that can be hidden behind config->set(...)

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Benjamin Herrenschmidt
On Wed, 2012-01-11 at 17:12 +0200, Michael S. Tsirkin wrote: > This is similar to what we have now. But it's still buggy: e.g. if guest > updates MAC byte by byte, we have no way to know when it's done doing > so. Do like real HW, there's plenty of options: - (better) Have a command "update MA

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Benjamin Herrenschmidt
On Wed, 2012-01-11 at 14:28 +, Stefan Hajnoczi wrote: > On Wed, Jan 11, 2012 at 9:10 AM, Benjamin Herrenschmidt > wrote: > > On Wed, 2012-01-11 at 08:47 +, Stefan Hajnoczi wrote: > >> > >> This is also an opportunity to stop using CPU physical addresses in > >> the ring and instead perform

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Anthony Liguori
On 01/11/2012 02:14 PM, Michael S. Tsirkin wrote: On Wed, Jan 11, 2012 at 01:42:39PM -0600, Anthony Liguori wrote: On 01/11/2012 11:08 AM, Michael S. Tsirkin wrote: Not sure what you mean. Using VQ is DMA which is pretty common for PCI. Do you know of a network device that obtains it's mac a

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Michael S. Tsirkin
On Wed, Jan 11, 2012 at 01:42:39PM -0600, Anthony Liguori wrote: > On 01/11/2012 11:08 AM, Michael S. Tsirkin wrote: > > > >Not sure what you mean. Using VQ is DMA which is pretty common for PCI. > > Do you know of a network device that obtains it's mac address via a DMA > transaction? Sure. See

Re: [PATCH] vhost-net: add module alias

2012-01-11 Thread Michael S. Tsirkin
On Wed, Jan 11, 2012 at 08:54:26AM -0800, Stephen Hemminger wrote: > On Wed, 11 Jan 2012 15:43:42 +0800 > Amos Kong wrote: > > > On Wed, Jan 11, 2012 at 12:54 PM, Stephen Hemminger > > wrote: > > > > > By adding the a module alias, programs (or users) won't have to explicitly > > > call modprobe

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Anthony Liguori
On 01/11/2012 11:08 AM, Michael S. Tsirkin wrote: Not sure what you mean. Using VQ is DMA which is pretty common for PCI. Do you know of a network device that obtains it's mac address via a DMA transaction? Regards, Anthony Liguori ___ Virt

Re: [PATCH] vhost-net: add module alias (v2)

2012-01-11 Thread Michael S. Tsirkin
On Wed, Jan 11, 2012 at 09:16:53AM -0800, Stephen Hemminger wrote: > By adding the correct module alias, programs won't have to explicitly > call modprobe. Vhost-net will always be available if built into the kernel. > It does require assigning a permanent minor number for depmod to work. > Choose

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Michael S. Tsirkin
On Wed, Jan 11, 2012 at 05:21:53PM +, Stefan Hajnoczi wrote: > On Wed, Jan 11, 2012 at 3:39 PM, Michael S. Tsirkin wrote: > > On Wed, Jan 11, 2012 at 02:28:48PM +, Stefan Hajnoczi wrote: > >> On Wed, Jan 11, 2012 at 9:10 AM, Benjamin Herrenschmidt > >> wrote: > >> > On Wed, 2012-01-11 at

Re: [PATCH 4/4] xen kconfig: describe xen tmem in the config menu

2012-01-11 Thread Konrad Rzeszutek Wilk
On Wed, Jan 11, 2012 at 05:36:41PM +0100, Andrew Jones wrote: > Add a description to the config menu for xen tmem. We will have another config option asked during 'make oldconfig' right? I thought part of this cleanup patch is to remove some of this complexity - not make it _more_ complex. > >

Re: [PATCH 2/4 v2] xen kconfig: relax INPUT_XEN_KBDDEV_FRONTEND deps

2012-01-11 Thread Konrad Rzeszutek Wilk
On Wed, Jan 11, 2012 at 05:36:39PM +0100, Andrew Jones wrote: > PV-on-HVM guests may want to use the xen keyboard/mouse frontend, but > they don't use the xen frame buffer frontend. For this case it doesn't > make much sense for INPUT_XEN_KBDDEV_FRONTEND to depend on > XEN_FBDEV_FRONTEND. The oppos

Re: [PATCH 1/4] xen kconfig: keep XEN_XENBUS_FRONTEND builtin

2012-01-11 Thread Konrad Rzeszutek Wilk
On Wed, Jan 11, 2012 at 05:36:38PM +0100, Andrew Jones wrote: > When XEN_XENBUS_FRONTEND gets selected as a module it can lead to > unbootable configs. If we need it, then we should just build it in. Hm, don't the frontends by themsevles load this module? So if you do 'modprobe xen-pcifront' it wo

Re: [Xen-devel] [PATCH] xen: remove CONFIG_XEN_DOM0 compile option

2012-01-11 Thread Konrad Rzeszutek Wilk
On Wed, Jan 11, 2012 at 12:19:11PM -0400, Konrad Rzeszutek Wilk wrote: > > > If the root complaint is that "customers think that anything set in > > > .config is a supported feature", then the solutions are to support > > > all > > > the features in .config, re-educate the customers that they're wr

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Stefan Hajnoczi
On Wed, Jan 11, 2012 at 3:39 PM, Michael S. Tsirkin wrote: > On Wed, Jan 11, 2012 at 02:28:48PM +, Stefan Hajnoczi wrote: >> On Wed, Jan 11, 2012 at 9:10 AM, Benjamin Herrenschmidt >> wrote: >> > On Wed, 2012-01-11 at 08:47 +, Stefan Hajnoczi wrote: >> >> >> >> This is also an opportunity

[PATCH] vhost-net: add module alias (v2)

2012-01-11 Thread Stephen Hemminger
By adding the correct module alias, programs won't have to explicitly call modprobe. Vhost-net will always be available if built into the kernel. It does require assigning a permanent minor number for depmod to work. Choose one next to TUN since this driver is related to it. Also, use C99 style in

Re: [PATCH] vhost-net: add module alias

2012-01-11 Thread Kay Sievers
On Wed, Jan 11, 2012 at 17:58, Stephen Hemminger wrote: > On Wed, 11 Jan 2012 11:07:47 +0400 > Michael Tokarev wrote: > >> On 11.01.2012 08:54, Stephen Hemminger wrote: >> > By adding the a module alias, programs (or users) won't have to explicitly >> > call modprobe. Vhost-net will always be ava

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Michael S. Tsirkin
On Wed, Jan 11, 2012 at 10:02:51AM -0600, Anthony Liguori wrote: > On 01/11/2012 09:45 AM, Michael S. Tsirkin wrote: > >On Wed, Jan 11, 2012 at 09:28:27AM -0600, Anthony Liguori wrote: > >>On 01/11/2012 09:21 AM, Michael S. Tsirkin wrote: > >>>On Wed, Jan 11, 2012 at 09:15:49AM -0600, Anthony Liguo

Re: [PATCH] vhost-net: add module alias

2012-01-11 Thread Stephen Hemminger
On Wed, 11 Jan 2012 11:07:47 +0400 Michael Tokarev wrote: > On 11.01.2012 08:54, Stephen Hemminger wrote: > > By adding the a module alias, programs (or users) won't have to explicitly > > call modprobe. Vhost-net will always be available if built into the kernel. > > It does require assigning a

Re: [PATCH] vhost-net: add module alias

2012-01-11 Thread Stephen Hemminger
On Wed, 11 Jan 2012 15:43:42 +0800 Amos Kong wrote: > On Wed, Jan 11, 2012 at 12:54 PM, Stephen Hemminger > wrote: > > > By adding the a module alias, programs (or users) won't have to explicitly > > call modprobe. Vhost-net will always be available if built into the kernel. > > It does require

[PATCH 4/4] xen kconfig: describe xen tmem in the config menu

2012-01-11 Thread Andrew Jones
Add a description to the config menu for xen tmem. Signed-off-by: Andrew Jones --- drivers/xen/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/xen/Kconfig b/drivers/xen/Kconfig index 1d24061..7e8d728 100644 --- a/drivers/xen/Kconfig +++ b/drivers/xen/Kco

[PATCH 3/4 v2] xen kconfig: add dom0 support help text

2012-01-11 Thread Andrew Jones
Describe dom0 support in the config menu and supply help text for it. v2 adds 'if EXPERT' to keep it out of the "standard" menu. Signed-off-by: Andrew Jones --- arch/x86/xen/Kconfig |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/arch/x86/xen/Kconfig b/arch/x86/xe

[PATCH 2/4 v2] xen kconfig: relax INPUT_XEN_KBDDEV_FRONTEND deps

2012-01-11 Thread Andrew Jones
PV-on-HVM guests may want to use the xen keyboard/mouse frontend, but they don't use the xen frame buffer frontend. For this case it doesn't make much sense for INPUT_XEN_KBDDEV_FRONTEND to depend on XEN_FBDEV_FRONTEND. The opposite direction always makes more sense, i.e. if you're using xenfb, the

[PATCH 1/4] xen kconfig: keep XEN_XENBUS_FRONTEND builtin

2012-01-11 Thread Andrew Jones
When XEN_XENBUS_FRONTEND gets selected as a module it can lead to unbootable configs. If we need it, then we should just build it in. Signed-off-by: Andrew Jones --- drivers/xen/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/xen/Kconfig b/drivers/xen/Kc

Re: [Xen-devel] [PATCH 2/4 v2] xen kconfig: relax INPUT_XEN_KBDDEV_FRONTEND deps

2012-01-11 Thread Andrew Jones
- Original Message - > On Mon, Jan 09, 2012 at 06:51:41PM +0100, Andrew Jones wrote: > > PV-on-HVM guests may want to use the xen keyboard/mouse frontend, > > but > > they don't use the xen frame buffer frontend. For this case it > > doesn't > > Ok, but PV does? > > make much sense for I

Re: [Xen-devel] [PATCH] xen: remove CONFIG_XEN_DOM0 compile option

2012-01-11 Thread Konrad Rzeszutek Wilk
> > If the root complaint is that "customers think that anything set in > > .config is a supported feature", then the solutions are to support > > all > > the features in .config, re-educate the customers that they're wrong, > > or > > maintain a local patch to do this stuff. > > If only re-educat

Re: [Xen-devel] [PATCH 2/4 v2] xen kconfig: relax INPUT_XEN_KBDDEV_FRONTEND deps

2012-01-11 Thread Konrad Rzeszutek Wilk
On Mon, Jan 09, 2012 at 06:51:41PM +0100, Andrew Jones wrote: > PV-on-HVM guests may want to use the xen keyboard/mouse frontend, but > they don't use the xen frame buffer frontend. For this case it doesn't Ok, but PV does? > make much sense for INPUT_XEN_KBDDEV_FRONTEND to depend on > XEN_FBDEV_F

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Anthony Liguori
On 01/11/2012 09:45 AM, Michael S. Tsirkin wrote: On Wed, Jan 11, 2012 at 09:28:27AM -0600, Anthony Liguori wrote: On 01/11/2012 09:21 AM, Michael S. Tsirkin wrote: On Wed, Jan 11, 2012 at 09:15:49AM -0600, Anthony Liguori wrote: This is similar to what we have now. But it's still buggy: e.g.

Re: [Xen-devel] [PATCH 3/4 v2] xen kconfig: add dom0 support help text

2012-01-11 Thread Andrew Jones
- Original Message - > Describe dom0 support in the config menu and supply help text for it. > > v2 adds 'if EXPERT' to keep it out of the "standard" menu. > > Signed-off-by: Andrew Jones > --- > arch/x86/xen/Kconfig |7 ++- > 1 files changed, 6 insertions(+), 1 deletions(-) >

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Michael S. Tsirkin
On Wed, Jan 11, 2012 at 09:28:27AM -0600, Anthony Liguori wrote: > On 01/11/2012 09:21 AM, Michael S. Tsirkin wrote: > >On Wed, Jan 11, 2012 at 09:15:49AM -0600, Anthony Liguori wrote: > >>>This is similar to what we have now. But it's still buggy: e.g. if guest > >>>updates MAC byte by byte, we ha

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Michael S. Tsirkin
On Wed, Jan 11, 2012 at 02:28:48PM +, Stefan Hajnoczi wrote: > On Wed, Jan 11, 2012 at 9:10 AM, Benjamin Herrenschmidt > wrote: > > On Wed, 2012-01-11 at 08:47 +, Stefan Hajnoczi wrote: > >> > >> This is also an opportunity to stop using CPU physical addresses in > >> the ring and instead

Re: [Xen-devel] [PATCH] xen: remove CONFIG_XEN_DOM0 compile option

2012-01-11 Thread Andrew Jones
- Original Message - > On 01/10/2012 05:44 AM, Stefano Stabellini wrote: > > On Mon, 9 Jan 2012, Andrew Jones wrote: > >> I guess if we did the s/XEN_DOM0/LOCAL_APIC && IO_APIC && ACPI/ in > >> arch/x86/pci/xen.c it would be pretty easy to review for > >> equivalence. > >> Then keep CONFI

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Anthony Liguori
On 01/11/2012 09:21 AM, Michael S. Tsirkin wrote: On Wed, Jan 11, 2012 at 09:15:49AM -0600, Anthony Liguori wrote: This is similar to what we have now. But it's still buggy: e.g. if guest updates MAC byte by byte, we have no way to know when it's done doing so. This is no different than a norm

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Michael S. Tsirkin
On Wed, Jan 11, 2012 at 09:15:49AM -0600, Anthony Liguori wrote: > On 01/11/2012 09:12 AM, Michael S. Tsirkin wrote: > >On Wed, Jan 11, 2012 at 07:30:34AM -0600, Anthony Liguori wrote: > >>On 01/10/2012 06:25 PM, Rusty Russell wrote: > >>>On Tue, 10 Jan 2012 19:03:36 +0200, "Michael S. Tsirkin" >

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Anthony Liguori
On 01/11/2012 09:12 AM, Michael S. Tsirkin wrote: On Wed, Jan 11, 2012 at 07:30:34AM -0600, Anthony Liguori wrote: On 01/10/2012 06:25 PM, Rusty Russell wrote: On Tue, 10 Jan 2012 19:03:36 +0200, "Michael S. Tsirkin" wrote: On Wed, Dec 21, 2011 at 11:03:25AM +1030, Rusty Russell wrote: Yes

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Michael S. Tsirkin
On Wed, Jan 11, 2012 at 07:30:34AM -0600, Anthony Liguori wrote: > On 01/10/2012 06:25 PM, Rusty Russell wrote: > >On Tue, 10 Jan 2012 19:03:36 +0200, "Michael S. Tsirkin" > >wrote: > >>On Wed, Dec 21, 2011 at 11:03:25AM +1030, Rusty Russell wrote: > >>>Yes. The idea that we can alter fields in

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Stefan Hajnoczi
On Wed, Jan 11, 2012 at 9:10 AM, Benjamin Herrenschmidt wrote: > On Wed, 2012-01-11 at 08:47 +, Stefan Hajnoczi wrote: >> >> This is also an opportunity to stop using CPU physical addresses in >> the ring and instead perform DMA like a normal PCI device (use bus >> addresses). > > Euh why ? B

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Anthony Liguori
On 01/10/2012 06:25 PM, Rusty Russell wrote: On Tue, 10 Jan 2012 19:03:36 +0200, "Michael S. Tsirkin" wrote: On Wed, Dec 21, 2011 at 11:03:25AM +1030, Rusty Russell wrote: Yes. The idea that we can alter fields in the device-specific config area is flawed. There may be cases where it doesn'

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Michael S. Tsirkin
On Wed, Jan 11, 2012 at 10:55:52AM +1030, Rusty Russell wrote: > On Tue, 10 Jan 2012 19:03:36 +0200, "Michael S. Tsirkin" > wrote: > > On Wed, Dec 21, 2011 at 11:03:25AM +1030, Rusty Russell wrote: > > > Yes. The idea that we can alter fields in the device-specific config > > > area is flawed.

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Benjamin Herrenschmidt
On Wed, 2012-01-11 at 08:47 +, Stefan Hajnoczi wrote: > > This is also an opportunity to stop using CPU physical addresses in > the ring and instead perform DMA like a normal PCI device (use bus > addresses). Euh why ? That would mean in many cases adding a layer of iommu, which will slow th

Re: [RFC 7/11] virtio_pci: new, capability-aware driver.

2012-01-11 Thread Stefan Hajnoczi
On Wed, Jan 11, 2012 at 12:25 AM, Rusty Russell wrote: > On Tue, 10 Jan 2012 19:03:36 +0200, "Michael S. Tsirkin" > wrote: >> On Wed, Dec 21, 2011 at 11:03:25AM +1030, Rusty Russell wrote: >> > Yes.  The idea that we can alter fields in the device-specific config >> > area is flawed.  There may