]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: set nestedhvm for mode host-passthrough
authorWim ten Have <wim.ten.have@oracle.com>
Mon, 24 Apr 2017 13:06:59 +0000 (15:06 +0200)
committerJim Fehlig <jfehlig@suse.com>
Thu, 27 Apr 2017 21:05:44 +0000 (15:05 -0600)
commitc268b9eaeb4321ef311ae2e152b80752918eb289
tree7e19d7fd4958df9747a95602d2c0ab073fbc7187
parentdf13c0b477ffda460eed259c3b8aab7255f11199
libxl: set nestedhvm for mode host-passthrough

Xen feature nestedhvm is the option on Xen 4.4+ which enables
nested virtualization when mode host-passthrough is applied.

nested HVM is enabled by adding below on the target domain;
<cpu mode='host-passthrough'/>

Virtualization on target domain can be disabled by specifying
such under feature policy rule on target name;

[On Intel (VT-x) architecture]
<feature policy='disable' name='vmx'/>

or:

[On AMD (AMD-V) architecture]
<feature policy='disable' name='svm'/>

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Signed-off-by: Wim ten Have <wim.ten.have@oracle.com>
src/libxl/libxl_conf.c
src/libxl/libxl_conf.h
src/libxl/libxl_domain.c