Re: [Qemu-devel] [PATCH 2/3] Add fno-strict-overflow

2011-07-07 Thread Raghavendra D Prabhu
* On Tue, Jul 05, 2011 at 09:30:44PM +0100, Stefan Hajnoczi wrote: On Tue, Jul 5, 2011 at 4:36 PM, Raghavendra D Prabhu wrote: * On Mon, Jul 04, 2011 at 11:38:30PM +0100, Peter Maydell wrote: On 4 July 2011 23:00, Raghavendra D Prabhu wrote: This is to avoid gcc optimizating out the c

Re: [PATCH V8 2/4 net-next] skbuff: skb supports zero-copy buffers

2011-07-07 Thread David Miller
From: Shirley Ma Date: Thu, 07 Jul 2011 11:32:25 -0700 > You are right, will fix it. You don't need to, I fixed it when I committed the patch to net-next-2.6 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More majordomo inf

Re: [PATCH V8 2/4 net-next] skbuff: skb supports zero-copy buffers

2011-07-07 Thread Shirley Ma
On Thu, 2011-07-07 at 04:01 -0700, David Miller wrote: > From: Shirley Ma > Date: Wed, 06 Jul 2011 15:22:12 -0700 > > > + while (head) { > > + put_page(head); > > + head = (struct page *)head->private; > > +

Re: [PATCH v5 4/9] KVM-HV: KVM Steal time implementation

2011-07-07 Thread Glauber Costa
On 07/07/2011 07:51 AM, Marcelo Tosatti wrote: On Mon, Jul 04, 2011 at 11:32:23AM -0400, Glauber Costa wrote: To implement steal time, we need the hypervisor to pass the guest information about how much time was spent running other processes outside the VM, while the vcpu had meaningful work to

Re: [Qemu-devel] KVM call agenda for June 28

2011-07-07 Thread Stefan Hajnoczi
On Tue, Jul 5, 2011 at 7:18 PM, Marcelo Tosatti wrote: > On Tue, Jul 05, 2011 at 04:37:08PM +0100, Stefan Hajnoczi wrote: >> On Tue, Jul 5, 2011 at 3:32 PM, Marcelo Tosatti wrote: >> > On Tue, Jul 05, 2011 at 04:39:06PM +0300, Dor Laor wrote: >> >> On 07/05/2011 03:58 PM, Marcelo Tosatti wrote: >

[PATCH 2/3] qemu-x86: Add tsc_freq option to -cpu

2011-07-07 Thread Joerg Roedel
To let the user configure the desired tsc frequency for the guest if running in KVM. Signed-off-by: Joerg Roedel --- target-i386/cpu.h |1 + target-i386/cpuid.c | 13 + 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index

[PATCH 3/3] qemu-x86: Set tsc_khz in kvm when supported

2011-07-07 Thread Joerg Roedel
Make use of the KVM_TSC_CONTROL feature if available. Signed-off-by: Joerg Roedel --- target-i386/kvm.c | 18 +- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 10fb2c4..923d2d5 100644 --- a/target-i386/kvm.c +++ b/tar

[PATCH 0/3][uq/master] Basic TSC-Scaling support v2

2011-07-07 Thread Joerg Roedel
Hi Avi, Marcelo, here is v2 of the patches to support setting the guests tsc-frequency from the qemu command line. This version addresses the comment from Avi on the first version. To reflect that units can be given to the frequency, the parameter was renamed from tsc_khz to tsc_freq. Thanks,

[PATCH 1/3] qemu: Add strtosz_suffix_unit function

2011-07-07 Thread Joerg Roedel
This function does the same as the strtosz_suffix function except that it allows to specify the unit to which the k/M/B/T suffixes apply. This function will be used later to parse the tsc-frequency from the command-line. Signed-off-by: Joerg Roedel --- cutils.c | 16 +++- qemu

Re: [PATCH 2/2] vhost: set log when updating used flags or avail event

2011-07-07 Thread Michael S. Tsirkin
Subject: vhost: used ring logging cleanup remove extra log bit setting for used ring updates: it's no longer necessary. Also, use vhost_avail_event instead of duplicating offset math. Signed-off-by: Michael S. Tsirkin --- > We need set log when updating used flags and avail event. Otherwise gu

Re: [PATCH V8 0/4 net-next] macvtap/vhost TX zero-copy support

2011-07-07 Thread David Miller
From: "Michael S. Tsirkin" Date: Thu, 7 Jul 2011 14:37:15 +0300 > Apply patches 1-3 for now? Done, and I fixed the use-after-free in patch #2. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More majordomo info at http://v

Re: [PATCH V8 0/4 net-next] macvtap/vhost TX zero-copy support

2011-07-07 Thread Michael S. Tsirkin
On Thu, Jul 07, 2011 at 04:08:40AM -0700, David Miller wrote: > From: Shirley Ma > Date: Wed, 06 Jul 2011 15:15:25 -0700 > > > This patchset add supports for TX zero-copy between guest and host > > kernel through vhost. It significantly reduces CPU utilization on the > > local host on which the g

Re: [PATCH V8 0/4 net-next] macvtap/vhost TX zero-copy support

2011-07-07 Thread David Miller
From: Shirley Ma Date: Wed, 06 Jul 2011 15:15:25 -0700 > This patchset add supports for TX zero-copy between guest and host > kernel through vhost. It significantly reduces CPU utilization on the > local host on which the guest is located (It reduced about 50% CPU usage > for single stream test o

Re: [PATCH V8 2/4 net-next] skbuff: skb supports zero-copy buffers

2011-07-07 Thread David Miller
From: Shirley Ma Date: Wed, 06 Jul 2011 15:22:12 -0700 > + while (head) { > + put_page(head); > + head = (struct page *)head->private; > + } Looks like you might be referencing the page after it's rel

Re: [PATCH v5 4/9] KVM-HV: KVM Steal time implementation

2011-07-07 Thread Marcelo Tosatti
On Mon, Jul 04, 2011 at 11:32:23AM -0400, Glauber Costa wrote: > To implement steal time, we need the hypervisor to pass the guest > information about how much time was spent running other processes > outside the VM, while the vcpu had meaningful work to do - halt > time does not count. > > This i

Re: [PATCH 0/3] KVM: MMU: Clean up walk_addr_generic() v4

2011-07-07 Thread Marcelo Tosatti
On Fri, Jul 01, 2011 at 01:33:20AM +0900, Takuya Yoshikawa wrote: > This is the v4 of my walk_addr_generic() cleanup. > > Changelog v3-v4: fixed v3's reversed present mask. > > This time, I have tested the patch set with kvm-unit-tests/x86/access.flat. Applied, thanks. -- To unsubscribe from th

Re: [PULL 00/17] KVM PPC patch queue 2011-07-04

2011-07-07 Thread Marcelo Tosatti
On Mon, Jul 04, 2011 at 04:12:37PM +0200, Alexander Graf wrote: > Hi Avi, > > Here is my current patch queue for KVM on PPC. It contains support for > hardware accelerated KVM on 970 and POWER7 (no hardware) which is one > of the most interesting features we had added for a while now. > > This ne

Re: [heads-up] bridge in kernel 3.0~ and dhcp from kvm guest on tap device

2011-07-07 Thread lists+linux-netdev
07.07.2011 13:49, David Miller wrote: > From: Michael Tokarev > Date: Thu, 07 Jul 2011 13:44:57 +0400 > >> The combination in $subject apparently stopped working -- >> I'm running 3.0-rc6 kernel on host where it doesn't work. > > Already fixed in net-2.6: > > From 44661462ee1ee3c922754fc1f24686

Re: [heads-up] bridge in kernel 3.0~ and dhcp from kvm guest on tap device

2011-07-07 Thread David Miller
From: Michael Tokarev Date: Thu, 07 Jul 2011 13:44:57 +0400 > The combination in $subject apparently stopped working -- > I'm running 3.0-rc6 kernel on host where it doesn't work. Already fixed in net-2.6: >From 44661462ee1ee3c922754fc1f246867f0d01e7ea Mon Sep 17 00:00:00 2001 From: Herbert Xu

[heads-up] bridge in kernel 3.0~ and dhcp from kvm guest on tap device

2011-07-07 Thread Michael Tokarev
The combination in $subject apparently stopped working -- I'm running 3.0-rc6 kernel on host where it doesn't work. The setup is -- a bridge, br0, to which host eth0 and guest tap devices are connected. When KVM guest boots, it tries to send DHCP requests to its ethernet device (it does not matte

Re: [PATCH v3 14/19] KVM: MMU: clean up spte updating and clearing

2011-07-07 Thread Xiao Guangrong
On 07/07/2011 04:16 PM, Marcelo Tosatti wrote: >> >> What about remove "always_track" parameter? After that, the code should be >> clear. > > Its easier to read by having it opencoded as it is now. > OK. will remove it. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the b

Re: [PATCH v3 16/19] KVM: MMU: lockless walking shadow page table

2011-07-07 Thread Marcelo Tosatti
On Thu, Jul 07, 2011 at 03:26:14AM +0800, Xiao Guangrong wrote: > On 07/07/2011 02:08 AM, Marcelo Tosatti wrote: > > >> +static void free_pages_rcu(struct rcu_head *head) > >> +{ > >> + struct kvm_mmu_page *next, *sp; > >> + > >> + sp = container_of(head, struct kvm_mmu_page, rcu); > >> + while

Re: [PATCH v3 14/19] KVM: MMU: clean up spte updating and clearing

2011-07-07 Thread Marcelo Tosatti
On Thu, Jul 07, 2011 at 03:18:41AM +0800, Xiao Guangrong wrote: > On 07/07/2011 01:39 AM, Marcelo Tosatti wrote: > > >> -static bool spte_is_bit_cleared(u64 old_spte, u64 new_spte, u64 bit_mask) > >> +static void track_spte_bits(u64 old_spte, u64 keep_bits, bool > >> always_track) > >> { > >> -

Re: [PATCH v3 05/19] KVM: MMU: optimize to handle dirty bit

2011-07-07 Thread Marcelo Tosatti
On Thu, Jul 07, 2011 at 03:12:26AM +0800, Xiao Guangrong wrote: > >> So, i think it works well :-) > > > > I think you meant after marking the accessed bit. The dirty bit is set > > just before returning. > > > > In this patch, i moved getting pte_access to the behind of setting dirty bit > set

Re: [PATCH v3 18/19] KVM: MMU: mmio page fault support

2011-07-07 Thread Marcelo Tosatti
On Thu, Jul 07, 2011 at 03:59:12AM +0800, Xiao Guangrong wrote: > On 07/07/2011 02:52 AM, Marcelo Tosatti wrote: > > >> +/* > >> + * If it is a real mmio page fault, return 1 and emulat the instruction > >> + * directly, return 0 to let CPU fault again on the address, -1 is > >> + * returned if bu