mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 05:17:59 +03:00
conf: Add hvf domain type
QEMU supports Hypervisor.framework since 2.12 as hvf accel. Hypervisor.framework provides a lightweight interface to run a virtual cpu on macOS without the need to install third-party kernel extensions (KEXTs). It's supported since macOS 10.10 on machines with Intel VT-x feature set that includes Extended Page Tables (EPT) and Unrestricted Mode. Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com> Signed-off-by: Andrea Bolognani <abologna@redhat.com> Tested-by: Brad Laue <brad@brad-x.com> Tested-by: Christophe Fergeau <cfergeau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
4794458c8d
commit
bb9373d096
@ -20,7 +20,8 @@ Element and attribute overview
|
|||||||
|
|
||||||
The root element required for all virtual machines is named ``domain``. It has
|
The root element required for all virtual machines is named ``domain``. It has
|
||||||
two attributes, the ``type`` specifies the hypervisor used for running the
|
two attributes, the ``type`` specifies the hypervisor used for running the
|
||||||
domain. The allowed values are driver specific, but include "xen", "kvm", "qemu"
|
domain. The allowed values are driver specific, but include "xen", "kvm",
|
||||||
|
"hvf" (:since:`since 8.0.0 and QEMU 2.12`), "qemu"
|
||||||
and "lxc". The second attribute is ``id`` which is a unique integer identifier
|
and "lxc". The second attribute is ``id`` which is a unique integer identifier
|
||||||
for the running guest machine. Inactive machines have no id value.
|
for the running guest machine. Inactive machines have no id value.
|
||||||
|
|
||||||
|
@ -230,6 +230,7 @@
|
|||||||
<value>phyp</value> <!-- NOT USED ANYMORE -->
|
<value>phyp</value> <!-- NOT USED ANYMORE -->
|
||||||
<value>vz</value>
|
<value>vz</value>
|
||||||
<value>bhyve</value>
|
<value>bhyve</value>
|
||||||
|
<value>hvf</value>
|
||||||
</choice>
|
</choice>
|
||||||
</attribute>
|
</attribute>
|
||||||
</define>
|
</define>
|
||||||
|
@ -125,6 +125,7 @@ VIR_ENUM_IMPL(virDomainVirt,
|
|||||||
"parallels",
|
"parallels",
|
||||||
"bhyve",
|
"bhyve",
|
||||||
"vz",
|
"vz",
|
||||||
|
"hvf",
|
||||||
);
|
);
|
||||||
|
|
||||||
VIR_ENUM_IMPL(virDomainOS,
|
VIR_ENUM_IMPL(virDomainOS,
|
||||||
|
@ -139,6 +139,7 @@ typedef enum {
|
|||||||
VIR_DOMAIN_VIRT_PARALLELS,
|
VIR_DOMAIN_VIRT_PARALLELS,
|
||||||
VIR_DOMAIN_VIRT_BHYVE,
|
VIR_DOMAIN_VIRT_BHYVE,
|
||||||
VIR_DOMAIN_VIRT_VZ,
|
VIR_DOMAIN_VIRT_VZ,
|
||||||
|
VIR_DOMAIN_VIRT_HVF,
|
||||||
|
|
||||||
VIR_DOMAIN_VIRT_LAST
|
VIR_DOMAIN_VIRT_LAST
|
||||||
} virDomainVirtType;
|
} virDomainVirtType;
|
||||||
|
@ -7216,6 +7216,10 @@ qemuBuildAccelCommandLine(virCommand *cmd,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case VIR_DOMAIN_VIRT_HVF:
|
||||||
|
virBufferAddLit(&buf, "hvf");
|
||||||
|
break;
|
||||||
|
|
||||||
case VIR_DOMAIN_VIRT_KQEMU:
|
case VIR_DOMAIN_VIRT_KQEMU:
|
||||||
case VIR_DOMAIN_VIRT_XEN:
|
case VIR_DOMAIN_VIRT_XEN:
|
||||||
case VIR_DOMAIN_VIRT_LXC:
|
case VIR_DOMAIN_VIRT_LXC:
|
||||||
|
Loading…
Reference in New Issue
Block a user