From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Alvin Starr <alvin@netvel.net>
Cc: xen-devel@lists.xen.org
Subject: Re: libvirt and nestedhvm.
Date: Fri, 6 Jun 2014 14:33:54 +0100 [thread overview]
Message-ID: <5391C342.3090800@citrix.com> (raw)
In-Reply-To: <5391C1F3.9040603@netvel.net>
On 06/06/14 14:28, Alvin Starr wrote:
> I am trying to shoehorn the ability to start a nested HVM into libvirt
> through the libxl interface.
>
> Setting the nestedhvm flag is easy enough but I also need to mask the
> svm_npt cpuid flags.
This presumably comes from a KVM centric view where the environment
running libvirtd is the host environment?
>
> This is where life gets interesting.
>
> LIbvirt seems to probe the CPUID registers to determine what flags are
> available.
> Libvirt then stops me from trying to mask the svm or npt flags since
> they are not visible in dom0.
>
> So my question is.
> Can I enable the svm,npt flags in dom0?
Technically it is possible to make these flags appear...
> Is there anything equivalent to nestedhvm for dom0?
... but being features that PV guests cannot possibly use, advertising
them is a bad idea.
>
> or is there a way to read the raw CPU flags?
>
Not really.
It is one of the many things on my bucketlist of basic things which need
fixing with all the other Xen/libxc/toolstack cpuid work.
~Andrew
prev parent reply other threads:[~2014-06-06 13:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-06 13:28 libvirt and nestedhvm Alvin Starr
2014-06-06 13:33 ` Andrew Cooper [this message]
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=5391C342.3090800@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=alvin@netvel.net \
--cc=xen-devel@lists.xen.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.