[RFC PATCH 1/3 V8] QError: Introduce QERR_UNSUPPORTED

2011-04-20 Thread Lai Jiangshan
New QERR_UNSUPPORTED for unsupported commands or requests. Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com --- qerror.c |4 qerror.h |3 +++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/qerror.c b/qerror.c index c76257f..bafe520 100644 --- a/qerror.c +++

[RFC PATCH 3/3 V8] qapi-hmp: Convert HMP nmi to use QMP

2011-04-20 Thread Lai Jiangshan
Convert the name of HMP nmi to inject-nmi, and use QMP inject-nmi. The behavier is also changed, it injects NMI to all CPUs of the guest. When the guest is non-x86, it reports Unsupported error. Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com --- hmp-commands.hx | 18 --

[RFC PATCH 2/3 V8] qapi,nmi: add inject-nmi qmp command

2011-04-20 Thread Lai Jiangshan
inject-nmi command injects an NMI on all CPUs of guest. It is only supported for x86 guest currently, it will returns Unsupported error for non-x86 guest. Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com --- qapi-schema.json | 12 qmp.c| 17 + 2

[RFC PATCH 0/3 V8] QAPI: add inject-nmi qmp command

2011-04-20 Thread Lai Jiangshan
These patches are applied for http://repo.or.cz/r/qemu/aliguori.git glib. These patches add QAPI inject-nmi. They are passed checkpatch.pl and the build. But the result qemu executable file is not tested, because the result qemu of http://repo.or.cz/r/qemu/aliguori.git glib can't work in my

Re: [PATCH 2/2] KVM: Use pci_store/load_saved_state() around VM device usage

2011-04-20 Thread Avi Kivity
On 04/18/2011 10:43 PM, Alex Williamson wrote: On Sun, 2011-04-17 at 12:25 +0300, Avi Kivity wrote: On 04/15/2011 10:54 PM, Alex Williamson wrote: Store the device saved state so that we can reload the device back to the original state when it's unassigned. This has the benefit

Re: [PATCH 4/4 V2] kvm tools: Complete missing segments in a iov op using regular op

2011-04-20 Thread Pekka Enberg
Hi, [ Sasha, please remember to CC people who were involved in discussions! ] On Mon, Apr 18, 2011 at 4:05 PM, Sasha Levin levinsasha...@gmail.com wrote: If any of the iov operations return mid-block, use regular ops to complete the current block and continue using iov ops. Signed-off-by:

Re: kvm hangs with 1GB or more memory assigned

2011-04-20 Thread Avi Kivity
(re-adding list) On 04/15/2011 07:28 AM, Neal Murphy wrote: On Wednesday 06 April 2011 03:35:27 you wrote: On 04/06/2011 06:22 AM, Neal Murphy wrote: ENVIRONS: I'm running - Debian Squeeze. - QEMU PC emulator version 0.12.5 (qemu-kvm-0.12.5) -

Re: [PATCH v2 0/2] Store and load PCI device saved state across function resets

2011-04-20 Thread Avi Kivity
On 04/19/2011 11:12 PM, Alex Williamson wrote: v1 - v2: Make the pointer passed around less opaque for type safety. Bug https://bugs.launchpad.net/qemu/+bug/754591 is caused because the KVM module attempts to do a pci_save_state() before assigning the device to a VM, expecting that the

Re: [PATCH] acpi_piix4: remove bad save/restore of cpus_sts

2011-04-20 Thread Avi Kivity
On 04/18/2011 04:56 PM, Isaku Yamahata wrote: This patch would fix the segfaults. But I suppose the followings are necessary. - PIIX4PMState::gpe_cpu needs to be saved/loaded somewhere Yes. Juan? - gpe_writeb() needs to handle PROC_BASE ... PROC_BASE+31 like gpe_readb(). To be honest, I

Re: [PATCH 0/2] Some KVM fixes

2011-04-20 Thread Avi Kivity
On 04/18/2011 12:42 PM, Joerg Roedel wrote: Hi, these two patches fix one issue introduced with the recent emulator-intercept code (the issue was there before too, but hidden by other workaround code which was removed in the mentioned patch-set). The second patch fixes a problem introduced with

[RFC PATCH 0/2] Multiqueue support for qemu(virtio-net)

2011-04-20 Thread Jason Wang
Inspired by Krishna's patch (http://www.spinics.net/lists/kvm/msg52098.html) and Michael's suggestions. The following series adds the multiqueue support for qemu and enable it for virtio-net (both userspace and vhost). The aim for this series is to simplified the management and achieve the same

[RFC PATCH 1/2] net: Add multiqueue support

2011-04-20 Thread Jason Wang
This patch adds the multiqueues support for emulated nics. Each VLANClientState pairs are now abstract as a queue instead of a nic, and multiple VLANClientState pointers were stored in the NICState and treated as the multiple queues of a single nic. The netdev options of qdev were now expanded to

[RFC PATCH 2/2] virtio-net: add multiqueue support

2011-04-20 Thread Jason Wang
This patch add the multiqueue ability to virtio-net for both userapce and vhost. With this patch the kernel side vhost could be reused without modification to support multiqueue virtio-net nics. Signed-off-by: Jason Wang jasow...@redhat.com --- hw/vhost.c | 26 ++- hw/vhost.h |1

Re: [RFC PATCH 0/2] Multiqueue support for qemu(virtio-net)

2011-04-20 Thread Krishna Kumar2
Thanks Jason! So I can use my virtio-net guest driver and test with this patch? Please provide the script you use to start MQ guest. Regards, - KK Jason Wang jasow...@redhat.com wrote on 04/20/2011 02:03:07 PM: Jason Wang jasow...@redhat.com 04/20/2011 02:03 PM To Krishna

Re: [PATCH 3/4] kvm tools: Add debug feature to test the IO thread

2011-04-20 Thread Ingo Molnar
* Pekka Enberg penb...@kernel.org wrote: Sorry for the bikeshedding but wouldn't it be better to follow Git's lead and have something like kvm config MyInstance-1 --set debug.io.delay.ms 100 and kvm config MyInstance-1 --list Yeah, agreed - 'kvm config' is intuitive. I tried to

Re: [RFC PATCH 3/3] KVM: MMU: Optimize guest page table walk

2011-04-20 Thread Avi Kivity
On 04/18/2011 09:38 PM, Takuya Yoshikawa wrote: From: Takuya Yoshikawayoshikawa.tak...@oss.ntt.co.jp We optimize multi level guest page table walk as follows: 1. We cache the memslot which, probably, includes the next guest page tables to avoid searching for it many times. 2. We

Re: [PATCH 2/3] KVM: MMU: Introduce a helper to read guest pte

2011-04-20 Thread Avi Kivity
On 04/18/2011 09:34 PM, Takuya Yoshikawa wrote: From: Takuya Yoshikawayoshikawa.tak...@oss.ntt.co.jp This will be optimized later. Signed-off-by: Takuya Yoshikawayoshikawa.tak...@oss.ntt.co.jp --- arch/x86/kvm/paging_tmpl.h | 12 +--- 1 files changed, 9 insertions(+), 3

Re: [RFC PATCH 3/3] KVM: MMU: Optimize guest page table walk

2011-04-20 Thread Avi Kivity
On 04/19/2011 06:47 AM, Takuya Yoshikawa wrote: So if certain algorithm seems to be addapted, yes, I will test based on that. IIRC, any practically good algorithm has not been found yet, right? I think a simple sort based on size will provide the same optimization (just the cache, not

Re: [PATCH v2] KVM: emulator: Use linearize() when fetching instructions.

2011-04-20 Thread Avi Kivity
On 04/18/2011 07:05 PM, Nelson Elhage wrote: Since segments need to be handled slightly differently when fetching instructions, we add a __linearize helper that accepts a new 'fetch' boolean. Applied, thanks. -- error compiling committee.c: too many arguments to function -- To unsubscribe

Re: [PATCH 2/3] KVM: MMU: Introduce a helper to read guest pte

2011-04-20 Thread Roedel, Joerg
On Wed, Apr 20, 2011 at 05:07:12AM -0400, Avi Kivity wrote: On 04/18/2011 09:34 PM, Takuya Yoshikawa wrote: From: Takuya Yoshikawayoshikawa.tak...@oss.ntt.co.jp This will be optimized later. Signed-off-by: Takuya Yoshikawayoshikawa.tak...@oss.ntt.co.jp ---

Re: 2.6.38.1 general protection fault

2011-04-20 Thread Thomas Treutner
On 03/28/2011 10:14 PM, Tomasz Chmielewski wrote: On 28.03.2011 22:04, Andrea Arcangeli wrote: Tomasz, how easily can you reproduce? Well, this server runs 10 VMs or so, and it happens after 1-2 days of uptime. I reverted now to a 2.6.35.x, as it had enough downtime with 2.6.38 already ;)

Re: [PATCH 0/4] qemu-kvm: Sort out upstream merge regressions

2011-04-20 Thread Avi Kivity
On 04/18/2011 12:26 PM, Jan Kiszka wrote: Recent merge with upstream left some corners of qemu-kvm broken behind. This series addresses those I've spotted based on my merge experiments in the past months. Applied all, thanks. -- error compiling committee.c: too many arguments to function --

Re: [PATCH 2/3] KVM: MMU: Introduce a helper to read guest pte

2011-04-20 Thread Avi Kivity
On 04/20/2011 12:35 PM, Roedel, Joerg wrote: On Wed, Apr 20, 2011 at 05:07:12AM -0400, Avi Kivity wrote: On 04/18/2011 09:34 PM, Takuya Yoshikawa wrote: From: Takuya Yoshikawayoshikawa.tak...@oss.ntt.co.jp This will be optimized later. Signed-off-by: Takuya

[PATCH] KVM: x86 emulator: whitespace cleanups

2011-04-20 Thread Avi Kivity
Clean up lines longer than 80 columns. No code changes. Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/kvm/emulate.c | 96 +++- 1 files changed, 54 insertions(+), 42 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c

Re: 2.6.38.1 general protection fault

2011-04-20 Thread Tomasz Chmielewski
On 20.04.2011 11:28, Thomas Treutner wrote: On 03/28/2011 10:14 PM, Tomasz Chmielewski wrote: On 28.03.2011 22:04, Andrea Arcangeli wrote: Tomasz, how easily can you reproduce? Well, this server runs 10 VMs or so, and it happens after 1-2 days of uptime. I reverted now to a 2.6.35.x, as it

Re: [PATCH 2/3] KVM: MMU: Introduce a helper to read guest pte

2011-04-20 Thread Roedel, Joerg
On Wed, Apr 20, 2011 at 06:05:08AM -0400, Avi Kivity wrote: On 04/20/2011 12:35 PM, Roedel, Joerg wrote: This patch seems only to introduce another wrapper around kvm_read_guest_page_mmu(), so I don't see a problem in this patch. By patch 3, ptep_user will be computed in this function and

Re: [PATCH 2/3] KVM: MMU: Introduce a helper to read guest pte

2011-04-20 Thread Avi Kivity
On 04/20/2011 02:06 PM, Roedel, Joerg wrote: On Wed, Apr 20, 2011 at 06:05:08AM -0400, Avi Kivity wrote: On 04/20/2011 12:35 PM, Roedel, Joerg wrote: This patch seems only to introduce another wrapper around kvm_read_guest_page_mmu(), so I don't see a problem in this patch. By

Re: [PATCH v2] KVM: emulator: Use linearize() when fetching instructions.

2011-04-20 Thread Avi Kivity
On 04/18/2011 07:05 PM, Nelson Elhage wrote: Since segments need to be handled slightly differently when fetching instructions, we add a __linearize helper that accepts a new 'fetch' boolean. static int segmented_read_std(struct x86_emulate_ctxt *ctxt, struct

[PATCH 00/16] Decouple the x86 emulator from the rest of kvm

2011-04-20 Thread Avi Kivity
This (longer than expected) patchset decouples the x86 emulator from the rest of kvm. All communication is not done via x86_emulate_ctxt fields and callbacks; there is no access to ctxt-vcpu (which is eliminated by the last patch). Avi Kivity (16): KVM: x86 emulator: drop vcpu argument from

[PATCH 02/16] KVM: x86 emulator: drop vcpu argument from pio callbacks

2011-04-20 Thread Avi Kivity
Making the emulator caller agnostic. Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/include/asm/kvm_emulate.h | 10 ++ arch/x86/kvm/emulate.c |6 +++--- arch/x86/kvm/x86.c | 18 -- 3 files changed, 21 insertions(+), 13

[PATCH 09/16] KVM: x86 emulator: Replace calls to is_pae() and is_paging with -get_cr()

2011-04-20 Thread Avi Kivity
Avoid use of ctxt-vcpu. Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/kvm/emulate.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index a4227bf..dc495a0 100644 --- a/arch/x86/kvm/emulate.c +++

[PATCH 11/16] KVM: x86 emulator: make emulate_invlpg() an emulator callback

2011-04-20 Thread Avi Kivity
Removing direct calls to KVM. Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/include/asm/kvm_emulate.h |1 + arch/x86/include/asm/kvm_host.h|1 - arch/x86/kvm/emulate.c |2 +- arch/x86/kvm/x86.c |6 +++--- 4 files changed, 5 insertions(+),

[PATCH 08/16] KVM: x86 emulator: drop use of is_long_mode()

2011-04-20 Thread Avi Kivity
Requires ctxt-vcpu, which is to be abolished. Replace with open calls to get_msr(). Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/kvm/emulate.c | 19 --- 1 files changed, 12 insertions(+), 7 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c

[PATCH 07/16] KVM: x86 emulator: add and use new callbacks set_idt(), set_gdt()

2011-04-20 Thread Avi Kivity
Replacing direct calls to realmode_lgdt(), realmode_lidt(). Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/include/asm/kvm_emulate.h |2 ++ arch/x86/include/asm/kvm_host.h|3 --- arch/x86/kvm/emulate.c | 14 +++--- arch/x86/kvm/x86.c |

[PATCH 01/16] KVM: x86 emulator: drop vcpu argument from memory read/write callbacks

2011-04-20 Thread Avi Kivity
Making the emulator caller agnostic. Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/include/asm/kvm_emulate.h | 34 ++ arch/x86/kvm/emulate.c | 54 --- arch/x86/kvm/x86.c | 54

[PATCH 13/16] KVM: x86 emulator: add -fix_hypercall() callback

2011-04-20 Thread Avi Kivity
Artificial, but needed to remove direct calls to KVM. Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/include/asm/kvm_emulate.h |1 + arch/x86/include/asm/kvm_host.h|2 -- arch/x86/kvm/emulate.c |4 ++-- arch/x86/kvm/x86.c |6 +- 4 files

[PATCH 15/16] KVM: Avoid using x86_emulate_ctxt.vcpu

2011-04-20 Thread Avi Kivity
We can use container_of() instead. Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/kvm/x86.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 5d853d5..65a5b0c 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@

[PATCH 16/16] KVM: x86 emulator: drop x86_emulate_ctxt::vcpu

2011-04-20 Thread Avi Kivity
No longer used. Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/include/asm/kvm_emulate.h |2 -- arch/x86/kvm/x86.c |1 - 2 files changed, 0 insertions(+), 3 deletions(-) diff --git a/arch/x86/include/asm/kvm_emulate.h b/arch/x86/include/asm/kvm_emulate.h index

[PATCH 14/16] KVM: x86 emulator: add new -wbinvd() callback

2011-04-20 Thread Avi Kivity
Instead of calling kvm_emulate_wbinvd() directly. Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/include/asm/kvm_emulate.h |1 + arch/x86/kvm/emulate.c |2 +- arch/x86/kvm/x86.c |6 ++ 3 files changed, 8 insertions(+), 1 deletions(-) diff

[PATCH 10/16] KVM: x86 emulator: emulate CLTS internally

2011-04-20 Thread Avi Kivity
Avoid using ctxt-vcpu; we can do everything with -get_cr() and -set_cr(). A side effect is that we no longer activate the fpu on emulated CLTS; but that should be very rare. Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/include/asm/kvm_host.h |1 - arch/x86/kvm/emulate.c |

[PATCH 06/16] KVM: x86 emulator: avoid using ctxt-vcpu in check_perm() callbacks

2011-04-20 Thread Avi Kivity
Unneeded for register access. Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/kvm/emulate.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 55ca5a5..8020f1b 100644 --- a/arch/x86/kvm/emulate.c +++

[PATCH 12/16] KVM: x86 emulator: add new -halt() callback

2011-04-20 Thread Avi Kivity
Instead of reaching into vcpu internals. Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/include/asm/kvm_emulate.h |1 + arch/x86/kvm/emulate.c |2 +- arch/x86/kvm/x86.c |6 ++ 3 files changed, 8 insertions(+), 1 deletions(-) diff --git

[PATCH 03/16] KVM: x86 emulator: drop vcpu argument from segment/gdt/idt callbacks

2011-04-20 Thread Avi Kivity
Making the emulator caller agnostic. Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/include/asm/kvm_emulate.h | 22 --- arch/x86/kvm/emulate.c | 112 ++-- arch/x86/kvm/x86.c | 39 +++-- 3 files changed, 90

[PATCH 04/16] KVM: x86 emulator: drop vcpu argument from cr/dr/cpl/msr callbacks

2011-04-20 Thread Avi Kivity
Making the emulator caller agnostic. Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/include/asm/kvm_emulate.h | 14 +++--- arch/x86/kvm/emulate.c | 84 ++-- arch/x86/kvm/x86.c | 34 ++ 3 files changed, 73

[PATCH 05/16] KVM: x86 emulator: drop vcpu argument from intercept callback

2011-04-20 Thread Avi Kivity
Making the emulator caller agnostic. Signed-off-by: Avi Kivity a...@redhat.com --- arch/x86/include/asm/kvm_emulate.h |2 +- arch/x86/kvm/emulate.c |2 +- arch/x86/kvm/x86.c |4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH] KVM: MMU: Make cmpxchg_gpte aware of nesting too

2011-04-20 Thread Roedel, Joerg
On Wed, Apr 20, 2011 at 07:18:12AM -0400, Avi Kivity wrote: On 04/20/2011 02:06 PM, Roedel, Joerg wrote: The cmpxchg_gpte function treats all table_gfns as l1-gfns. I'll send a fix soon. Thanks. Here is a fix for review. I am out-of-office starting in nearly one hour until next Tuesday.

Re: [Qemu-devel] QEMU-KVM and hardened (GRSEC/PaX) kernel

2011-04-20 Thread Avi Kivity
On 04/17/2011 01:45 AM, Антон Кочков wrote: Good day! I'm trying to make working qemu-kvm with hardened gentoo on hardened kernel. When i'm using CONFIG_PAX_KERNPAGEXEC and CONFIG_PAX_MEM_UNDEREF qemu just start and go to infinite loop and take 100% of one of my CPU core. adn it even can't be

Windows XP, Tablet, vnc and mouse clicks

2011-04-20 Thread Boris Dolgov
Hello! I am facing a strange problem. I use qemu-kvm-0.13 under Fedora 14. There is windows xp installed in the virtual machine. But some mouse clicks are not delivered to the virtual machine. When I do a quick click (press the mouse button and then momentally release it), it can be not

Re: [PATCH 2/2] KVM: Use pci_store/load_saved_state() around VM device usage

2011-04-20 Thread Alex Williamson
On Wed, 2011-04-20 at 10:19 +0300, Avi Kivity wrote: On 04/18/2011 10:43 PM, Alex Williamson wrote: On Sun, 2011-04-17 at 12:25 +0300, Avi Kivity wrote: On 04/15/2011 10:54 PM, Alex Williamson wrote: Store the device saved state so that we can reload the device back to the

Re: [PATCH 2/2] KVM: Use pci_store/load_saved_state() around VM device usage

2011-04-20 Thread Avi Kivity
On 04/20/2011 06:13 PM, Alex Williamson wrote: This is also why I changed the __pci_reset_function() back to a normal pci_reset_function(), so we're never left with an uninitialized device like we are now. We could be more verbose or return an error here, but we've gone

[PATCH] kvm tools: Add missing space before root= option

2011-04-20 Thread Cyrill Gorcunov
If user pases own options we need an extra space otherwise options get joined. Signed-off-by: Cyrill Gorcunov gorcu...@gmail.com --- tools/kvm/kvm-run.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.git/tools/kvm/kvm-run.c

Re: [PATCH] kvm tools: Add read-only support for QCOW2 images

2011-04-20 Thread Pekka Enberg
On Tue, 19 Apr 2011, Prasad Joshi wrote: On Tue, Apr 19, 2011 at 10:07 PM, Pekka Enberg penb...@kernel.org wrote: This patch extends the QCOW1 format to also support QCOW2 images as specified by the following document:  http://people.gnome.org/~markmc/qcow-image-format.html

[Bug 33762] New: Qemu-kvm infinite loop on hardened (Grsecurity/PaX) kernel

2011-04-20 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=33762 Summary: Qemu-kvm infinite loop on hardened (Grsecurity/PaX) kernel Product: Virtualization Version: unspecified Platform: All OS/Version: Linux Tree: Mainline

[Bug 33762] Qemu-kvm infinite loop on hardened (Grsecurity/PaX) kernel

2011-04-20 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=33762 --- Comment #1 from Anton Kochkov anton.koch...@gmail.com 2011-04-20 16:38:17 --- Additional discussion in qemu-devel mailing list -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email --- You are receiving this

[Bug 33762] Qemu-kvm infinite loop on hardened (Grsecurity/PaX) kernel

2011-04-20 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=33762 --- Comment #2 from Anton Kochkov anton.koch...@gmail.com 2011-04-20 16:38:36 --- http://lists.nongnu.org/archive/html/qemu-devel/2011-04/msg01547.html -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email --- You

[Bug 33762] Qemu-kvm infinite loop on hardened (Grsecurity/PaX) kernel

2011-04-20 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=33762 --- Comment #3 from Anton Kochkov anton.koch...@gmail.com 2011-04-20 16:40:49 --- Created an attachment (id=54832) -- (https://bugzilla.kernel.org/attachment.cgi?id=54832) Dmesg output -- Configure bugmail:

[Bug 33762] Qemu-kvm infinite loop on hardened (Grsecurity/PaX) kernel

2011-04-20 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=33762 Anton Kochkov anton.koch...@gmail.com changed: What|Removed |Added Kernel Version||2.6.38 --

[PATCH V3 0/8] macvtap/vhost TX zero copy support

2011-04-20 Thread Shirley Ma
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 30-50% CPU usage for vhost thread for single stream test). The patchset is based on previous submission and

[PATCH V3 1/8] Add a new sock zerocopy flag

2011-04-20 Thread Shirley Ma
This sock zerocopy flag is used to support lower level device DMA userspace buffers. Signed-off-by: Shirley Ma x...@us.ibm.com --- include/net/sock.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/net/sock.h b/include/net/sock.h index 01810a3..daa0a80 100644

[PATCH V3 2/8] Add a new zerocopy device flag

2011-04-20 Thread Shirley Ma
This zerocopy flag is used to support device DMA userspace buffers. Signed-off-by: Shirley Ma x...@us.ibm.com --- include/linux/netdevice.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 0249fe7..0998d3d

Re: [PATCH V3 2/8] Add a new zerocopy device flag

2011-04-20 Thread Ben Hutchings
On Wed, 2011-04-20 at 12:44 -0700, Shirley Ma wrote: This zerocopy flag is used to support device DMA userspace buffers. Signed-off-by: Shirley Ma x...@us.ibm.com --- include/linux/netdevice.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git

[PATCH V3 4/8] vhost TX zero copy support

2011-04-20 Thread Shirley Ma
This patch maintains the outstanding userspace buffers in the sequence it is delivered to vhost. The outstanding userspace buffers will be marked as done once the lower device buffers DMA has finished. This is monitored through last reference of kfree_skb callback. Two buffer index are used for

Re: [PATCH V3 2/8] Add a new zerocopy device flag

2011-04-20 Thread Shirley Ma
Resubmit this patch with the new bit. Signed-off-by: Shirley Ma x...@us.ibm.com --- include/linux/netdevice.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 0249fe7..0998d3d 100644 ---

[PATCH V3 5/8] Enable cxgb3 to support zerocopy

2011-04-20 Thread Shirley Ma
Signed-off-by: Shirley Ma x...@us.ibm.com --- drivers/net/cxgb3/cxgb3_main.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c index 9108931..93a1101 100644 --- a/drivers/net/cxgb3/cxgb3_main.c +++

[PATCH V3 8/8] Enable benet to support zerocopy

2011-04-20 Thread Shirley Ma
Signed-off-by: Shirley Ma x...@us.ibm.com --- drivers/net/benet/be_main.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c index 7cb5a11..d7b7254 100644 --- a/drivers/net/benet/be_main.c +++

Re: [PATCH V3 0/8] macvtap/vhost TX zero copy support

2011-04-20 Thread Shirley Ma
Only when buffer size is greater than GOODCOPY_LEN (128), macvtap enables zero-copy. Signed-off-by: Shirley MA x...@us.ibm.com --- drivers/net/macvtap.c | 124 - 1 files changed, 112 insertions(+), 12 deletions(-) diff --git

Re: [PATCH V3 2/8] Add a new zerocopy device flag

2011-04-20 Thread Dimitris Michailidis
On 04/20/2011 01:09 PM, Shirley Ma wrote: Resubmit this patch with the new bit. Bit 30 is also taken in net-next. Signed-off-by: Shirley Ma x...@us.ibm.com --- include/linux/netdevice.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/linux/netdevice.h

Re: [PATCH V3 2/8] Add a new zerocopy device flag

2011-04-20 Thread Shirley Ma
Thanks. I need to update it to 30 bit. Shirley -- 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://vger.kernel.org/majordomo-info.html

[PATCH V3 6/8] macvtap/vhost TX zero copy support

2011-04-20 Thread Shirley Ma
Only when buffer size is greater than GOODCOPY_LEN (128), macvtap enables zero-copy. Signed-off-by: Shirley Ma x...@us.ibm.com --- drivers/net/macvtap.c | 124 - 1 files changed, 112 insertions(+), 12 deletions(-) diff --git

Re: [PATCH V3 2/8] Add a new zerocopy device flag

2011-04-20 Thread Shirley Ma
Resubmit it with 31 bit. Signed-off-by: Shirley Ma x...@us.ibm.com --- include/linux/netdevice.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 0249fe7..0998d3d 100644 --- a/include/linux/netdevice.h +++

Re: [PATCH V3 2/8] Add a new zerocopy device flag

2011-04-20 Thread Shirley Ma
On Wed, 2011-04-20 at 13:24 -0700, Dimitris Michailidis wrote: Bit 30 is also taken in net-next. How about 31? Thanks Shirley -- 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

[PATCH v3 0/3] Store and load PCI device saved state across function resets

2011-04-20 Thread Alex Williamson
v2 - v3: Saved structure has variable contents. Avi, see if this adds any credibility to the pci-core allocated opaque buffer. It was wrong in the previous versions to distill the variable device capability save list into a fixed struct. This should also eliminate any future maintenance

[PATCH v3 1/3] PCI: Track the size of each saved capability data area

2011-04-20 Thread Alex Williamson
This will allow us to store and load it later. Signed-off-by: Alex Williamson alex.william...@redhat.com --- drivers/pci/pci.c | 12 +++- include/linux/pci.h | 11 --- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c

[PATCH v3 2/3] PCI: Add interfaces to store and load the device saved state

2011-04-20 Thread Alex Williamson
For KVM device assignment, we'd like to save off the state of a device prior to passing it to the guest and restore it later. We also want to allow pci_reset_funciton() to be called while the device is owned by the guest. This however overwrites and invalidates the struct pci_dev buffers, so we

[PATCH v3 3/3] KVM: Use pci_store/load_saved_state() around VM device usage

2011-04-20 Thread Alex Williamson
Store the device saved state so that we can reload the device back to the original state when it's unassigned. This has the benefit that the state survives across pci_reset_function() calls via the PCI sysfs reset interface while the VM is using the device. Signed-off-by: Alex Williamson

Re: [PATCH V3 5/8] Enable cxgb3 to support zerocopy

2011-04-20 Thread Dimitris Michailidis
On 04/20/2011 01:13 PM, Shirley Ma wrote: Signed-off-by: Shirley Ma x...@us.ibm.com --- drivers/net/cxgb3/cxgb3_main.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c index 9108931..93a1101 100644 ---

Re: [PATCH V3 5/8] Enable cxgb3 to support zerocopy

2011-04-20 Thread Shirley Ma
On Wed, 2011-04-20 at 13:52 -0700, Dimitris Michailidis wrote: The features handling has been reworked in net-next and patches like this won't apply as the code you're patching has changed. Also core code now does a lot of the related work and you'll need to tell it what to do with any

Re: [PATCH V3 5/8] Enable cxgb3 to support zerocopy

2011-04-20 Thread Shirley Ma
On Wed, 2011-04-20 at 13:58 -0700, Shirley Ma wrote: This flag can be ON when HIGHDMA and scatter/gather support. I will modify the patch to make it conditionally. Double checked, it only needs HIGHDMA condition, not scatter/gather. thanks Shirley -- To unsubscribe from this list: send the

Re: [PATCH] KVM: MMU: Make cmpxchg_gpte aware of nesting too

2011-04-20 Thread Takuya Yoshikawa
On Wed, 20 Apr 2011 15:33:16 +0200 Roedel, Joerg joerg.roe...@amd.com wrote: @@ -245,13 +257,17 @@ walk: goto error; if (write_fault !is_dirty_gpte(pte)) { - bool ret; + int ret; trace_kvm_mmu_set_dirty_bit(table_gfn, index,

Re: [PATCH 2/3] KVM: MMU: Introduce a helper to read guest pte

2011-04-20 Thread Takuya Yoshikawa
On Wed, 20 Apr 2011 14:18:12 +0300 Avi Kivity a...@redhat.com wrote: Correct. The reason I don't want the helper, is so we can use ptep_user in both places (not for efficiency, just to make sure it's exactly the same value). Thank you for your explanation, now I've got the picture! I

[PATCH V3 3/8] Add userspace buffers support in skb

2011-04-20 Thread Shirley Ma
This patch adds userspace buffers support in skb. A new struct skb_ubuf_info is needed to maintain the userspace buffers argument and index, a callback is used to notify userspace to release the buffers once lower device has done DMA (Last reference to that skb has gone). Signed-off-by: Shirley

performance of virtual functions compared to virtio

2011-04-20 Thread David Ahern
In general should virtual functions outperform virtio+vhost for networking performance - latency and throughput? I have 2 VMs running on a host. Each VM has 2 nics -- one tied to a VF and the other going through virtio and a tap device like so: -- |

Re: performance of virtual functions compared to virtio

2011-04-20 Thread Alex Williamson
On Wed, 2011-04-20 at 19:57 -0600, David Ahern wrote: In general should virtual functions outperform virtio+vhost for networking performance - latency and throughput? I have 2 VMs running on a host. Each VM has 2 nics -- one tied to a VF and the other going through virtio and a tap device

Re: [RFC PATCH 0/3 V8] QAPI: add inject-nmi qmp command

2011-04-20 Thread Lai Jiangshan
Hi, Anthony Liguori Any suggestion? Although all command line interfaces will be converted to to use QMP interfaces in 0.16, I hope inject-nmi come into QAPI earlier, 0.15. Thanks, Lai -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to

Re: [RFC PATCH 0/2] Multiqueue support for qemu(virtio-net)

2011-04-20 Thread Jason Wang
Krishna Kumar2 writes: Thanks Jason! So I can use my virtio-net guest driver and test with this patch? Please provide the script you use to start MQ guest. Yes and thanks. Following is a simple script may help you start macvtap mq guest. qemu_path=./qemu-system-x86_64

How to use qemu-kvm with Fedora15-beta gnome3 (better vga driver ?)

2011-04-20 Thread Cheng Renquan
Hi all, I'm trying to use qemu-kvm to run Fedora15-beta with gnome3, but it told me graphics hardware failed to run gnome3 specific features and it fallback to gnome2; I checked the qemu-doc and tried all these vga drivers, no one could work with gnome3, does someone know how to run qemu with a

[PATCH V3 7/8] Enable ixgbe to support zerocopy

2011-04-20 Thread Shirley Ma
Signed-off-by: Shirley Ma x...@us.ibm.com --- drivers/net/ixgbe/ixgbe_main.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index 6f8adc7..68f1e93 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++