Re: [PATCH RESEND] KVM: nVMX: mask unrestricted_guest if disabled on L0

2015-03-17 Thread Kashyap Chamarthy
...@vger.kernel.org Tested-By: Kashyap Chamarthy kcham...@redhat.com Thanks Radim, for resending it. I was trying to find it in one of the recent pull requests. :-) Just for forerence, test confirmation: http://article.gmane.org/gmane.comp.emulators.kvm.devel/133075 Complete thread related to this topic

Re: [PATCH] KVM: nVMX: mask unrestricted_guest if disabled on L0

2015-02-25 Thread Kashyap Chamarthy
On Tue, Feb 24, 2015 at 05:30:06PM +0100, Radim Krčmář wrote: 2015-02-23 19:05+0100, Kashyap Chamarthy: Tested with the _correct_ Kernel[1] (that has Radim's patch) now -- applied it on both L0 and L1. Result: Same as before -- Booting L2 causes L1 to reboot. However, the stack

Re: [nVMX] With 3.20.0-0.rc0.git5.1 on L0, booting L2 guest results in L1 *rebooting*

2015-02-23 Thread Kashyap Chamarthy
On Mon, Feb 23, 2015 at 02:56:11PM +0100, Radim Krčmář wrote: 2015-02-22 16:46+0100, Kashyap Chamarthy: Radim, I just tested with your patch[1] in this thread. I built a Fedora Kernel[2] with it, and installed (and booted into) it on both L0 and L1. Result: I don't have good news

Re: [nVMX] With 3.20.0-0.rc0.git5.1 on L0, booting L2 guest results in L1 *rebooting*

2015-02-23 Thread Kashyap Chamarthy
On Mon, Feb 23, 2015 at 05:14:37PM +0100, Kashyap Chamarthy wrote: On Mon, Feb 23, 2015 at 02:56:11PM +0100, Radim Krčmář wrote: 2015-02-22 16:46+0100, Kashyap Chamarthy: Radim, I just tested with your patch[1] in this thread. I built a Fedora Kernel[2] with it, and installed

Re: [nVMX] With 3.20.0-0.rc0.git5.1 on L0, booting L2 guest results in L1 *rebooting*

2015-02-23 Thread Kashyap Chamarthy
Tested with the _correct_ Kernel[1] (that has Radim's patch) now -- applied it on both L0 and L1. Result: Same as before -- Booting L2 causes L1 to reboot. However, the stack trace from `dmesg` on L0 is took slightly different path than before -- it's using MSR handling: . . .

Re: [nVMX] With 3.20.0-0.rc0.git5.1 on L0, booting L2 guest results in L1 *rebooting*

2015-02-22 Thread Kashyap Chamarthy
Radim, I just tested with your patch[1] in this thread. I built a Fedora Kernel[2] with it, and installed (and booted into) it on both L0 and L1. Result: I don't have good news, I'm afraid: L1 *still* reboots when an L2 guest is booted. And, L0 throws the stack trace that was

Re: [nVMX] With 3.20.0-0.rc0.git5.1 on L0, booting L2 guest results in L1 *rebooting*

2015-02-20 Thread Kashyap Chamarthy
On Fri, Feb 20, 2015 at 05:14:15PM +0100, Radim Krčmář wrote: 2015-02-19 23:28+0100, Kashyap Chamarthy: On Thu, Feb 19, 2015 at 10:10:11PM +0100, Kashyap Chamarthy wrote: On Thu, Feb 19, 2015 at 05:02:22PM +0100, Radim Krčmář wrote: [. . .] Then, I did another test: - Rebooted

Re: [nVMX] With 3.20.0-0.rc0.git5.1 on L0, booting L2 guest results in L1 *rebooting*

2015-02-19 Thread Kashyap Chamarthy
On Thu, Feb 19, 2015 at 05:02:22PM +0100, Radim Krčmář wrote: 2015-02-19 16:01+0100, Radim Krčmář: 2015-02-19 13:07+0100, Kashyap Chamarthy: 5f3d5799974b8 KVM: nVMX: Rework event injection and recovery: This concept is based on the rule that a pending vmlaunch/vmresume is not canceled

Re: [nVMX] With 3.20.0-0.rc0.git5.1 on L0, booting L2 guest results in L1 *rebooting*

2015-02-19 Thread Kashyap Chamarthy
On Wed, Feb 18, 2015 at 05:42:37PM +0100, Paolo Bonzini wrote: On 17/02/2015 12:24, Kashyap Chamarthy wrote: Afraid, I didn't bisect it, but I just wanted to note that the above specific WARN was introduced in the above commit. I'm sure this Kernel (on L0) does not exhibit

Re: [nVMX] With 3.20.0-0.rc0.git5.1 on L0, booting L2 guest results in L1 *rebooting*

2015-02-19 Thread Kashyap Chamarthy
On Thu, Feb 19, 2015 at 10:10:11PM +0100, Kashyap Chamarthy wrote: On Thu, Feb 19, 2015 at 05:02:22PM +0100, Radim Krčmář wrote: [. . .] Can you try if the following patch works? Sure, will test a Kernel built with the below patch and report back. Hmm, I'm stuck with a meta issue. I

Re: [nVMX] With 3.20.0-0.rc0.git5.1 on L0, booting L2 guest results in L1 *rebooting*

2015-02-18 Thread Kashyap Chamarthy
On Tue, Feb 17, 2015 at 07:07:21PM +0100, Jan Kiszka wrote: On 2015-02-17 19:00, Bandan Das wrote: Kashyap Chamarthy kcham...@redhat.com writes: .. Does enable_apicv make a difference? Actually, I did perform a test (on Paolo's suggestion on IRC) with enable_apicv=0 on physical host

Re: [nVMX] With 3.20.0-0.rc0.git5.1 on L0, booting L2 guest results in L1 *rebooting*

2015-02-17 Thread Kashyap Chamarthy
On Tue, Feb 17, 2015 at 07:02:14AM +0100, Jan Kiszka wrote: On 2015-02-16 21:40, Kashyap Chamarthy wrote: I can observe this only one of the Intel Xeon machines (which has 48 CPUs and 1TB memory), but very reliably reproducible. Reproducer: - Just ensure physical host (L0

Re: nSVM: Booting L2 results in L1 hang and a skip_emulated_instruction

2015-02-17 Thread Kashyap Chamarthy
On Thu, Feb 12, 2015 at 07:12:06AM +0100, Jan Kiszka wrote: On 2015-02-11 19:12, Kashyap Chamarthy wrote: Hi, This was tested with kernel-3.19.0-1.fc22) and QEMU (qemu-2.2.0-5.fc22) on L0 L1. Description --- Inside L1, boot a nested KVM guest (L2) . Instead

[nVMX] With 3.20.0-0.rc0.git5.1 on L0, booting L2 guest results in L1 *rebooting*

2015-02-16 Thread Kashyap Chamarthy
I can observe this only one of the Intel Xeon machines (which has 48 CPUs and 1TB memory), but very reliably reproducible. Reproducer: - Just ensure physical host (L0) and guest hypervisor (L1) are running 3.20.0-0.rc0.git5.1 Kernel (I used from Fedora's Rawhide). Preferably on an

nSVM: Booting L2 results in L1 hang and a skip_emulated_instruction

2015-02-11 Thread Kashyap Chamarthy
Hi, This was tested with kernel-3.19.0-1.fc22) and QEMU (qemu-2.2.0-5.fc22) on L0 L1. Description --- Inside L1, boot a nested KVM guest (L2) . Instead of a full blown guest, let's use `qemu-sanity-check` with KVM: $ qemu-sanity-check --accel=kvm Wwich gives you this CLI (run

Re: [Qemu-devel] [question] incremental backup a running vm

2015-01-23 Thread Kashyap Chamarthy
On Wed, Jan 21, 2015 at 11:39:44AM +0100, Paolo Bonzini wrote: On 21/01/2015 11:32, Zhang Haoyu wrote: Hi, Does drive_mirror support incremental backup a running vm? Or other mechanism does? incremental backup a running vm requirements: First time backup, all of the allocated

Re: [question] incremental backup a running vm

2015-01-22 Thread Kashyap Chamarthy
On Wed, Jan 21, 2015 at 11:39:44AM +0100, Paolo Bonzini wrote: On 21/01/2015 11:32, Zhang Haoyu wrote: Hi, Does drive_mirror support incremental backup a running vm? Or other mechanism does? incremental backup a running vm requirements: First time backup, all of the allocated

With '-cpu host' in L1 nested guest fails: KVM: entry failed, hardware error 0x7

2014-11-26 Thread Kashyap Chamarthy
Hi, This error occurs when using using '-cpu host'. And, is consistently reproducible with Fedora 21's Kernels. One way to reproduce the issue -- a) Enable nested virt on host, I use this procedure[1] b) Boot a a guest (ensure /dev/kvm character device shows up)

Re: Howto connect to a terminal in an emalated linux-livecd?

2014-09-12 Thread Kashyap Chamarthy
On Fri, Sep 12, 2014 at 01:43:18PM +0100, Stefan Hajnoczi wrote: On Thu, Sep 11, 2014 at 01:48:51PM +0200, Oliver Rath wrote: after hours for searching in google-world, i didnt find any appropriate for this problem: I want to boot a live-cd (i.e. ubuntu 14.04.1-desktop) in qemu, which

Re: Where to file this bug, please?

2014-03-22 Thread Kashyap Chamarthy
On Sat, Mar 22, 2014 at 08:07:42AM +, Prof. Dr. Michael Schefczyk wrote: Dear Recipients, As per http://www.linux-kvm.org/page/Bugs, I am seeking advice regarding where to file the following bug: If you're experiencing it on CentOS http://bugs.centos.org/ If you're experiencing it

Re: Is there any consumer of virtio-balloon now?

2014-03-21 Thread Kashyap Chamarthy
On Fri, Mar 21, 2014 at 12:22:54PM +0800, Kai Huang wrote: Hi, I see the virtio-balloon is designed for memory auto balloon between KVM host and guest, but from latest linux kernel mainline code, looks currently there's no consumer actually using it? Would you let me know who is the

Re: [fedora-virt] 3.13 - Nested KVM (vmx) totally broken?

2014-03-04 Thread Kashyap Chamarthy
On Tue, Mar 04, 2014 at 09:13:40AM +0100, Paolo Bonzini wrote: Il 04/03/2014 03:40, Ian Pilcher ha scritto: Is this a known problem? I just tried using nested vmx for the first time since upgrading my system from F19 (3.12.?? at the time) to F20, and I cannot start any L2 guests. The L2

Re: [fedora-virt] 3.13 - Nested KVM (vmx) totally broken?

2014-03-04 Thread Kashyap Chamarthy
On Tue, Mar 04, 2014 at 03:00:22PM +0530, Kashyap Chamarthy wrote: On Tue, Mar 04, 2014 at 09:13:40AM +0100, Paolo Bonzini wrote: Il 04/03/2014 03:40, Ian Pilcher ha scritto: Is this a known problem? I just tried using nested vmx for the first time since upgrading my system from F19 (3.12

Re: nVMX regression v3.13+, bisected

2014-02-27 Thread Kashyap Chamarthy
On Thu, Feb 27, 2014 at 02:14:23AM +0530, Kashyap Chamarthy wrote: On Wed, Feb 26, 2014 at 09:27:17PM +0100, Stefan Bader wrote: On 26.02.2014 21:25, Paolo Bonzini wrote: [. . .] I bisected this and ended up on the following commit which, when reverted made the launch work

Re: nVMX regression v3.13+, bisected

2014-02-27 Thread Kashyap Chamarthy
On Thu, Feb 27, 2014 at 05:40:56PM +0530, Kashyap Chamarthy wrote: On Thu, Feb 27, 2014 at 02:14:23AM +0530, Kashyap Chamarthy wrote: On Wed, Feb 26, 2014 at 09:27:17PM +0100, Stefan Bader wrote: On 26.02.2014 21:25, Paolo Bonzini wrote: appliance): $ ./run libguestfs-test-tool

Re: nVMX regression v3.13+, bisected

2014-02-27 Thread Kashyap Chamarthy
On Thu, Feb 27, 2014 at 05:58:46PM +0100, Paolo Bonzini wrote: Il 27/02/2014 18:01, anthoine.bourge...@bertin.fr ha scritto: OK, so your patch works perfectly well with both of my test machines (a Ubuntu guest or a ChorusOS guest). I join the patch, can you signof it ? I'll post it

Re: nVMX regression v3.13+, bisected

2014-02-26 Thread Kashyap Chamarthy
On Wed, Feb 26, 2014 at 09:27:17PM +0100, Stefan Bader wrote: On 26.02.2014 21:25, Paolo Bonzini wrote: [. . .] I bisected this and ended up on the following commit which, when reverted made the launch work again: Author: Anthoine Bourgeois bourge...@bertin.fr Date: Wed Nov 13

Re: nested EPT

2014-01-17 Thread Kashyap Chamarthy
On Fri, Jan 17, 2014 at 2:51 AM, duy hai nguyen hain...@gmail.com wrote: Now I can run an L2 guest (nested guest) using the kvm kernel module of kernel 3.12 However, I am facing a new problem when trying to build and use kvm kernel module from git://git.kiszka.org/kvm-kmod.git: L1 (nested

Re: [nvmx testing, linux on linux] Disabling EPT in L1 renders L2 stuck on boot

2013-10-09 Thread Kashyap Chamarthy
On Tue, Oct 8, 2013 at 8:18 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 08/10/2013 15:03, Paolo Bonzini ha scritto: Il 08/10/2013 07:38, Kashyap Chamarthy ha scritto: On Mon, Oct 7, 2013 at 6:29 PM, Kashyap Chamarthy kashyap...@gmail.com wrote: Gleb, so I just did a trace of KVM MMU

Re: [nvmx testing, linux on linux] Disabling EPT in L1 renders L2 stuck on boot

2013-10-09 Thread Kashyap Chamarthy
On Wed, Oct 9, 2013 at 1:46 PM, Gleb Natapov g...@redhat.com wrote: On Wed, Oct 09, 2013 at 11:52:29AM +0530, Kashyap Chamarthy wrote: On Tue, Oct 8, 2013 at 8:18 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 08/10/2013 15:03, Paolo Bonzini ha scritto: Il 08/10/2013 07:38, Kashyap

Arbitrary L0 crash with kvm.git queue (8a3c1a33476f6bfebd07954e2277dbc88003bd37)

2013-10-08 Thread Kashyap Chamarthy
I've seen this crash at-least twice on an Intel Haswell machine. I can't pin-point to an exact trigger. As of now, it crashed when I tried to reboot a linux guest. Thought I'll post the trace here, just in case someone wants to take a look. I compiled kernel from kvm.git queue on both L0 and L1:

Re: [nvmx testing, linux on linux] Disabling EPT in L1 renders L2 stuck on boot

2013-10-07 Thread Kashyap Chamarthy
Gleb, so I just did a trace of KVM MMU to try to understand why L2 is stuck with shadow on EPT Ensure, EPT is enabled on L0 disabled on L1 On L0: - $ cat /sys/module/kvm_intel/parameters/ept Y On L1 - $ cat /sys/module/kvm_intel/parameters/ept N Build and install

Re: [nvmx testing, linux on linux] Disabling EPT in L1 renders L2 stuck on boot

2013-10-07 Thread Kashyap Chamarthy
On Mon, Oct 7, 2013 at 6:29 PM, Kashyap Chamarthy kashyap...@gmail.com wrote: Gleb, so I just did a trace of KVM MMU to try to understand why L2 is stuck with shadow on EPT Paolo, were you able to reproduce this again? Yesterday, on #qemu you mentioned you'll test it again :-) I was using

[nvmx testing, linux on linux] Disabling EPT in L1 renders L2 stuck on boot

2013-10-04 Thread Kashyap Chamarthy
I have EPT enabled on L0, disabled on L1, and when attempted to boot an L2 guest, it results in cursor just blinking on the serial console. (All of them are Fedora 19 minimal guests.) To be clear, by disable I mean, the below KVM parameter is N $ cat /sys/module/kvm_intel/parameters/ept

Re: [nvmx testing, linux on linux] Disabling EPT in L1 renders L2 stuck on boot

2013-10-04 Thread Kashyap Chamarthy
Discussed with Gleb on IRC: I'll have to try with kvm.git and a simple qemu-kvm command line. Thanks, Gleb. On Fri, Oct 4, 2013 at 2:01 PM, Kashyap Chamarthy kashyap...@gmail.com wrote: I have EPT enabled on L0, disabled on L1, and when attempted to boot an L2 guest, it results in cursor just

Re: [nvmx testing, linux on linux] Disabling EPT in L1 renders L2 stuck on boot

2013-10-04 Thread Kashyap Chamarthy
On Fri, Oct 4, 2013 at 3:09 PM, Gleb Natapov g...@redhat.com wrote: On Fri, Oct 04, 2013 at 03:03:17PM +0530, Kashyap Chamarthy wrote: Discussed with Gleb on IRC: I'll have to try with kvm.git I just compiled kernel from kvm.git queue on both L0 and L1. For completeness' sake, this how I did

Re: [nvmx testing, linux on linux] Disabling EPT in L1 renders L2 stuck on boot

2013-10-04 Thread Kashyap Chamarthy
On Fri, Oct 4, 2013 at 6:38 PM, Gleb Natapov g...@redhat.com wrote: On Fri, Oct 04, 2013 at 04:05:50PM +0300, Gleb Natapov wrote: On Fri, Oct 04, 2013 at 06:03:33PM +0530, Kashyap Chamarthy wrote: On Fri, Oct 4, 2013 at 3:09 PM, Gleb Natapov g...@redhat.com wrote: On Fri, Oct 04, 2013 at 03

Re: nested migration issues

2013-08-27 Thread Kashyap Chamarthy
On Tue, Aug 27, 2013 at 2:48 PM, Jan Kiszka jan.kis...@siemens.com wrote: On 2013-08-27 10:29, 缪天翔 wrote: Hi all I am doing a research project similar to Turtles using the nested vmx feature of kvm. In detail, I launch a guest kvm (donated as L1) on the underlying kvm (donated as L0) and

Re: kvm/queue still ahead of kvm/next

2013-08-19 Thread Kashyap Chamarthy
On Mon, Aug 19, 2013 at 2:56 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 19/08/2013 06:36, Kashyap Chamarthy ha scritto: On Sat, Aug 10, 2013 at 12:56 AM, Paolo Bonzini pbonz...@redhat.com wrote: Hi all, I'm seeing some breakage of shadow-on-shadow and shadow-on-EPT nested VMX

Re: kvm/queue still ahead of kvm/next

2013-08-19 Thread Kashyap Chamarthy
On Mon, Aug 19, 2013 at 3:12 PM, Kashyap Chamarthy kashyap...@gmail.com wrote: On Mon, Aug 19, 2013 at 2:56 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 19/08/2013 06:36, Kashyap Chamarthy ha scritto: On Sat, Aug 10, 2013 at 12:56 AM, Paolo Bonzini pbonz...@redhat.com wrote: Hi all

Re: kvm/queue still ahead of kvm/next

2013-08-18 Thread Kashyap Chamarthy
On Sat, Aug 10, 2013 at 12:56 AM, Paolo Bonzini pbonz...@redhat.com wrote: Hi all, I'm seeing some breakage of shadow-on-shadow and shadow-on-EPT nested VMX. Until I can track more precisely whether it is a regression, and on which hosts I can reproduce it, I'm going to leave the patches

Re: [nVMX w/ Haswell] KVM unit-tests in L1 - eventinj test fails trying to send NMI

2013-06-27 Thread Kashyap Chamarthy
On Wed, Jun 26, 2013 at 10:49 PM, Jan Kiszka jan.kis...@web.de wrote: On 2013-06-26 10:03, Kashyap Chamarthy wrote: Thanks for the note, it's very helpful! This test actually fails on older CPUs as well, and I can finally reproduce the issue that Jay also reported. I'm not able to cure

Re: [nVMX w/ Haswell] KVM unit-tests in L1 - eventinj test fails trying to send NMI

2013-06-26 Thread Kashyap Chamarthy
testing help or want me to try something specific. Thanks. Jan /kashyap On Tue, Jun 4, 2013 at 6:14 PM, Kashyap Chamarthy kashyap...@gmail.com wrote: Heya, So, I invoked this in L1 with: === [test@foo kvm-unit-tests]$ time qemu-system-x86_64 -enable-kvm -device pc

Re: [nVMX w/ Haswell] KVM unit-tests in L1 - eventinj test fails trying to send NMI

2013-06-05 Thread Kashyap Chamarthy
Adding Jan, Jun, to see if they have any inputs here. /kashyap On Tue, Jun 4, 2013 at 6:14 PM, Kashyap Chamarthy kashyap...@gmail.com wrote: Heya, So, I invoked this in L1 with: === [test@foo kvm-unit-tests]$ time qemu-system-x86_64 -enable-kvm -device pc-testdev

[nVMX w/ Haswell] KVM unit-tests in L1 - eventinj test fails trying to send NMI

2013-06-04 Thread Kashyap Chamarthy
Heya, So, I invoked this in L1 with: === [test@foo kvm-unit-tests]$ time qemu-system-x86_64 -enable-kvm -device pc-testdev -serial stdio -nographic -no-user-config -nodefaults -device isa-debug-exit,iobase=0xf4,iosize=0x4 -kernel ./x86/eventinj.flat | tee

[nVMX ] A couple more tests

2013-05-22 Thread Kashyap Chamarthy
Heya, So, Gleb suggested (thank you) to try kvm unit tests in L1, here's some (incomprehensive) detail. I also ran a defconfig in a 20 loop iteration (in L2) where subsequent runs after the first one are from page cache. 1. A couple of unit tests w/ 64 bit compiled:

Re: [nVMX Test] Build kernel (defconfig) on L2, w/ VMCS Shadowing enabled on L0

2013-05-14 Thread Kashyap Chamarthy
A small update: Yesterday, I also ran a simple libguestfs test[1], which creates a light weight appliance (i.e. an L2) guest , with and without nesting to see some over-head. Summary: - L0 (bare-metal): - guestfish run: ~ 3 seconds L1 (guest): - w/o nesting, guestfish

Re: [nVMX Test] Build kernel (defconfig) on L2, w/ VMCS Shadowing enabled on L0

2013-05-13 Thread Kashyap Chamarthy
Thanks for the detailed configurations and steps about the nVMX test. I have some suggestions if you want to test more: 1. you can make L2 guest have 4vCPU and 4Mem Yeah, will try it. L0 has a max of 8G MEM. 2. as L2 is SMP system, you can try 'time make -j 4' instead of 'time make'. This

Re: [nVMX Test] Build kernel (defconfig) on L2, w/ VMCS Shadowing enabled on L0

2013-05-13 Thread Kashyap Chamarthy
On Mon, May 13, 2013 at 11:51 AM, Kashyap Chamarthy kashyap...@gmail.com wrote: Thanks for the detailed configurations and steps about the nVMX test. I have some suggestions if you want to test more: 1. you can make L2 guest have 4vCPU and 4Mem Yeah, will try it. L0 has a max of 8G MEM. 2

Re: [nVMX Test] Build kernel (defconfig) on L2, w/ VMCS Shadowing enabled on L0

2013-05-13 Thread Kashyap Chamarthy
On Mon, May 13, 2013 at 12:46 PM, Abel Gordon ab...@il.ibm.com wrote: Kashyap Chamarthy kashyap...@gmail.com wrote on 13/05/2013 10:07:02 AM: 1/ With VMCS Shadowing *disabled* : - On L0 (Side note: I did reboot the host, once I disabled shadow VMCS) $ cat /sys/module/kvm_intel

Re: [nVMX Test] Build kernel (defconfig) on L2, w/ VMCS Shadowing enabled on L0

2013-05-13 Thread Kashyap Chamarthy
On Mon, May 13, 2013 at 1:00 PM, Ren, Yongjie yongjie@intel.com wrote: -Original Message- From: Kashyap Chamarthy [mailto:kashyap...@gmail.com] Sent: Monday, May 13, 2013 3:07 PM To: Ren, Yongjie Cc: kvm@vger.kernel.org Subject: Re: [nVMX Test] Build kernel (defconfig) on L2, w

Re: [nVMX Test] Build kernel (defconfig) on L2, w/ VMCS Shadowing enabled on L0

2013-05-13 Thread Kashyap Chamarthy
Yep, kvm_stat is the simplest way to monitor the exits frequency. Attached is kvm_stat results from L1, captured from several seconds of intervals. /kashyap kvm_entry

Re: [nVMX Test] Build kernel (defconfig) on L2, w/ VMCS Shadowing enabled on L0

2013-05-13 Thread Kashyap Chamarthy
Thanks Gleb. Here we go: This time results appear more closer to what Ren mentioned in his previous email - i.e. enabling VMCS Shadowing didn't degrade, the Kernel compile time in L2. 1] VMCS Shadowing *enabled* on L0; Kernel build on L2, 3.10.0-0.rc0.git26.1.fc20.x86_64 Kernel build time on

Re: [nVMX Test] Build kernel (defconfig) on L2, w/ VMCS Shadowing enabled on L0

2013-05-13 Thread Kashyap Chamarthy
- NOTE: The below statistics are from intervals ranging from 30 seconds to 6,10,13.. minutes. Looks better ? Much better :) Now seems the results were improved by 25% (reduced 10m of 40m) :) I wonder how it differed the first time. (Note to self: Maybe I should run these more

Re: [nVMX Test] Build kernel (defconfig) on L2, w/ VMCS Shadowing enabled on L0

2013-05-13 Thread Kashyap Chamarthy
Not exactly. With short a make I was a referring to a run that does not take more than few minutes and with a long a make I was referring to a run that may take an hour. Ah, sorry for misinterpreting it. I'll try to spend more time on it. Note that make clean clears the output but the

Re: [nVMX Test] Build kernel (defconfig) on L2, w/ VMCS Shadowing enabled on L0

2013-05-13 Thread Kashyap Chamarthy
Another point I totally forgot to note - these tests were performeddebug enabled kernels from Fedora's Rawhide. I'll also try w/ Nodebug ones -- http://fedoraproject.org/wiki/RawhideKernelNodebug /kashyap -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message

Re: [nVMX with: v3.9-11789-ge0fd9af] Stack trace when L2 guest is rebooted.

2013-05-12 Thread Kashyap Chamarthy
I tried to reproduce such a problem, and I found L2 (Linux) hangs in SeaBIOS, after line iPXE (http://ipxe.org) It happens with or w/o VMCS shadowing (and even without my virtual EPT patches). I didn't realize this problem until I updated the L1 kernel to the latest (e.g. 3.9.0) from

Re: [nVMX with: v3.9-11789-ge0fd9af] Stack trace when L2 guest is rebooted.

2013-05-12 Thread Kashyap Chamarthy
On Sun, May 12, 2013 at 6:08 PM, Gleb Natapov g...@redhat.com wrote: On Sun, May 12, 2013 at 06:00:38PM +0530, Kashyap Chamarthy wrote: I tried to reproduce such a problem, and I found L2 (Linux) hangs in SeaBIOS, after line iPXE (http://ipxe.org) It happens with or w/o VMCS

Re: [nVMX with: v3.9-11789-ge0fd9af] Stack trace when L2 guest is rebooted.

2013-05-12 Thread Kashyap Chamarthy
On Sun, May 12, 2013 at 6:29 PM, Abel Gordon ab...@il.ibm.com wrote: Kashyap Chamarthy kashyap...@gmail.com wrote on 12/05/2013 03:42:33 PM: Again, sorry :(. I was just about to reply that this was physical host. I'm testing by disabling VMCS Shadowing per Jan Kiszka's suggestion

Re: [nVMX with: v3.9-11789-ge0fd9af] Stack trace when L2 guest is rebooted.

2013-05-12 Thread Kashyap Chamarthy
So, from the above info shadow-vmcs is ruled-out. I'm trying to investigate further, will post details if I have new findings. Update: - I just tried to create L2 w/ Fedora-19 TC4 compose of 11MAY2013, I contibuously see the below fragment (F18/F19, whatever the L2 guest is):

Re: [nVMX with: v3.9-11789-ge0fd9af] Stack trace when L2 guest is rebooted.

2013-05-12 Thread Kashyap Chamarthy
[ 217.938034] Uhhuh. NMI received for unknown reason 30 on CPU 0. [ 217.938034] Do you have a strange power saving mode enabled? .[ 222.523373] Uhhuh. NMI received for unknown reason 20 on CPU 0. [ 222.524073] Do you have a strange power saving mode enabled? [

Re: [nVMX with: v3.9-11789-ge0fd9af] Stack trace when L2 guest is rebooted.

2013-05-12 Thread Kashyap Chamarthy
Yep, shadow-vmcs enabled :) :) Good to clarify. Just for reference, here's the detailed procedure I noted while testing it on Haswell -- https://raw.github.com/kashyapc/nvmx-haswell/master/SETUP-nVMX.rst Also note you can disable shadow-vmcs using the kvm-intel kernel module

Re: [nVMX with: v3.9-11789-ge0fd9af] Stack trace when L2 guest is rebooted.

2013-05-12 Thread Kashyap Chamarthy
[ 217.938034] Uhhuh. NMI received for unknown reason 30 on CPU 0. [ 217.938034] Do you have a strange power saving mode enabled? .[ 222.523373] Uhhuh. NMI received for unknown reason 20 on CPU 0. [ 222.524073] Do you have a strange power saving mode enabled? [

[nVMX Test] Build kernel (defconfig) on L2, w/ VMCS Shadowing enabled on L0

2013-05-12 Thread Kashyap Chamarthy
Heya, A simple test below: Setup Info: - L0: - 4 pCPU, 8G pMEM. - Version: $ uname -r; rpm -q qemu-kvm libvirt-daemon-kvm libguestfs 3.10.0-0.rc0.git26.1.fc20.x86_64 qemu-kvm-1.4.1-1.fc19.x86_64 libvirt-daemon-kvm-1.0.5-2.fc19.x86_64

Re: [nVMX with: v3.9-11789-ge0fd9af] Stack trace when L2 guest is rebooted.

2013-05-11 Thread Kashyap Chamarthy
Side note: While testing nVMX, I was hitting a libvirt bug, and filed this one: -- https://bugzilla.redhat.com/show_bug.cgi?id=961665 -- [virsh] Attempt to force destroy a guest fails due to 'unknown' reason, leaves a defunct qemu process which I was told is possibly a Kernel/KVM bug. Any

[nVMX with: v3.9-11789-ge0fd9af] Stack trace when L2 guest is rebooted.

2013-05-10 Thread Kashyap Chamarthy
Heya, This is on Intel Haswell. First, some version info: L0, L1 -- both of them have same versions of kernel, qemu: = $ rpm -q kernel --changelog | head -2 * Thu May 09 2013 Josh Boyer - 3.10.0-0.rc0.git23.1 - Linux v3.9-11789-ge0fd9af = = $ uname -r ; rpm -q qemu-kvm

Re: [nVMX with: v3.9-11789-ge0fd9af] Stack trace when L2 guest is rebooted.

2013-05-10 Thread Kashyap Chamarthy
On Fri, May 10, 2013 at 8:03 PM, Kashyap Chamarthy kashyap...@gmail.com wrote: Also, I'm able to reproduce this consistently: When I create an L2 guest: -- [.] [ 463.655031] Dazed and confused, but trying to continue [ 463.975563] Uhhuh. NMI received for unknown reason

Re: [nVMX with: v3.9-11789-ge0fd9af] Stack trace when L2 guest is rebooted.

2013-05-10 Thread Kashyap Chamarthy
On Fri, May 10, 2013 at 8:54 PM, Jan Kiszka jan.kis...@siemens.com wrote: On 2013-05-10 17:12, Jan Kiszka wrote: On 2013-05-10 15:00, Kashyap Chamarthy wrote: Heya, This is on Intel Haswell. First, some version info: L0, L1 -- both of them have same versions of kernel, qemu

Re: [nVMX with: v3.9-11789-ge0fd9af] Stack trace when L2 guest is rebooted.

2013-05-10 Thread Kashyap Chamarthy
[3] Libvirt XMLs I used (for reference) -- https://github.com/kashyapc/nvmx-haswell/tree/master/tests/libvirt-xmls-for-l1-l2 Oops, forgot to add, here we go -- https://github.com/kashyapc/nvmx-haswell/tree/master/tests/libvirt-xmls-for-l1-l2 /kashyap -- To unsubscribe from this list: send the

Re: [nVMX with: v3.9-11789-ge0fd9af] Stack trace when L2 guest is rebooted.

2013-05-10 Thread Kashyap Chamarthy
We know after you tried. I don't have access to a Haswell box, so we better exclude this beforehand. Fair enough. I'll try that too, and let you know. You get that backtrace in L1, correct? Yes. If you have any further tracing pointers, I could do some debugging. Thanks, I may come

Re: [nVMX with: v3.9-11789-ge0fd9af] Stack trace when L2 guest is rebooted.

2013-05-10 Thread Kashyap Chamarthy
On Fri, May 10, 2013 at 11:39 PM, Jan Kiszka jan.kis...@siemens.com wrote: On 2013-05-10 19:40, Nakajima, Jun wrote: On Fri, May 10, 2013 at 9:33 AM, Jan Kiszka jan.kis...@siemens.com wrote: On 2013-05-10 17:39, Kashyap Chamarthy wrote: On Fri, May 10, 2013 at 8:54 PM, Jan Kiszka jan.kis

Re: Interested in working for GSoC project

2013-04-14 Thread Kashyap Chamarthy
On Sun, Apr 14, 2013 at 1:48 PM, Jan Kiszka jan.kis...@web.de wrote: On 2013-04-13 20:24, Mohit Dhingra wrote: Hi All, I am Mohit Dhingra, planning to work in GSoC project Improve nested virtualization support for x86. I got in touch with Jan (jan.kis...@web.de) few days back. As suggested

Re: [PATCH] kvm tools: fix SDL build error when libsdl isn't installed

2012-09-17 Thread Kashyap Chamarthy
On Mon, Sep 17, 2012 at 4:03 PM, Sasha Levin levinsasha...@gmail.com wrote: We used wrong prototypes for sdl init/exit when libsdl wasn't installed when building. This would cause build errors. Reported-by: Kashyap Chamarthy kashyap...@gmail.com Signed-off-by: Sasha Levin levinsasha

Re: [PATCH] kvm tools: don't die if sdl wasn't compiled in and we don't try using it

2012-09-17 Thread Kashyap Chamarthy
On Mon, Sep 17, 2012 at 4:46 PM, Sasha Levin levinsasha...@gmail.com wrote: If SDL isn't compiled in we shouldn't die unless we actually try using it. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- tools/kvm/include/kvm/sdl.h | 10 -- 1 file changed, 8 insertions(+), 2

Re: [PATCH] kvm tools: don't die if sdl wasn't compiled in and we don't try using it

2012-09-17 Thread Kashyap Chamarthy
On Mon, Sep 17, 2012 at 5:14 PM, Kashyap Chamarthy kashyap...@gmail.com wrote: On Mon, Sep 17, 2012 at 4:46 PM, Sasha Levin levinsasha...@gmail.com wrote: If SDL isn't compiled in we shouldn't die unless we actually try using it. Signed-off-by: Sasha Levin levinsasha...@gmail.com --- tools

Re: Nested virtualization on Intel does not work - second level freezes when third level is starting

2012-04-11 Thread Kashyap Chamarthy
On Wed, Apr 11, 2012 at 6:14 PM, Guido Winkelmann guido-k...@thisisnotatest.de wrote: Hi, Nested virtualization on Intel does not work for me with qemu-kvm. As soon as the third layer OS (second virtualised) is starting the Linux kernel, the entire second layer freezes up. The last thing I

Re: Nested virtualization on Intel does not work - second level freezes when third level is starting

2012-04-11 Thread Kashyap Chamarthy
On Wed, Apr 11, 2012 at 11:34 PM, Guido Winkelmann guido-k...@thisisnotatest.de wrote: Am Mittwoch, 11. April 2012, 23:14:07 schrieb Kashyap Chamarthy: On Wed, Apr 11, 2012 at 6:14 PM, Guido Winkelmann guido-k...@thisisnotatest.de wrote: [...] Here is my complete notes on nested

Re: virtio issues

2011-08-23 Thread Kashyap Chamarthy
On Wed, Aug 24, 2011 at 9:04 AM, arag...@dcsnow.com wrote: Hello all, I have just started working with KVM and virtualization in general.  I have setup a client using Suse 9.3 x64 as the base and Fedora 15 x64 as the host.  The kernel in the client has been upgraded to a custom 2.6.28.4

Re: Can VM be copied to another PC

2010-01-31 Thread Kashyap Chamarthy
On Mon, Feb 1, 2010 at 9:32 AM,  sati...@pacific.net.hk wrote: Hi folks, Host – Fedora 12 64bit KVM – virtualization software I have 8 VMs on this virtual machine running different OS. Can VMs be moved/copied to another PC of similar hardware config running Fedora 12 (64bit) as host and