Re: [PATCH v2 6/8] kvm tools: Add rwlock wrapper

2011-06-04 Thread Sasha Levin
On Fri, 2011-06-03 at 16:05 -0700, Paul E. McKenney wrote: On Sat, Jun 04, 2011 at 01:54:45AM +0300, Sasha Levin wrote: On Fri, 2011-06-03 at 14:20 -0700, Paul E. McKenney wrote: On Sat, Jun 04, 2011 at 12:03:59AM +0300, Sasha Levin wrote: On Fri, 2011-06-03 at 13:22 -0700, Paul E.

Re: [Qemu-devel] [RFC]QEMU disk I/O limits

2011-06-04 Thread Blue Swirl
On Wed, Jun 1, 2011 at 2:30 AM, Anthony Liguori anth...@codemonkey.ws wrote: On 05/31/2011 02:24 PM, Vivek Goyal wrote: On Tue, May 31, 2011 at 01:39:47PM -0500, Anthony Liguori wrote: On 05/31/2011 12:59 PM, Vivek Goyal wrote: Ok, so we seem to be talking of two requirements. - A

Re: [RFC][PATCH] Fix superpage unmap on Intel IOMMU

2011-06-04 Thread David Woodhouse
On Fri, 3 Jun 2011, Alex Williamson wrote: On Fri, 2011-06-03 at 20:31 +0100, David Woodhouse wrote: Tell me it isn't so... Looks accurate to me, in fact, with hugetlbfs it seems like it's doing exactly what it should do. The non-hugetlbfs case isn't efficient, but it isn't wrong either.

Re: [PATCH] kvm tools: Add MMIO coalescing support

2011-06-04 Thread Ingo Molnar
* Sasha Levin levinsasha...@gmail.com wrote: Coalescing MMIO allows us to avoid an exit every time we have a MMIO write, instead - MMIO writes are coalesced in a ring which can be flushed once an exit for a different reason is needed. A MMIO exit is also trigged once the ring is full.

Re: [PATCH] kvm tools, ui: Optimize SDL updates

2011-06-04 Thread Ingo Molnar
* Pekka Enberg penb...@kernel.org wrote: This patch optimizes SDL updates by keeping track of which parts of the guest screen have been written since last update and calling SDL_BlitSurface() and SDL_UpdateRect() for only changed parts of the screen. Cc: Cyrill Gorcunov gorcu...@gmail.com

Re: [PATCH] kvm tools: Add MMIO coalescing support

2011-06-04 Thread Sasha Levin
On Sat, 2011-06-04 at 11:38 +0200, Ingo Molnar wrote: * Sasha Levin levinsasha...@gmail.com wrote: Coalescing MMIO allows us to avoid an exit every time we have a MMIO write, instead - MMIO writes are coalesced in a ring which can be flushed once an exit for a different reason is needed.

Re: [PATCH] kvm tools: Add MMIO coalescing support

2011-06-04 Thread Ingo Molnar
* Sasha Levin levinsasha...@gmail.com wrote: On Sat, 2011-06-04 at 11:38 +0200, Ingo Molnar wrote: * Sasha Levin levinsasha...@gmail.com wrote: Coalescing MMIO allows us to avoid an exit every time we have a MMIO write, instead - MMIO writes are coalesced in a ring which can be

Re: [PATCH] kvm tools, ui: Optimize SDL updates

2011-06-04 Thread Alexander Graf
On 04.06.2011, at 11:54, Ingo Molnar wrote: * Pekka Enberg penb...@kernel.org wrote: This patch optimizes SDL updates by keeping track of which parts of the guest screen have been written since last update and calling SDL_BlitSurface() and SDL_UpdateRect() for only changed parts of the

Re: [PATCH] kvm tools: Add MMIO coalescing support

2011-06-04 Thread Sasha Levin
On Sat, 2011-06-04 at 12:17 +0200, Ingo Molnar wrote: * Sasha Levin levinsasha...@gmail.com wrote: On Sat, 2011-06-04 at 11:38 +0200, Ingo Molnar wrote: * Sasha Levin levinsasha...@gmail.com wrote: Coalescing MMIO allows us to avoid an exit every time we have a MMIO write,

Re: [PATCH] kvm tools: Add MMIO coalescing support

2011-06-04 Thread Ingo Molnar
* Sasha Levin levinsasha...@gmail.com wrote: On Sat, 2011-06-04 at 12:17 +0200, Ingo Molnar wrote: * Sasha Levin levinsasha...@gmail.com wrote: On Sat, 2011-06-04 at 11:38 +0200, Ingo Molnar wrote: * Sasha Levin levinsasha...@gmail.com wrote: Coalescing MMIO allows us to

Re: [PATCH] kvm tools: Add MMIO coalescing support

2011-06-04 Thread Alexander Graf
On 04.06.2011, at 12:35, Ingo Molnar wrote: * Sasha Levin levinsasha...@gmail.com wrote: On Sat, 2011-06-04 at 12:17 +0200, Ingo Molnar wrote: * Sasha Levin levinsasha...@gmail.com wrote: On Sat, 2011-06-04 at 11:38 +0200, Ingo Molnar wrote: * Sasha Levin levinsasha...@gmail.com

Re: [PATCH] kvm tools, ui: Optimize SDL updates

2011-06-04 Thread Ingo Molnar
* Alexander Graf ag...@suse.de wrote: I wrote up 2 virtio-fb implementations a while back and I still believe it's a bad idea. Better implement QXL in kvm-tool, so work doesn't get needlessly duplicated. If you really have to use virtio for whatever reason (no PCI available), just write a

Re: [PATCH] kvm tools, ui: Optimize SDL updates

2011-06-04 Thread Alexander Graf
On 04.06.2011, at 12:42, Ingo Molnar wrote: * Alexander Graf ag...@suse.de wrote: I wrote up 2 virtio-fb implementations a while back and I still believe it's a bad idea. Better implement QXL in kvm-tool, so work doesn't get needlessly duplicated. If you really have to use virtio for

Re: [PATCH] kvm tools: Add MMIO coalescing support

2011-06-04 Thread Ingo Molnar
* Alexander Graf ag...@suse.de wrote: On 04.06.2011, at 12:35, Ingo Molnar wrote: * Sasha Levin levinsasha...@gmail.com wrote: On Sat, 2011-06-04 at 12:17 +0200, Ingo Molnar wrote: * Sasha Levin levinsasha...@gmail.com wrote: On Sat, 2011-06-04 at 11:38 +0200, Ingo Molnar

Re: [PATCH] kvm tools, ui: Optimize SDL updates

2011-06-04 Thread Ingo Molnar
* Alexander Graf ag...@suse.de wrote: On 04.06.2011, at 12:42, Ingo Molnar wrote: * Alexander Graf ag...@suse.de wrote: I wrote up 2 virtio-fb implementations a while back and I still believe it's a bad idea. Better implement QXL in kvm-tool, so work doesn't get needlessly

Re: [PATCH] kvm tools: Add MMIO coalescing support

2011-06-04 Thread Alexander Graf
On 04.06.2011, at 12:47, Ingo Molnar wrote: * Alexander Graf ag...@suse.de wrote: On 04.06.2011, at 12:35, Ingo Molnar wrote: * Sasha Levin levinsasha...@gmail.com wrote: On Sat, 2011-06-04 at 12:17 +0200, Ingo Molnar wrote: * Sasha Levin levinsasha...@gmail.com wrote: On

Re: [PATCH] kvm tools, ui: Optimize SDL updates

2011-06-04 Thread Alexander Graf
On 04.06.2011, at 12:54, Ingo Molnar wrote: * Alexander Graf ag...@suse.de wrote: On 04.06.2011, at 12:42, Ingo Molnar wrote: * Alexander Graf ag...@suse.de wrote: I wrote up 2 virtio-fb implementations a while back and I still believe it's a bad idea. Better implement QXL in

Re: [PATCH] kvm tools: Add MMIO coalescing support

2011-06-04 Thread Ingo Molnar
* Alexander Graf ag...@suse.de wrote: So? I only inquired about latencies, asking what impact on latencies is. Regardless of the circumstances we do not want to introduce unbound latencies. If there are no unbound latencies then i'm happy. Sure, I'm just saying that the mechanism

Re: [PATCH] kvm tools: Add MMIO coalescing support

2011-06-04 Thread Alexander Graf
On 04.06.2011, at 13:27, Ingo Molnar wrote: * Alexander Graf ag...@suse.de wrote: So? I only inquired about latencies, asking what impact on latencies is. Regardless of the circumstances we do not want to introduce unbound latencies. If there are no unbound latencies then i'm happy.

Re: [PATCH] kvm tools, ui: Optimize SDL updates

2011-06-04 Thread Ingo Molnar
* Alexander Graf ag...@suse.de wrote: Why would you need panning/scrolling for a fast FB? It's really an optimization that helps a lot with VNC, but on local machines or SDL you shouldn't see a major difference. Qemu's fb console scrolling graphics is pretty slow to me even locally so i

Re: [PATCH] kvm tools, ui: Optimize SDL updates

2011-06-04 Thread Alexander Graf
On 04.06.2011, at 13:53, Ingo Molnar wrote: * Alexander Graf ag...@suse.de wrote: Why would you need panning/scrolling for a fast FB? It's really an optimization that helps a lot with VNC, but on local machines or SDL you shouldn't see a major difference. Qemu's fb console scrolling

Re: [PATCH] kvm tools, ui: Optimize SDL updates

2011-06-04 Thread Sasha Levin
On Sat, 2011-06-04 at 13:53 +0200, Ingo Molnar wrote: * Alexander Graf ag...@suse.de wrote: Why would you need panning/scrolling for a fast FB? It's really an optimization that helps a lot with VNC, but on local machines or SDL you shouldn't see a major difference. Qemu's fb console

Re: [PATCH] kvm tools, ui: Optimize SDL updates

2011-06-04 Thread Alexander Graf
On 04.06.2011, at 14:04, Sasha Levin wrote: On Sat, 2011-06-04 at 13:53 +0200, Ingo Molnar wrote: * Alexander Graf ag...@suse.de wrote: Why would you need panning/scrolling for a fast FB? It's really an optimization that helps a lot with VNC, but on local machines or SDL you shouldn't

Re: [Android-virt] [PATCH v3 1/8] ARM: KVM: Initial skeleton to compile KVM support

2011-06-04 Thread Alexander Graf
On 03.06.2011, at 17:53, Jan Kiszka wrote: On 2011-06-03 17:31, Jan Kiszka wrote: On 2011-06-03 17:03, Christoffer Dall wrote: Targets KVM support for Cortex A-15 processors. Contains no real functionality but all the framework components, make files, header files and some tracing

Re: [PATCH] kvm tools, ui: Optimize SDL updates

2011-06-04 Thread Sasha Levin
On Sat, 2011-06-04 at 15:48 +0200, Alexander Graf wrote: On 04.06.2011, at 14:04, Sasha Levin wrote: On Sat, 2011-06-04 at 13:53 +0200, Ingo Molnar wrote: * Alexander Graf ag...@suse.de wrote: Why would you need panning/scrolling for a fast FB? It's really an optimization that helps

Re: [PATCH] kvm tools: Add MMIO coalescing support

2011-06-04 Thread Ingo Molnar
* Alexander Graf ag...@suse.de wrote: So the simple rule is: don't register a coalesced MMIO region for a region where latency matters. [...] So my first suspicion is confirmed. A quick look at Qemu sources shows that lots of drivers are using coalesced_mmio without being aware of the

Re: [PATCH] kvm tools, ui: Optimize SDL updates

2011-06-04 Thread Alexander Graf
On 04.06.2011, at 16:19, Sasha Levin wrote: On Sat, 2011-06-04 at 15:48 +0200, Alexander Graf wrote: On 04.06.2011, at 14:04, Sasha Levin wrote: On Sat, 2011-06-04 at 13:53 +0200, Ingo Molnar wrote: * Alexander Graf ag...@suse.de wrote: Why would you need panning/scrolling for a fast

Re: [PATCH] kvm tools: Add MMIO coalescing support

2011-06-04 Thread Alexander Graf
On 04.06.2011, at 16:46, Ingo Molnar wrote: * Alexander Graf ag...@suse.de wrote: So the simple rule is: don't register a coalesced MMIO region for a region where latency matters. [...] So my first suspicion is confirmed. A quick look at Qemu sources shows that lots of drivers are

Re: [PATCH] kvm tools, ui: Optimize SDL updates

2011-06-04 Thread Sasha Levin
On Sat, 2011-06-04 at 17:21 +0200, Alexander Graf wrote: On 04.06.2011, at 16:19, Sasha Levin wrote: On Sat, 2011-06-04 at 15:48 +0200, Alexander Graf wrote: On 04.06.2011, at 14:04, Sasha Levin wrote: On Sat, 2011-06-04 at 13:53 +0200, Ingo Molnar wrote: * Alexander Graf

Re: [PATCH] kvm tools, ui: Optimize SDL updates

2011-06-04 Thread Alexander Graf
On 04.06.2011, at 17:34, Sasha Levin wrote: On Sat, 2011-06-04 at 17:21 +0200, Alexander Graf wrote: On 04.06.2011, at 16:19, Sasha Levin wrote: On Sat, 2011-06-04 at 15:48 +0200, Alexander Graf wrote: On 04.06.2011, at 14:04, Sasha Levin wrote: On Sat, 2011-06-04 at 13:53 +0200, Ingo

[PATCH 8/8] arch/x86: use printk_ratelimited instead of printk_ratelimit

2011-06-04 Thread Christian Dietrich
Since printk_ratelimit() shouldn't be used anymore (see comment in include/linux/printk.h), replace it with printk_ratelimited. Signed-off-by: Christian Dietrich christian.dietr...@informatik.uni-erlangen.de --- arch/x86/kernel/hpet.c |6 +++--- arch/x86/kernel/irq.c |9 -

Re: [PATCH v2 6/8] kvm tools: Add rwlock wrapper

2011-06-04 Thread Paul E. McKenney
On Sat, Jun 04, 2011 at 09:26:15AM +0300, Sasha Levin wrote: On Fri, 2011-06-03 at 16:05 -0700, Paul E. McKenney wrote: On Sat, Jun 04, 2011 at 01:54:45AM +0300, Sasha Levin wrote: On Fri, 2011-06-03 at 14:20 -0700, Paul E. McKenney wrote: On Sat, Jun 04, 2011 at 12:03:59AM +0300, Sasha

Re: [PATCH] kvm tools: Add MMIO coalescing support

2011-06-04 Thread Ingo Molnar
* Alexander Graf ag...@suse.de wrote: On 04.06.2011, at 16:46, Ingo Molnar wrote: * Alexander Graf ag...@suse.de wrote: So the simple rule is: don't register a coalesced MMIO region for a region where latency matters. [...] So my first suspicion is confirmed. A quick

Re: [PATCH] kvm tools, ui: Optimize SDL updates

2011-06-04 Thread Sasha Levin
On Sat, 2011-06-04 at 17:40 +0200, Alexander Graf wrote: On 04.06.2011, at 17:34, Sasha Levin wrote: On Sat, 2011-06-04 at 17:21 +0200, Alexander Graf wrote: On 04.06.2011, at 16:19, Sasha Levin wrote: On Sat, 2011-06-04 at 15:48 +0200, Alexander Graf wrote: On 04.06.2011, at 14:04,

Re: [PATCH] kvm tools: Add MMIO coalescing support

2011-06-04 Thread Sasha Levin
On Sat, 2011-06-04 at 18:34 +0200, Ingo Molnar wrote: * Alexander Graf ag...@suse.de wrote: On 04.06.2011, at 16:46, Ingo Molnar wrote: * Alexander Graf ag...@suse.de wrote: So the simple rule is: don't register a coalesced MMIO region for a region where latency

IRQ issue on graphics card passthrough

2011-06-04 Thread André Weidemann
Hi, as mentioned before I have successfully passed a graphics card from a Linux host to VM using qemu-kvm. Shortly after starting the VM and before Windows7 initializes the graphics card, info pci looks like this: Bus 0, device 4, function 0: VGA controller: PCI device 1002:6719