Re: Interrupt Assignment on host

2009-11-08 Thread Avi Kivity
On 11/05/2009 09:09 PM, Erik Rull wrote: Can you describe how performance suffers? Please provide vmstat (for host int/sec) and kvm_stat -l -f 'exits|irq_exits' output. I'm sorry, but my target system has no python installed. Any ideas how to do that manually? Try the attached bash

Re: CPU change causes hanging of .NET apps

2009-11-08 Thread Avi Kivity
On 11/05/2009 09:03 PM, Erik Rull wrote: qemu -cpu host,-flag I tried that value, result is an error: Unable to find x86 CPU definition Please use qemu-kvm.git for this test. -- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line

Re: soft lockup after live migration

2009-11-08 Thread Tomasz Chmielewski
Marcelo Tosatti wrote: Tomasz, The screenshots seem to indicate a paravirt mmu problem. Try to patch the x86.c file from kvm kernel module with: diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c - case KVM_CAP_PV_MMU: - r = !tdp_enabled; + case KVM_CAP_PV_MMU:

Re: [PATCH 02/11] Add handle page fault PV helper.

2009-11-08 Thread Ingo Molnar
* Gleb Natapov g...@redhat.com wrote: On Mon, Nov 02, 2009 at 05:29:41PM +0100, Ingo Molnar wrote: * Gleb Natapov g...@redhat.com wrote: On Mon, Nov 02, 2009 at 05:12:48PM +0100, Ingo Molnar wrote: * Gleb Natapov g...@redhat.com wrote: On Mon, Nov 02, 2009 at

Re: [PATCHv8 3/3] vhost_net: a kernel-level virtio server

2009-11-08 Thread Michael S. Tsirkin
On Fri, Nov 06, 2009 at 03:29:17PM +1030, Rusty Russell wrote: On Thu, 5 Nov 2009 02:27:24 am Michael S. Tsirkin wrote: What it is: vhost net is a character device that can be used to reduce the number of system calls involved in virtio networking. Hi Michael, Now everyone else has

Re: xp guest, blue screen c0000221 on boot

2009-11-08 Thread Avi Kivity
On 11/04/2009 07:06 PM, Andrew Olney wrote: Host is ext3 Linux monkamu 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux QEMU PC emulator version 0.11.0 (qemu-kvm-0.11.0), Copyright (c) 2003-2008 Fabrice Bellard If you convert a qcow image back to raw on

Re: [PATCH 02/11] Add handle page fault PV helper.

2009-11-08 Thread Avi Kivity
On 11/08/2009 01:36 PM, Ingo Molnar wrote: Three existing callbacks are: kmemcheck, mmiotrace, notifier. Two of them kmemcheck, mmiotrace are enabled only for debugging, should not be performance concern. And notifier call sites (two of them) are deliberately, as explained by comment, not at the

Re: Recording interrupted instruction on ioapic_set_irq

2009-11-08 Thread Avi Kivity
On 11/07/2009 10:13 PM, Kurt Kiefer wrote: Hi guys, I'm trying to record the instruction pointer at the exact time a guest was delivered an IOAPIC interrupt. Take for example a PS2 keyboard press. Clearly, when I read IP during the subsequent exit for IO_INSTRUCTION I'm just recording the IP

Re: [PATCH 02/11] Add handle page fault PV helper.

2009-11-08 Thread Ingo Molnar
* Avi Kivity a...@redhat.com wrote: On 11/08/2009 01:36 PM, Ingo Molnar wrote: Three existing callbacks are: kmemcheck, mmiotrace, notifier. Two of them kmemcheck, mmiotrace are enabled only for debugging, should not be performance concern. And notifier call sites (two of them) are

Re: [PATCH 02/11] Add handle page fault PV helper.

2009-11-08 Thread Avi Kivity
On 11/08/2009 02:51 PM, Ingo Molnar wrote: Maybe we should generalize paravirt-ops patching in case if (x) f() is deemed too expensive. Yes, that's a nice idea. We have quite a number of 'conditional callbacks' in various critical paths that could be made lighter via such a technique. It

Re: [PATCH 02/11] Add handle page fault PV helper.

2009-11-08 Thread Ingo Molnar
* Avi Kivity a...@redhat.com wrote: On 11/08/2009 02:51 PM, Ingo Molnar wrote: Maybe we should generalize paravirt-ops patching in case if (x) f() is deemed too expensive. Yes, that's a nice idea. We have quite a number of 'conditional callbacks' in various critical paths that could be made

Re: [PATCH] qemu-kvm: clear only essential parts of VirtIOBlockReq on object allocation

2009-11-08 Thread Avi Kivity
On 11/04/2009 07:41 PM, Saul Tamari wrote: This patch reduces the size of memory being cleared on every virtio-blk IO. On every virtio-blk IO passed to QEMU, virtio_blk_alloc_request() allocates and clears (with qemu_mallocz()) a VirtIOBlockReq object. The sizeof(VirtIOBlockReq) equals 41040

Re: [PATCH 02/11] Add handle page fault PV helper.

2009-11-08 Thread Avi Kivity
On 11/08/2009 03:05 PM, Ingo Molnar wrote: We can take the immediate values infrastructure as a first step. Has that been merged? No, there were doubts about whether patching in live instructions like that is safe on all CPU types. Ah, I remember. Doesn't the trick of going through

Re: [PATCH 02/11] Add handle page fault PV helper.

2009-11-08 Thread H. Peter Anvin
On 11/08/2009 04:51 AM, Ingo Molnar wrote: * Avi Kivity a...@redhat.com wrote: On 11/08/2009 01:36 PM, Ingo Molnar wrote: Three existing callbacks are: kmemcheck, mmiotrace, notifier. Two of them kmemcheck, mmiotrace are enabled only for debugging, should not be performance concern. And

Re: [PATCH 02/11] Add handle page fault PV helper.

2009-11-08 Thread Ingo Molnar
* H. Peter Anvin h...@zytor.com wrote: On 11/08/2009 04:51 AM, Ingo Molnar wrote: * Avi Kivity a...@redhat.com wrote: On 11/08/2009 01:36 PM, Ingo Molnar wrote: Three existing callbacks are: kmemcheck, mmiotrace, notifier. Two of them kmemcheck, mmiotrace are enabled only for

Doubt on KVM-88 vulnerabilities

2009-11-08 Thread Daniel Bareiro
Hi all! I'm using KVM-88 compiled by myself from the source code provided by the official site of the project. Is this version of KVM vulnerable to the mentioned thing in the DSA-1907-1 [1]? In such case, there is some published patch that can be applied or some new version that solves this?

Re: [PATCHv7 3/3] vhost_net: a kernel-level virtio server

2009-11-08 Thread Paul E. McKenney
On Sun, Nov 08, 2009 at 02:39:59PM +1030, Rusty Russell wrote: On Sat, 7 Nov 2009 03:00:07 am Paul E. McKenney wrote: On Fri, Nov 06, 2009 at 03:31:20PM +1030, Rusty Russell wrote: But it's still nasty to use half an API. If it were a few places I would have open-coded it with a comment,

Reserve CPU cores for specific guests?

2009-11-08 Thread Neil Aggarwal
Hello: I don't think there is a way to do this with KVM, but I figured I would ask: I want to be able to offer virtual private servers (VPSs) to clients. I am going to use KVM for it. I would like to offer clients the option to buy either: 1. A VPS which allows CPUs to be overcommitted. 2. A

Re: Reserve CPU cores for specific guests?

2009-11-08 Thread Zdenek Kaspar
Neil Aggarwal napsal(a): Hello: I don't think there is a way to do this with KVM, but I figured I would ask: I want to be able to offer virtual private servers (VPSs) to clients. I am going to use KVM for it. I would like to offer clients the option to buy either: 1. A VPS which

[ kvm-Bugs-2894352 ] Ctrl+Alt+f

2009-11-08 Thread SourceForge.net
Bugs item #2894352, was opened at 2009-11-09 03:03 Message generated for change (Tracker Item Submitted) made by pawelwalaszek You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2894352group_id=180599 Please note that this message will contain a full copy of

[ kvm-Bugs-2894352 ] Ctrl+Alt+f doesn't work

2009-11-08 Thread SourceForge.net
Bugs item #2894352, was opened at 2009-11-09 03:03 Message generated for change (Settings changed) made by pawelwalaszek You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2894352group_id=180599 Please note that this message will contain a full copy of the

RE: Reserve CPU cores for specific guests?

2009-11-08 Thread Neil Aggarwal
I think you can achieve that on some simple level DIY with taskset from util-linux(-ng). That is a good utility to know. I did not know about that earlier. Thanks for the info. I am wondering one thing though: I will either need to call taskset when executing the process or run taskset on

Re: Reserve CPU cores for specific guests?

2009-11-08 Thread Thomas Fjellstrom
On Sun November 8 2009, Neil Aggarwal wrote: I think you can achieve that on some simple level DIY with taskset from util-linux(-ng). That is a good utility to know. I did not know about that earlier. Thanks for the info. I am wondering one thing though: I will either need to

[RFC] KVM Fault Tolerance: Kemari for KVM

2009-11-08 Thread Fernando Luis Vázquez Cao
Hi all, It has been a while coming, but we have finally started work on Kemari's port to KVM. For those not familiar with it, Kemari provides the basic building block to create a virtualization-based fault tolerant machine: a virtual machine synchronization mechanism. Traditional high

RE: Reserve CPU cores for specific guests?

2009-11-08 Thread Neil Aggarwal
None directly related, but libvirt's kvm support supports pinning a vm to a physical cpu. At least it has the option in virt-manager. That is exactly what I needed. My KVM host does not have a GUI so I have been using virsh. I did not notice that option before. Thank you, Neil --

[ kvm-Bugs-2847560 ] Guest hang with exhausted IRQ sources error if 8 VFs assigne

2009-11-08 Thread SourceForge.net
Bugs item #2847560, was opened at 2009-08-30 22:58 Message generated for change (Settings changed) made by jiajun You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=893831aid=2847560group_id=180599 Please note that this message will contain a full copy of the comment

Re: [PATCHv8 3/3] vhost_net: a kernel-level virtio server

2009-11-08 Thread Rusty Russell
On Sun, 8 Nov 2009 10:05:16 pm Michael S. Tsirkin wrote: On Fri, Nov 06, 2009 at 03:29:17PM +1030, Rusty Russell wrote: +/* Caller must have TX VQ lock */ +static void tx_poll_stop(struct vhost_net *net) +{ + if (likely(net-tx_poll_state != VHOST_NET_POLL_STARTED)) +

Re: [PATCHv8 3/3] vhost_net: a kernel-level virtio server

2009-11-08 Thread Michael S. Tsirkin
On Mon, Nov 9, 2009 at 8:17 AM, Rusty Russell ru...@rustcorp.com.au wrote: +static void vhost_net_set_features(struct vhost_net *n, u64 features) +{ + size_t hdr_size = features (1 VHOST_NET_F_VIRTIO_NET_HDR) ? +         sizeof(struct virtio_net_hdr) : 0; + int i; +

Re: [PATCHv8 3/3] vhost_net: a kernel-level virtio server

2009-11-08 Thread Michael S. Tsirkin
On Mon, Nov 09, 2009 at 04:47:29PM +1030, Rusty Russell wrote: On Sun, 8 Nov 2009 10:05:16 pm Michael S. Tsirkin wrote: On Fri, Nov 06, 2009 at 03:29:17PM +1030, Rusty Russell wrote: +/* Caller must have TX VQ lock */ +static void tx_poll_stop(struct vhost_net *net) +{ +