Re: [PATCH 0/9] virtio: new API for addition of buffers, scatterlist changes

2013-02-19 Thread Rusty Russell
Paolo Bonzini pbonz...@redhat.com writes: virtio_ring: virtqueue_add_sgs, to add multiple sgs. virtio_scsi and virtio_blk can really use these, to avoid their current hack of copying the whole sg array. Signed-off-by: Ruty Russell ru...@rustcorp.com.au It's much better than the other

Re: [Bisected][-next-20130204+] [x86/kvm] udevd:[97]: segfault at ffffffffff5fd020 ip 00007fff069e277f sp 00007fff068c9ef8 error d

2013-02-19 Thread Gleb Natapov
On Mon, Feb 18, 2013 at 08:12:21PM -0500, Peter Hurley wrote: On Mon, 2013-02-18 at 19:59 -0300, Marcelo Tosatti wrote: On Wed, Feb 13, 2013 at 06:57:09AM -0500, Peter Hurley wrote: On Wed, 2013-02-13 at 12:51 +0200, Gleb Natapov wrote: On Tue, Feb 12, 2013 at 04:39:03PM -0800, H. Peter

Re: [PATCH 0/9] virtio: new API for addition of buffers, scatterlist changes

2013-02-19 Thread Paolo Bonzini
Il 19/02/2013 08:49, Rusty Russell ha scritto: But modulo devastating benchmarks, this wins. Because the three-part API is really, really ugly. It *looks* like a generic start - work ... work - end API, but it's not. Because you need to declare exactly what you're doing in

Re: [PATCH] KVM: nVMX: Fix direct injection of interrupts from L0 to L2

2013-02-19 Thread Jan Kiszka
On 2013-02-17 18:35, Gleb Natapov wrote: On Sun, Feb 17, 2013 at 06:01:05PM +0100, Jan Kiszka wrote: On 2013-02-17 17:26, Gleb Natapov wrote: On Sun, Feb 17, 2013 at 04:31:26PM +0100, Jan Kiszka wrote: On 2013-02-17 16:07, Gleb Natapov wrote: On Sat, Feb 16, 2013 at 06:10:14PM +0100, Jan

[Bug 54071] kvm guests stuck (not in io) and cannot be killed using -9

2013-02-19 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=54071 Corin Langosch i...@corinlangosch.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: [RFC PATCH 1/6] kvm: add device control API

2013-02-19 Thread Gleb Natapov
On Mon, Feb 18, 2013 at 05:01:40PM -0600, Scott Wood wrote: On 02/18/2013 06:21:59 AM, Gleb Natapov wrote: Copying Christoffer since ARM has in kernel irq chip too. On Wed, Feb 13, 2013 at 11:49:15PM -0600, Scott Wood wrote: Currently, devices that are emulated inside KVM are configured in

Re: [RFC PATCH 1/6] kvm: add device control API

2013-02-19 Thread Gleb Natapov
On Mon, Feb 18, 2013 at 09:50:44PM -0800, Christoffer Dall wrote: +static int kvm_ioctl_create_device(struct kvm *kvm, + struct kvm_create_device *cd) +{ + struct kvm_device *dev = NULL; + bool test = cd-flags KVM_CREATE_DEVICE_TEST;

Re: Helping with KVM development

2013-02-19 Thread Gleb Natapov
Hi Brandon, On Fri, Feb 15, 2013 at 02:27:35PM -0500, Brandon Dwiel wrote: Hi, I'm a computer engineering PhD student and I have the opportunity to contribute something to KVM as a class project. I found a few interesting items on the KVM TODO list (http://www.linux-kvm.org/page/TODO) that

Re: [PATCH] KVM: nVMX: Fix direct injection of interrupts from L0 to L2

2013-02-19 Thread Gleb Natapov
Copying Alex. He wrote nested SVM. On Tue, Feb 19, 2013 at 11:04:01AM +0100, Jan Kiszka wrote: On 2013-02-17 18:35, Gleb Natapov wrote: On Sun, Feb 17, 2013 at 06:01:05PM +0100, Jan Kiszka wrote: On 2013-02-17 17:26, Gleb Natapov wrote: On Sun, Feb 17, 2013 at 04:31:26PM +0100, Jan Kiszka

Re: x86: pvclock kvm: align allocation size to page size

2013-02-19 Thread Gleb Natapov
On Mon, Feb 18, 2013 at 10:58:14PM -0300, Marcelo Tosatti wrote: To match whats mapped via vsyscalls to userspace. Reported-by: Peter Hurley pe...@hurleysoftware.com Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Reviewed-by: Gleb Natapov g...@redhat.com diff --git

Re: [PATCH] KVM: nVMX: Fix direct injection of interrupts from L0 to L2

2013-02-19 Thread Jan Kiszka
On 2013-02-19 14:13, Gleb Natapov wrote: Copying Alex. He wrote nested SVM. On Tue, Feb 19, 2013 at 11:04:01AM +0100, Jan Kiszka wrote: On 2013-02-17 18:35, Gleb Natapov wrote: On Sun, Feb 17, 2013 at 06:01:05PM +0100, Jan Kiszka wrote: On 2013-02-17 17:26, Gleb Natapov wrote: On Sun, Feb

[PATCH v3 1/2] KVM: VMX: enable acknowledge interupt on vmexit

2013-02-19 Thread Yang Zhang
From: Yang Zhang yang.z.zh...@intel.com The acknowledge interrupt on exit feature controls processor behavior for external interrupt acknowledgement. When this control is set, the processor acknowledges the interrupt controller to acquire the interrupt vector on VM exit. After enabling this

[PATCH v3 2/2] KVM: VMX: Add Posted Interrupt supporting

2013-02-19 Thread Yang Zhang
From: Yang Zhang yang.z.zh...@intel.com Posted Interrupt allows APIC interrupts to inject into guest directly without any vmexit. - When delivering a interrupt to guest, if target vcpu is running, update Posted-interrupt requests bitmap and send a notification event to the vcpu. Then the

[PATCH v3 0/2] KVM: VMX: Add Posted Interrupt supporting

2013-02-19 Thread Yang Zhang
From: Yang Zhang yang.z.zh...@intel.com The two patches are adding the Posted Interrupt supporting to KVM: The first patch enables the feature 'acknowledge interrupt on vmexit'.Since it is required by Posted interrupt, we need to enable it firstly. And the second patch is adding the posted

Re: KVM call agenda for 2013-02-19

2013-02-19 Thread Juan Quintela
Juan Quintela quint...@redhat.com wrote: Hi Please send in any agenda topics you are interested in. There are no topic, so happy hacking. Later, Juan. -- 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

Re: [RFC PATCH 1/6] kvm: add device control API

2013-02-19 Thread Christoffer Dall
On Tue, Feb 19, 2013 at 4:24 AM, Gleb Natapov g...@redhat.com wrote: On Mon, Feb 18, 2013 at 05:01:40PM -0600, Scott Wood wrote: On 02/18/2013 06:21:59 AM, Gleb Natapov wrote: Copying Christoffer since ARM has in kernel irq chip too. On Wed, Feb 13, 2013 at 11:49:15PM -0600, Scott Wood

Re: [PATCH] KVM: nVMX: Fix direct injection of interrupts from L0 to L2

2013-02-19 Thread Joerg Roedel
On Tue, Feb 19, 2013 at 11:04:01AM +0100, Jan Kiszka wrote: I had a look at SVM to check how it deals with this, but I'm not sure if I understand the logic correctly. SVM does: static int nested_svm_vmexit(struct vcpu_svm *svm) { ... /* * If we emulate a VMRUN/#VMEXIT

Re: [PATCH] KVM: nVMX: Fix direct injection of interrupts from L0 to L2

2013-02-19 Thread Jan Kiszka
On 2013-02-19 17:14, Joerg Roedel wrote: On Tue, Feb 19, 2013 at 11:04:01AM +0100, Jan Kiszka wrote: I had a look at SVM to check how it deals with this, but I'm not sure if I understand the logic correctly. SVM does: static int nested_svm_vmexit(struct vcpu_svm *svm) { ... /*

Re: [PATCH v3 1/2] KVM: VMX: enable acknowledge interupt on vmexit

2013-02-19 Thread Avi Kivity
On Tue, Feb 19, 2013 at 3:39 PM, Yang Zhang yang.z.zh...@intel.com wrote: From: Yang Zhang yang.z.zh...@intel.com The acknowledge interrupt on exit feature controls processor behavior for external interrupt acknowledgement. When this control is set, the processor acknowledges the interrupt

Re: [RFC PATCH 1/6] kvm: add device control API

2013-02-19 Thread Scott Wood
On 02/18/2013 11:50:44 PM, Christoffer Dall wrote: On Mon, Feb 18, 2013 at 4:53 PM, Scott Wood scottw...@freescale.com wrote: On 02/18/2013 06:44:20 PM, Christoffer Dall wrote: On Wed, Feb 13, 2013 at 9:49 PM, Scott Wood scottw...@freescale.com +#define KVM_CREATE_DEVICE

Re: [RFC PATCH 1/6] kvm: add device control API

2013-02-19 Thread Scott Wood
On 02/19/2013 06:24:18 AM, Gleb Natapov wrote: On Mon, Feb 18, 2013 at 05:01:40PM -0600, Scott Wood wrote: The ability to set/get attributes is needed. Sorry, but get or set one blob of data, up to 512 bytes, for the entire irqchip is just not good enough -- assuming you don't want us to

Re: [PATCH 3/9] KVM: PPC: Book3S: Add kernel emulation for the XICS interrupt controller

2013-02-19 Thread Paul Mackerras
On Mon, Feb 18, 2013 at 04:43:27PM -0600, Scott Wood wrote: On 02/15/2013 10:51:16 PM, Paul Mackerras wrote: The KVM_CREATE_IRQCHIP_ARGS ioctl says that you want emulation of a specific interrupt controller architecture connected to the vcpus' external interrupt inputs. In that sense it's

Re: [PATCH 3/9] KVM: PPC: Book3S: Add kernel emulation for the XICS interrupt controller

2013-02-19 Thread Scott Wood
On 02/19/2013 06:41:11 PM, Paul Mackerras wrote: On Mon, Feb 18, 2013 at 04:43:27PM -0600, Scott Wood wrote: On 02/15/2013 10:51:16 PM, Paul Mackerras wrote: The KVM_CREATE_IRQCHIP_ARGS ioctl says that you want emulation of a specific interrupt controller architecture connected to the vcpus'

Re: [RFC PATCH 1/6] kvm: add device control API

2013-02-19 Thread Christoffer Dall
On Tue, Feb 19, 2013 at 12:16 PM, Scott Wood scottw...@freescale.com wrote: On 02/18/2013 11:50:44 PM, Christoffer Dall wrote: On Mon, Feb 18, 2013 at 4:53 PM, Scott Wood scottw...@freescale.com wrote: On 02/18/2013 06:44:20 PM, Christoffer Dall wrote: On Wed, Feb 13, 2013 at 9:49 PM,

[uq/master PATCH] target-i386: kvm: save/restore steal time MSR

2013-02-19 Thread Marcelo Tosatti
Read and write steal time MSR, so that reporting is functional across migration. Signed-off-by: Marcelo Tosatti mtosa...@redhat.com diff --git a/target-i386/cpu.h b/target-i386/cpu.h index 7577e4f..17c7293 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -792,6 +792,7 @@ typedef struct

[Bug 54061] guest panic after live migration

2013-02-19 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=54061 Marcelo Tosatti mtosa...@redhat.com changed: What|Removed |Added CC||mtosa...@redhat.com

RE: [PATCH v3 1/2] KVM: VMX: enable acknowledge interupt on vmexit

2013-02-19 Thread Zhang, Yang Z
Avi Kivity wrote on 2013-02-20: On Tue, Feb 19, 2013 at 3:39 PM, Yang Zhang yang.z.zh...@intel.com wrote: From: Yang Zhang yang.z.zh...@intel.com The acknowledge interrupt on exit feature controls processor behavior for external interrupt acknowledgement. When this control is set, the

Re: [PATCH v12 rebased 1/8] preserve cpu runstate

2013-02-19 Thread Hu Tao
On Thu, Feb 07, 2013 at 11:45:34PM -0200, Marcelo Tosatti wrote: On Wed, Jan 23, 2013 at 03:19:22PM +0800, Hu Tao wrote: This patch enables preservation of cpu runstate during save/load vm. So when a vm is restored from snapshot, the cpu runstate is restored, too. See following

Re: [RFC PATCH 1/6] kvm: add device control API

2013-02-19 Thread Gleb Natapov
On Mon, Feb 18, 2013 at 05:01:40PM -0600, Scott Wood wrote: On 02/18/2013 06:21:59 AM, Gleb Natapov wrote: Copying Christoffer since ARM has in kernel irq chip too. On Wed, Feb 13, 2013 at 11:49:15PM -0600, Scott Wood wrote: Currently, devices that are emulated inside KVM are configured in

Re: [RFC PATCH 1/6] kvm: add device control API

2013-02-19 Thread Gleb Natapov
On Mon, Feb 18, 2013 at 09:50:44PM -0800, Christoffer Dall wrote: +static int kvm_ioctl_create_device(struct kvm *kvm, + struct kvm_create_device *cd) +{ + struct kvm_device *dev = NULL; + bool test = cd-flags KVM_CREATE_DEVICE_TEST;

Re: [RFC PATCH 1/6] kvm: add device control API

2013-02-19 Thread Christoffer Dall
On Tue, Feb 19, 2013 at 4:24 AM, Gleb Natapov g...@redhat.com wrote: On Mon, Feb 18, 2013 at 05:01:40PM -0600, Scott Wood wrote: On 02/18/2013 06:21:59 AM, Gleb Natapov wrote: Copying Christoffer since ARM has in kernel irq chip too. On Wed, Feb 13, 2013 at 11:49:15PM -0600, Scott Wood

Re: [RFC PATCH 1/6] kvm: add device control API

2013-02-19 Thread Scott Wood
On 02/19/2013 06:24:18 AM, Gleb Natapov wrote: On Mon, Feb 18, 2013 at 05:01:40PM -0600, Scott Wood wrote: The ability to set/get attributes is needed. Sorry, but get or set one blob of data, up to 512 bytes, for the entire irqchip is just not good enough -- assuming you don't want us to

Re: [PATCH 3/9] KVM: PPC: Book3S: Add kernel emulation for the XICS interrupt controller

2013-02-19 Thread Paul Mackerras
On Mon, Feb 18, 2013 at 04:43:27PM -0600, Scott Wood wrote: On 02/15/2013 10:51:16 PM, Paul Mackerras wrote: The KVM_CREATE_IRQCHIP_ARGS ioctl says that you want emulation of a specific interrupt controller architecture connected to the vcpus' external interrupt inputs. In that sense it's