kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Raslan, KarimAllah" <karahmed@amazon.de>
To: "jmattson@google.com" <jmattson@google.com>,
	"liran.alon@oracle.com" <liran.alon@oracle.com>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	"pbonzini@redhat.com" <pbonzini@redhat.com>,
	"jan.kiszka@siemens.com" <jan.kiszka@siemens.com>
Subject: Re: KVM_SET_NESTED_STATE not yet stable
Date: Wed, 10 Jul 2019 15:24:41 +0000	[thread overview]
Message-ID: <1562772280.18613.25.camel@amazon.de> (raw)
In-Reply-To: <9eb4dd9f-65e5-627d-b288-e5fe8ade0963@siemens.com>

On Mon, 2019-07-08 at 22:39 +0200, Jan Kiszka wrote:
> Hi all,
> 
> it seems the "new" KVM_SET_NESTED_STATE interface has some remaining
> robustness issues.

I would be very interested to learn about any more robustness issues that you 
are seeing.

> The most urgent one: With the help of latest QEMU
> master that uses this interface, you can easily crash the host. You just
> need to start qemu-system-x86 -enable-kvm in L1 and then hard-reset L1.
> The host CPU that ran this will stall, the system will freeze soon.

Just to confirm, you start an L2 guest using qemu inside an L1-guest and then 
hard-reset the L1 guest?

Are you running any special workload in L2 or L1 when you reset? Also how 
exactly are you doing this "hard reset"?

(sorry just tried this in my setup and I did not see any problem but my setup
 is slightly different, so just ruling out obvious stuff).

> 
> I've also seen a pattern with my Jailhouse test VM where I seems to get
> stuck in a loop between L1 and L2:
> 
>  qemu-system-x86-6660  [007]   398.691401: kvm_nested_vmexit:    rip 7fa9ee5224e4 reason IO_INSTRUCTION info1 5658000b info2 0 int_info 0 int_info_err 0
>  qemu-system-x86-6660  [007]   398.691402: kvm_fpu:              unload
>  qemu-system-x86-6660  [007]   398.691403: kvm_userspace_exit:   reason KVM_EXIT_IO (2)
>  qemu-system-x86-6660  [007]   398.691440: kvm_fpu:              load
>  qemu-system-x86-6660  [007]   398.691441: kvm_pio:              pio_read at 0x5658 size 4 count 1 val 0x4 
>  qemu-system-x86-6660  [007]   398.691443: kvm_mmu_get_page:     existing sp gfn 3a22e 1/4 q3 direct --x !pge !nxe root 6 sync
>  qemu-system-x86-6660  [007]   398.691444: kvm_entry:            vcpu 3
>  qemu-system-x86-6660  [007]   398.691475: kvm_exit:             reason IO_INSTRUCTION rip 0x7fa9ee5224e4 info 5658000b 0
>  qemu-system-x86-6660  [007]   398.691476: kvm_nested_vmexit:    rip 7fa9ee5224e4 reason IO_INSTRUCTION info1 5658000b info2 0 int_info 0 int_info_err 0
>  qemu-system-x86-6660  [007]   398.691477: kvm_fpu:              unload
>  qemu-system-x86-6660  [007]   398.691478: kvm_userspace_exit:   reason KVM_EXIT_IO (2)
>  qemu-system-x86-6660  [007]   398.691526: kvm_fpu:              load
>  qemu-system-x86-6660  [007]   398.691527: kvm_pio:              pio_read at 0x5658 size 4 count 1 val 0x4 
>  qemu-system-x86-6660  [007]   398.691529: kvm_mmu_get_page:     existing sp gfn 3a22e 1/4 q3 direct --x !pge !nxe root 6 sync
>  qemu-system-x86-6660  [007]   398.691530: kvm_entry:            vcpu 3
>  qemu-system-x86-6660  [007]   398.691533: kvm_exit:             reason IO_INSTRUCTION rip 0x7fa9ee5224e4 info 5658000b 0
>  qemu-system-x86-6660  [007]   398.691534: kvm_nested_vmexit:    rip 7fa9ee5224e4 reason IO_INSTRUCTION info1 5658000b info2 0 int_info 0 int_info_err 0
> 
> These issues disappear when going from ebbfef2f back to 6cfd7639 (both
> with build fixes) in QEMU.

This is the QEMU that you are using in L0 to launch an L1 guest, right? or are 
you still referring to the QEMU mentioned above?

> Host kernels tested: 5.1.16 (distro) and 5.2 (vanilla).
> Jan
> 



Amazon Development Center Germany GmbH
Krausenstr. 38
10117 Berlin
Geschaeftsfuehrung: Christian Schlaeger, Ralf Herbrich
Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B
Sitz: Berlin
Ust-ID: DE 289 237 879



  reply	other threads:[~2019-07-10 15:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-08 20:39 KVM_SET_NESTED_STATE not yet stable Jan Kiszka
2019-07-10 15:24 ` Raslan, KarimAllah [this message]
2019-07-10 16:05   ` Jan Kiszka
2019-07-10 20:31     ` Jan Kiszka
2019-07-10 21:14       ` Jan Kiszka
2019-07-11 11:37       ` Ralf Ramsauer
2019-07-11 17:30         ` Paolo Bonzini
2019-07-19 16:38           ` Paolo Bonzini
2019-07-21  9:05             ` Jan Kiszka
2019-07-22 15:10               ` Ralf Ramsauer

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=1562772280.18613.25.camel@amazon.de \
    --to=karahmed@amazon.de \
    --cc=jan.kiszka@siemens.com \
    --cc=jmattson@google.com \
    --cc=kvm@vger.kernel.org \
    --cc=liran.alon@oracle.com \
    --cc=pbonzini@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).