From: Gleb Natapov <gleb@redhat.com>
To: Kashyap Chamarthy <kashyap.cv@gmail.com>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: [nvmx testing, linux on linux] Disabling EPT in L1 renders L2 stuck on boot
Date: Mon, 7 Oct 2013 18:18:02 +0300 [thread overview]
Message-ID: <20131007151802.GB9127@redhat.com> (raw)
In-Reply-To: <CAOaxAcbh8nfpV_fUh1kf+BTrE+tHF-GV1=uwKtFnP=hyWrc4Ug@mail.gmail.com>
On Mon, Oct 07, 2013 at 06:29:30PM +0530, Kashyap Chamarthy wrote:
> 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 trace-cmd on L1:
>
> $ git clone git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/trace-cmd.git
> trace-cmd
> $ make && sudo make-install
>
> Run trace command (on L1) to capture kvmmmu event:
>
> $ trace-cmd record -b 2000 -e kvmmmu
You need to trace kvm events too and make buffer bigger
trace-cmd record -b 100000 -e kvmmmu -e kvm.
> /sys/kernel/debug/tracing/events/kvmmmu/filter
> /sys/kernel/debug/tracing/events/*/kvmmmu/filter
> Hit Ctrl^C to stop recording
>
> Boot L2 guest:
>
> $ virsh start nguest-01 --console
>
> After a minute or two, ctl-C the trace-cmd, generate the report:
>
> $ trace-cmd report
> version = 6
> trace-cmd: No such file or directory
> function is_writable_pte not defined
> CPU 1 is empty
> CPU 2 is empty
> CPU 3 is empty
> cpus=4
> qemu-system-x86-2554 [000] 90667.995345:
> kvm_mmu_invalidate_zap_all_pages: kvm-mmu-valid-gen 0 used_pages 0
> qemu-system-x86-2557 [000] 90668.078978: kvm_mmu_get_page: new
> sp gfn 0 0/2 q0 direct --- !pge !nxe root 0 sync
> qemu-system-x86-2557 [000] 90668.078980: kvm_mmu_get_page: new
> sp gfn 40000 0/2 q0 direct --- !pge !nxe root 0 sync
> qemu-system-x86-2557 [000] 90668.078980: kvm_mmu_get_page: new
> sp gfn 80000 0/2 q0 direct --- !pge !nxe root 0 sync
> qemu-system-x86-2557 [000] 90668.078981: kvm_mmu_get_page: new
> sp gfn c0000 0/2 q0 direct --- !pge !nxe root 0 sync
> qemu-system-x86-2557 [000] 90668.079025: kvm_mmu_get_page: new
> sp gfn 0 0/1 q0 direct --- !pge !nxe root 0 sync
Is this all?
>
> Side question: I wonder why would trace-cmd say "trace-cmd: No such
> file or directory"?
>
Ignore it.
--
Gleb.
next prev parent reply other threads:[~2013-10-09 12:47 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-04 8:31 [nvmx testing, linux on linux] Disabling EPT in L1 renders L2 stuck on boot Kashyap Chamarthy
2013-10-04 9:33 ` Kashyap Chamarthy
2013-10-04 9:39 ` Gleb Natapov
2013-10-04 12:33 ` Kashyap Chamarthy
2013-10-04 13:05 ` Gleb Natapov
2013-10-04 13:08 ` Gleb Natapov
2013-10-04 15:28 ` Kashyap Chamarthy
2013-10-07 12:59 ` Kashyap Chamarthy
2013-10-07 15:18 ` Gleb Natapov [this message]
2013-10-08 5:38 ` Kashyap Chamarthy
2013-10-08 13:03 ` Paolo Bonzini
2013-10-08 14:48 ` Paolo Bonzini
2013-10-09 6:22 ` Kashyap Chamarthy
2013-10-09 8:16 ` Gleb Natapov
2013-10-09 17:46 ` Kashyap Chamarthy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131007151802.GB9127@redhat.com \
--to=gleb@redhat.com \
--cc=kashyap.cv@gmail.com \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.