All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrangé" <berrange@redhat.com>
To: David Hildenbrand <david@redhat.com>
Cc: Florian Haas <florian@hastexo.com>,
	libvirt-users@redhat.com, kvm@vger.kernel.org
Subject: Re: [libvirt-users] Nested KVM: L0 guest produces kernel BUG on wakeup from managed save (while a nested VM is running)
Date: Thu, 8 Feb 2018 14:59:33 +0000	[thread overview]
Message-ID: <20180208145933.GK20703@redhat.com> (raw)
In-Reply-To: <09b9a576-b4d1-6142-b88e-c59ee062cd1d@redhat.com>

On Thu, Feb 08, 2018 at 02:47:26PM +0100, David Hildenbrand wrote:
> > Sure, I do understand that Red Hat (or any other vendor) is taking no
> > support responsibility for this. At this point I'd just like to
> > contribute to a better understanding of what's expected to definitely
> > _not_ work, so that people don't bloody their noses on that. :)
> 
> Indeed. nesting is nice to enable as it works in 99% of all cases. It
> just doesn't work when trying to migrate a nested hypervisor. (on x86)

Hmm, if migration of the L1 is going to cause things to crash and
burn, then ideally libvirt on L0 would block the migration from being
done.

Naively we could do that if the guest has vmx or svm features in its
CPU, except that's probably way too conservative as many guests with
those features won't actually do any nested VMs.  It would also be
desirable to still be able to migrate the L1, if no L2s are running
currently.

Is there any way QEMU can expose whether there's any L2s activated
to libvirt, so we can prevent migration in that case ? Or should
QEMU itself refuse to start migration perhaps ?


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

  parent reply	other threads:[~2018-02-08 14:59 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAPUexz9mg8wtAkWKfQLqoFgTQ6i+2pC4bGSkTwCEq-nQZin1hg@mail.gmail.com>
2018-02-07 15:31 ` [libvirt-users] Nested KVM: L0 guest produces kernel BUG on wakeup from managed save (while a nested VM is running) Kashyap Chamarthy
2018-02-07 22:26   ` David Hildenbrand
2018-02-08  8:19     ` Florian Haas
2018-02-08 12:07       ` David Hildenbrand
2018-02-08 13:29         ` Florian Haas
2018-02-08 13:47           ` David Hildenbrand
2018-02-08 13:57             ` Florian Haas
2018-02-08 14:51               ` Paolo Bonzini
2018-02-08 14:51                 ` [Qemu-devel] " Paolo Bonzini
2018-02-08 14:55               ` David Hildenbrand
2018-02-08 14:59             ` Daniel P. Berrangé [this message]
2018-02-08 14:45         ` Kashyap Chamarthy
2018-02-08 17:44         ` Florian Haas
2018-02-09 10:48           ` Kashyap Chamarthy
2018-02-09 11:02             ` Florian Haas
2018-02-12  9:27               ` Kashyap Chamarthy
2018-02-12 14:07                 ` Florian Haas
2018-02-08 10:46     ` Kashyap Chamarthy
2018-02-08 11:34       ` Kashyap Chamarthy
2018-02-08 11:40         ` Daniel P. Berrangé
2018-02-08 11:48       ` David Hildenbrand
2018-02-08 15:23         ` 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=20180208145933.GK20703@redhat.com \
    --to=berrange@redhat.com \
    --cc=david@redhat.com \
    --cc=florian@hastexo.com \
    --cc=kvm@vger.kernel.org \
    --cc=libvirt-users@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 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.