xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* libvirt and nestedhvm.
@ 2014-06-06 13:28 Alvin Starr
  2014-06-06 13:33 ` Andrew Cooper
  0 siblings, 1 reply; 2+ messages in thread
From: Alvin Starr @ 2014-06-06 13:28 UTC (permalink / raw)
  To: xen-devel

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 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?
Is there anything equivalent to nestedhvm for dom0?

or is there a way to read the raw CPU flags?



-- 
Alvin Starr                   ||   voice: (905)513-7688
Netvel Inc.                   ||   Cell:  (416)806-0133
alvin@netvel.net              ||

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: libvirt and nestedhvm.
  2014-06-06 13:28 libvirt and nestedhvm Alvin Starr
@ 2014-06-06 13:33 ` Andrew Cooper
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cooper @ 2014-06-06 13:33 UTC (permalink / raw)
  To: Alvin Starr; +Cc: xen-devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-06 13:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-06 13:28 libvirt and nestedhvm Alvin Starr
2014-06-06 13:33 ` Andrew Cooper

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).