]> git.ipfire.org Git - thirdparty/libvirt.git/commit
ch: Enable hyperv hypervisor
authorPraveen K Paladugu <prapal@linux.microsoft.com>
Tue, 20 Feb 2024 22:06:03 +0000 (16:06 -0600)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 8 Mar 2024 12:01:00 +0000 (13:01 +0100)
commit51c14df9670ba2f5d193b700f39e6464e1bc18c6
tree95c9ef06cd13f3edc0aa013506775f1b127108d5
parentb51b06ecebb64ced574122158337f61420d847a9
ch: Enable hyperv hypervisor

Cloud-Hypervisor is capable of running VMs with kvm or mshv as the
hypervisor on Linux Host. Guest to hypevisor ABI with mshv hypervisor is
the same as in the case of VIR_DOMAIN_VIRT_HYPERV. So, VIR_DOMAIN_VIRT_HYPERV
type will be reused to represent the config with Linux Host and mshv as the
hypervisor.

While initializing ch driver, check if either of /dev/kvm or /dev/mshv
device is present on the host. Before starting ch domains, check if the
requested hypervisor device is present on the host.

Users can specify hypervisor in ch guests's domain definitions like
below:

<domain type='kvm'>

_or_

<domain type='hyperv'>

Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com>
Signed-off-by: Praveen K Paladugu <praveenkpaladugu@gmail.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/ch/ch_conf.c
src/ch/ch_driver.c
src/ch/ch_process.c