Re: [PATCH] KVM: nVMX: Fully support of nested VMX preemption timer

2013-08-25 Thread Jan Kiszka
On 2013-08-24 20:44, root wrote: This patch contains the following two changes: 1. Fix the bug in nested preemption timer support. If vmexit L2-L0 with some reasons not emulated by L1, preemption timer value should be save in such exits. 2. Add support of Save VMX-preemption timer value

Re: [PATCH v3 0/6] KVM: nVMX: Enable unrestricted guest mode and fix some nEPT issues

2013-08-25 Thread Jan Kiszka
On 2013-08-08 16:26, Jan Kiszka wrote: These patches apply on top of kvm.git queue. Changes in v3: - rebased over queue - added Do not set identity page map for L2 - dropped Fix guest CR3 read-back on VM-exit Jan Kiszka (6): KVM: nVMX: Replace kvm_set_cr0 with vmx_set_cr0 in

Re: [PATCH 1/2] kvm: use anon_inode_getfd() with O_CLOEXEC flag

2013-08-25 Thread Paolo Bonzini
Il 24/08/2013 22:14, Yann Droneaud ha scritto: KVM uses anon_inode_get() to allocate file descriptors as part of some of its ioctls. But those ioctls are lacking a flag argument allowing userspace to choose options for the newly opened file descriptor. In such case it's advised to use

Re: [PATCH] KVM: nVMX: Fully support of nested VMX preemption timer

2013-08-25 Thread Arthur Chunqi Li
On Sun, Aug 25, 2013 at 2:44 PM, Jan Kiszka jan.kis...@web.de wrote: On 2013-08-24 20:44, root wrote: This patch contains the following two changes: 1. Fix the bug in nested preemption timer support. If vmexit L2-L0 with some reasons not emulated by L1, preemption timer value should be save

Re: [PATCH] KVM: nVMX: Fully support of nested VMX preemption timer

2013-08-25 Thread Jan Kiszka
On 2013-08-25 09:24, Arthur Chunqi Li wrote: On Sun, Aug 25, 2013 at 2:44 PM, Jan Kiszka jan.kis...@web.de wrote: On 2013-08-24 20:44, root wrote: This patch contains the following two changes: 1. Fix the bug in nested preemption timer support. If vmexit L2-L0 with some reasons not emulated

Re: [PATCH] KVM: nVMX: Fully support of nested VMX preemption timer

2013-08-25 Thread Abel Gordon
From: Jan Kiszka jan.kis...@web.de To: 李春奇 Arthur Chunqi Li yzt...@gmail.com, Cc: kvm@vger.kernel.org, g...@redhat.com, pbonz...@redhat.com Date: 25/08/2013 09:44 AM Subject: Re: [PATCH] KVM: nVMX: Fully support of nested VMX preemption timer Sent by: kvm-ow...@vger.kernel.org On

Re: [PATCH] KVM: nVMX: Fully support of nested VMX preemption timer

2013-08-25 Thread Arthur Chunqi Li
On Sun, Aug 25, 2013 at 3:28 PM, Jan Kiszka jan.kis...@web.de wrote: On 2013-08-25 09:24, Arthur Chunqi Li wrote: On Sun, Aug 25, 2013 at 2:44 PM, Jan Kiszka jan.kis...@web.de wrote: On 2013-08-24 20:44, root wrote: This patch contains the following two changes: 1. Fix the bug in nested

Re: [PATCH] KVM: nVMX: Fully support of nested VMX preemption timer

2013-08-25 Thread Jan Kiszka
On 2013-08-25 09:37, Abel Gordon wrote: From: Jan Kiszka jan.kis...@web.de To: 李春奇 Arthur Chunqi Li yzt...@gmail.com, Cc: kvm@vger.kernel.org, g...@redhat.com, pbonz...@redhat.com Date: 25/08/2013 09:44 AM Subject: Re: [PATCH] KVM: nVMX: Fully support of nested VMX preemption timer

Re: [PATCH] KVM: nVMX: Fully support of nested VMX preemption timer

2013-08-25 Thread Arthur Chunqi Li
On Sun, Aug 25, 2013 at 3:37 PM, Abel Gordon ab...@il.ibm.com wrote: From: Jan Kiszka jan.kis...@web.de To: 李春奇 Arthur Chunqi Li yzt...@gmail.com, Cc: kvm@vger.kernel.org, g...@redhat.com, pbonz...@redhat.com Date: 25/08/2013 09:44 AM Subject: Re: [PATCH] KVM: nVMX: Fully support of nested

Re: [PATCH] KVM: nVMX: Fully support of nested VMX preemption timer

2013-08-25 Thread Jan Kiszka
On 2013-08-25 09:37, Arthur Chunqi Li wrote: On Sun, Aug 25, 2013 at 3:28 PM, Jan Kiszka jan.kis...@web.de wrote: On 2013-08-25 09:24, Arthur Chunqi Li wrote: On Sun, Aug 25, 2013 at 2:44 PM, Jan Kiszka jan.kis...@web.de wrote: On 2013-08-24 20:44, root wrote: This patch contains the

Re: [PATCH] KVM: nVMX: Fully support of nested VMX preemption timer

2013-08-25 Thread Arthur Chunqi Li
On Sun, Aug 25, 2013 at 3:44 PM, Jan Kiszka jan.kis...@web.de wrote: On 2013-08-25 09:37, Arthur Chunqi Li wrote: On Sun, Aug 25, 2013 at 3:28 PM, Jan Kiszka jan.kis...@web.de wrote: On 2013-08-25 09:24, Arthur Chunqi Li wrote: On Sun, Aug 25, 2013 at 2:44 PM, Jan Kiszka jan.kis...@web.de

Re: [PATCH] KVM: nVMX: Fully support of nested VMX preemption timer

2013-08-25 Thread Abel Gordon
kvm-ow...@vger.kernel.org wrote on 25/08/2013 10:43:12 AM: From: Jan Kiszka jan.kis...@web.de To: Abel Gordon/Haifa/IBM@IBMIL, Cc: g...@redhat.com, kvm@vger.kernel.org, kvm-ow...@vger.kernel.org, pbonz...@redhat.com, 李春奇 Arthur Chunqi Li yzt...@gmail.com Date: 25/08/2013 10:43 AM Subject:

Re: [PATCH] KVM: nVMX: Fully support of nested VMX preemption timer

2013-08-25 Thread Jan Kiszka
On 2013-08-25 09:50, Abel Gordon wrote: kvm-ow...@vger.kernel.org wrote on 25/08/2013 10:43:12 AM: From: Jan Kiszka jan.kis...@web.de To: Abel Gordon/Haifa/IBM@IBMIL, Cc: g...@redhat.com, kvm@vger.kernel.org, kvm-ow...@vger.kernel.org, pbonz...@redhat.com, 李春奇 Arthur Chunqi Li

Re: [PATCH] KVM: nVMX: Fully support of nested VMX preemption timer

2013-08-25 Thread Arthur Chunqi Li
On Sun, Aug 25, 2013 at 3:50 PM, Abel Gordon ab...@il.ibm.com wrote: kvm-ow...@vger.kernel.org wrote on 25/08/2013 10:43:12 AM: From: Jan Kiszka jan.kis...@web.de To: Abel Gordon/Haifa/IBM@IBMIL, Cc: g...@redhat.com, kvm@vger.kernel.org, kvm-ow...@vger.kernel.org, pbonz...@redhat.com, 李春奇

Re: [PATCH] KVM: nVMX: Fully support of nested VMX preemption timer

2013-08-25 Thread Abel Gordon
kvm-ow...@vger.kernel.org wrote on 25/08/2013 10:55:24 AM: From: Arthur Chunqi Li yzt...@gmail.com To: Abel Gordon/Haifa/IBM@IBMIL, Cc: Jan Kiszka jan.kis...@web.de, Gleb Natapov g...@redhat.com, kvm kvm@vger.kernel.org, kvm-ow...@vger.kernel.org, Paolo Bonzini pbonz...@redhat.com Date:

Re: [PATCH] KVM: nVMX: Fully support of nested VMX preemption timer

2013-08-25 Thread Jan Kiszka
On 2013-08-25 10:04, Abel Gordon wrote: kvm-ow...@vger.kernel.org wrote on 25/08/2013 10:55:24 AM: From: Arthur Chunqi Li yzt...@gmail.com To: Abel Gordon/Haifa/IBM@IBMIL, Cc: Jan Kiszka jan.kis...@web.de, Gleb Natapov g...@redhat.com, kvm kvm@vger.kernel.org, kvm-ow...@vger.kernel.org,

Re: [PATCH] KVM: nVMX: Fully support of nested VMX preemption timer

2013-08-25 Thread Abel Gordon
kvm-ow...@vger.kernel.org wrote on 25/08/2013 10:54:13 AM: From: Jan Kiszka jan.kis...@web.de To: Abel Gordon/Haifa/IBM@IBMIL, Cc: g...@redhat.com, kvm kvm@vger.kernel.org, pbonz...@redhat.com, 李春奇 Arthur Chunqi Li yzt...@gmail.com Date: 25/08/2013 10:54 AM Subject: Re: [PATCH] KVM:

Re: [PATCH] KVM: nVMX: Fully support of nested VMX preemption timer

2013-08-25 Thread Jan Kiszka
On 2013-08-25 10:18, Abel Gordon wrote: kvm-ow...@vger.kernel.org wrote on 25/08/2013 10:54:13 AM: From: Jan Kiszka jan.kis...@web.de To: Abel Gordon/Haifa/IBM@IBMIL, Cc: g...@redhat.com, kvm kvm@vger.kernel.org, pbonz...@redhat.com, 李春奇 Arthur Chunqi Li yzt...@gmail.com Date:

Re: [PATCH] KVM: nVMX: Fully support of nested VMX preemption timer

2013-08-25 Thread Jan Kiszka
On 2013-08-25 10:25, Jan Kiszka wrote: On 2013-08-25 10:18, Abel Gordon wrote: kvm-ow...@vger.kernel.org wrote on 25/08/2013 10:54:13 AM: From: Jan Kiszka jan.kis...@web.de To: Abel Gordon/Haifa/IBM@IBMIL, Cc: g...@redhat.com, kvm kvm@vger.kernel.org, pbonz...@redhat.com, 李春奇 Arthur

Re: [PATCH] KVM: nVMX: Fully support of nested VMX preemption timer

2013-08-25 Thread Abel Gordon
Jan Kiszka jan.kis...@web.de wrote on 25/08/2013 11:27:22 AM: From: Jan Kiszka jan.kis...@web.de To: Abel Gordon/Haifa/IBM@IBMIL, Cc: g...@redhat.com, kvm kvm@vger.kernel.org, pbonz...@redhat.com, 李春奇 Arthur Chunqi Li yzt...@gmail.com Date: 25/08/2013 11:27 AM Subject: Re: [PATCH] KVM:

Re: [PATCH] KVM: nVMX: Fully support of nested VMX preemption timer

2013-08-25 Thread Arthur Chunqi Li
On Sun, Aug 25, 2013 at 4:18 PM, Abel Gordon ab...@il.ibm.com wrote: kvm-ow...@vger.kernel.org wrote on 25/08/2013 10:54:13 AM: From: Jan Kiszka jan.kis...@web.de To: Abel Gordon/Haifa/IBM@IBMIL, Cc: g...@redhat.com, kvm kvm@vger.kernel.org, pbonz...@redhat.com, 李春奇 Arthur Chunqi Li

Re: Partial huge page backing with KVM/qemu

2013-08-25 Thread Gleb Natapov
On Sat, Aug 24, 2013 at 12:32:07AM +, Chris Leduc wrote: Hi - In a KVM/qemu environment is it possible for the host to back only a portion of the guests memory with huge pages?  In some situations it may not be desirable to back the entirety of a guest's memory with huge pages (as can

Re: [PATCH] KVM: nVMX: Fully support of nested VMX preemption timer

2013-08-25 Thread Jan Kiszka
On 2013-08-25 10:41, Arthur Chunqi Li wrote: On Sun, Aug 25, 2013 at 4:18 PM, Abel Gordon ab...@il.ibm.com wrote: kvm-ow...@vger.kernel.org wrote on 25/08/2013 10:54:13 AM: From: Jan Kiszka jan.kis...@web.de To: Abel Gordon/Haifa/IBM@IBMIL, Cc: g...@redhat.com, kvm kvm@vger.kernel.org,

Re: [PATCH] KVM: nVMX: Fully support of nested VMX preemption timer

2013-08-25 Thread Arthur Chunqi Li
On Sun, Aug 25, 2013 at 4:53 PM, Jan Kiszka jan.kis...@web.de wrote: On 2013-08-25 10:41, Arthur Chunqi Li wrote: On Sun, Aug 25, 2013 at 4:18 PM, Abel Gordon ab...@il.ibm.com wrote: kvm-ow...@vger.kernel.org wrote on 25/08/2013 10:54:13 AM: From: Jan Kiszka jan.kis...@web.de To: Abel

Re: [PATCH] KVM: nVMX: Fully support of nested VMX preemption timer

2013-08-25 Thread Jan Kiszka
On 2013-08-25 11:07, Arthur Chunqi Li wrote: On Sun, Aug 25, 2013 at 4:53 PM, Jan Kiszka jan.kis...@web.de wrote: On 2013-08-25 10:41, Arthur Chunqi Li wrote: On Sun, Aug 25, 2013 at 4:18 PM, Abel Gordon ab...@il.ibm.com wrote: kvm-ow...@vger.kernel.org wrote on 25/08/2013 10:54:13 AM:

Re: [PATCH v3 0/6] KVM: nVMX: Enable unrestricted guest mode and fix some nEPT issues

2013-08-25 Thread Paolo Bonzini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 25/08/2013 08:46, Jan Kiszka ha scritto: On 2013-08-08 16:26, Jan Kiszka wrote: These patches apply on top of kvm.git queue. Changes in v3: - rebased over queue - added Do not set identity page map for L2 - dropped Fix guest CR3 read-back on

Re: kernel 3.10.1 - NMI received for unknown reason

2013-08-25 Thread Gleb Natapov
On Fri, Aug 09, 2013 at 09:14:13PM +0200, Stefan Pietsch wrote: On 04.08.2013 14:44, Gleb Natapov wrote: On Fri, Aug 02, 2013 at 08:24:38AM +0200, Stefan Pietsch wrote: On 31.07.2013 11:20, Gleb Natapov wrote: On Wed, Jul 31, 2013 at 11:10:01AM +0200, Stefan Pietsch wrote: On 30.07.2013

Re: [PATCH 2/6] vhost_net: use vhost_add_used_and_signal_n() in vhost_zerocopy_signal_used()

2013-08-25 Thread Michael S. Tsirkin
On Fri, Aug 23, 2013 at 04:50:38PM +0800, Jason Wang wrote: On 08/20/2013 10:33 AM, Jason Wang wrote: On 08/16/2013 05:54 PM, Michael S. Tsirkin wrote: On Fri, Aug 16, 2013 at 01:16:26PM +0800, Jason Wang wrote: Switch to use vhost_add_used_and_signal_n() to avoid multiple calls to

Re: [PATCH 6/6] vhost_net: remove the max pending check

2013-08-25 Thread Michael S. Tsirkin
On Fri, Aug 23, 2013 at 04:55:49PM +0800, Jason Wang wrote: On 08/20/2013 10:48 AM, Jason Wang wrote: On 08/16/2013 06:02 PM, Michael S. Tsirkin wrote: On Fri, Aug 16, 2013 at 01:16:30PM +0800, Jason Wang wrote: We used to limit the max pending DMAs to prevent guest from pinning too

Re: [PATCH V12 3/5] kvm : Fold pv_unhalt flag into GET_MP_STATE ioctl to aid migration

2013-08-25 Thread Gleb Natapov
On Wed, Aug 07, 2013 at 12:40:36AM +0530, Raghavendra K T wrote: On 08/07/2013 12:02 AM, Eric Northup wrote: If this is about migration correctness, could it get folded into the previous patch 2/5, so that there's not a broken commit which could hurt bisection? Yes. It could be. Only

Re: [Qemu-devel] -cpu host (was Re: KVM call minutes for 2013-08-06)

2013-08-25 Thread Gleb Natapov
On Thu, Aug 08, 2013 at 05:55:09PM +0200, Andreas Färber wrote: Hi Peter, Am 08.08.2013 14:51, schrieb Peter Maydell: [I missed this KVM call but the stuff about -cpu host ties into an issue we've been grappling with for ARM KVM, so it seems a reasonable jumping-off-point.] On 6

Re: [Qemu-devel] -cpu host (was Re: KVM call minutes for 2013-08-06)

2013-08-25 Thread Gleb Natapov
On Fri, Aug 09, 2013 at 02:53:30PM -0300, Eduardo Habkost wrote: On Thu, Aug 08, 2013 at 12:29:07PM -0700, Christoffer Dall wrote: On Thu, Aug 08, 2013 at 08:05:11PM +0100, Peter Maydell wrote: On 8 August 2013 19:39, Christoffer Dall christoffer.d...@linaro.org wrote: FWIW, from the

Re: [Qemu-devel] -cpu host (was Re: KVM call minutes for 2013-08-06)

2013-08-25 Thread Gleb Natapov
On Thu, Aug 08, 2013 at 07:20:41PM +0100, Peter Maydell wrote: For ARM you can't get at feature info of the host from userspace (unless you want to get into parsing /proc/cpuinfo), so my current idea is to have KVM_ARM_VCPU_INIT support a target-cpu-type which means whatever host CPU is.

Re: [PATCH 2/3] KVM: ARM: Get rid of KVM_HPAGE_ defines

2013-08-25 Thread Gleb Natapov
On Fri, Aug 09, 2013 at 07:30:13AM -0700, Christoffer Dall wrote: The KVM_HPAGE_DEFINES are a little artificial on ARM, since the huge page size is statically defined at compile time and there is only a single huge page size. Now when the main kvm code relying on these defines has been moved

Re: [PATCH 2/3] KVM: ARM: Get rid of KVM_HPAGE_ defines

2013-08-25 Thread Peter Maydell
On 25 August 2013 15:05, Gleb Natapov g...@redhat.com wrote: (you will probably need them when you will implement nested HYP mode :)). Smiley noted, but this is pretty unlikely since it's not possible to lie to the guest about which mode it's in, so you can't make a guest think it's in Hyp

Re: [PATCH 2/3] KVM: ARM: Get rid of KVM_HPAGE_ defines

2013-08-25 Thread Gleb Natapov
On Sun, Aug 25, 2013 at 03:29:17PM +0100, Peter Maydell wrote: On 25 August 2013 15:05, Gleb Natapov g...@redhat.com wrote: (you will probably need them when you will implement nested HYP mode :)). Smiley noted, but this is pretty unlikely since it's not possible to lie to the guest about

Re: [PATCH 2/2] ppc: kvm: use anon_inode_getfd() with O_CLOEXEC flag

2013-08-25 Thread Alexander Graf
On 24.08.2013, at 21:14, Yann Droneaud wrote: KVM uses anon_inode_get() to allocate file descriptors as part of some of its ioctls. But those ioctls are lacking a flag argument allowing userspace to choose options for the newly opened file descriptor. In such case it's advised to use

Re: [PATCH 2/3] KVM: ARM: Get rid of KVM_HPAGE_ defines

2013-08-25 Thread Peter Maydell
On 25 August 2013 15:48, Gleb Natapov g...@redhat.com wrote: On Sun, Aug 25, 2013 at 03:29:17PM +0100, Peter Maydell wrote: Smiley noted, but this is pretty unlikely since it's not possible to lie to the guest about which mode it's in, so you can't make a guest think it's in Hyp mode. I

Re: [PATCH 6/8] KVM: arm-vgic: Add vgic reg access from dev attr

2013-08-25 Thread Alexander Graf
On 23.08.2013, at 20:20, Christoffer Dall wrote: Add infrastructure to handle distributor and cpu interface register accesses through the KVM_{GET/SET}_DEVICE_ATTR interface by adding the KVM_DEV_ARM_VGIC_GRP_DIST_REGS and KVM_DEV_ARM_VGIC_GRP_CPU_REGS groups and defining the semantics of

Re: [PATCH 8/8] KVM: arm-vgic: Support CPU interface reg access

2013-08-25 Thread Alexander Graf
On 23.08.2013, at 20:20, Christoffer Dall wrote: Implement support for the CPU interface register access driven by MMIO address offsets from the CPU interface base address. Useful for user space to support save/restore of the VGIC state. This commit adds support only for the same logic as

Re: [PATCH 0/8] Support VGIC save/restore using device control API

2013-08-25 Thread Alexander Graf
On 23.08.2013, at 20:19, Christoffer Dall wrote: Implement save/restore of the VGIC state using the newer KVM Device Control API. This requries some number of changes to existing code in addition to actually supporting save/restore of the necessary state. The first patches (01-03) support

Re: [PATCH 2/3] KVM: ARM: Get rid of KVM_HPAGE_ defines

2013-08-25 Thread Alexander Graf
On 25.08.2013, at 16:18, Peter Maydell wrote: On 25 August 2013 15:48, Gleb Natapov g...@redhat.com wrote: On Sun, Aug 25, 2013 at 03:29:17PM +0100, Peter Maydell wrote: Smiley noted, but this is pretty unlikely since it's not possible to lie to the guest about which mode it's in, so you

[PATCH v2] KVM: nVMX: Fully support of nested VMX preemption timer

2013-08-25 Thread Arthur Chunqi Li
This patch contains the following two changes: 1. Fix the bug in nested preemption timer support. If vmexit L2-L0 with some reasons not emulated by L1, preemption timer value should be save in such exits. 2. Add support of Save VMX-preemption timer value VM-Exit controls to nVMX. With this patch,

Re: [PATCH 2/3] KVM: ARM: Get rid of KVM_HPAGE_ defines

2013-08-25 Thread Christoffer Dall
On Sun, Aug 25, 2013 at 04:18:02PM +0100, Peter Maydell wrote: On 25 August 2013 15:48, Gleb Natapov g...@redhat.com wrote: On Sun, Aug 25, 2013 at 03:29:17PM +0100, Peter Maydell wrote: Smiley noted, but this is pretty unlikely since it's not possible to lie to the guest about which mode

Re: [PATCH v2] tile: support KVM for tilegx

2013-08-25 Thread Chris Metcalf
On 8/25/2013 7:39 AM, Gleb Natapov wrote: On Mon, Aug 12, 2013 at 04:24:11PM -0400, Chris Metcalf wrote: This change provides the initial framework support for KVM on tilegx. Basic virtual disk and networking is supported. This needs to be broken down to more reviewable patches. I already

RE: Partial huge page backing with KVM/qemu

2013-08-25 Thread Chris Leduc
-Original Message- From: Gleb Natapov [mailto:g...@redhat.com] Sent: Sunday, August 25, 2013 1:52 AM To: Chris Leduc Cc: kvm@vger.kernel.org Subject: Re: Partial huge page backing with KVM/qemu On Sat, Aug 24, 2013 at 12:32:07AM +, Chris Leduc wrote: Hi - In a KVM/qemu

[Bug 60782] [Nested] Windows XP Mode can not work

2013-08-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60782 --- Comment #2 from Zhou, Chao chao.z...@intel.com --- (In reply to Paolo Bonzini from comment #1) Try -cpu host,+vmx instead. This issue still exists. -- You are receiving this mail because: You are watching the assignee of the bug. -- To

Re: [PATCH 2/2] ppc: kvm: use anon_inode_getfd() with O_CLOEXEC flag

2013-08-25 Thread Alexander Graf
On 24.08.2013, at 21:14, Yann Droneaud wrote: KVM uses anon_inode_get() to allocate file descriptors as part of some of its ioctls. But those ioctls are lacking a flag argument allowing userspace to choose options for the newly opened file descriptor. In such case it's advised to use

Re: [PATCH] powerpc/kvm: Handle the boundary condition correctly

2013-08-25 Thread Alexander Graf
On 23.08.2013, at 05:28, Benjamin Herrenschmidt wrote: On Fri, 2013-08-23 at 09:01 +0530, Aneesh Kumar K.V wrote: Alexander Graf ag...@suse.de writes: On 22.08.2013, at 12:37, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com Isn't this you? Yes. The

Re: [PATCH] powerpc/kvm: Handle the boundary condition correctly

2013-08-25 Thread Alexander Graf
On 23.08.2013, at 04:31, Aneesh Kumar K.V wrote: Alexander Graf ag...@suse.de writes: On 22.08.2013, at 12:37, Aneesh Kumar K.V wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com Isn't this you? Yes. The patches are generated using git format-patch and sent by git