]> git.ipfire.org Git - thirdparty/libvirt.git/commit
ch: Do not add stub console to ch VMs
authorPraveen K Paladugu <prapal@linux.microsoft.com>
Thu, 9 Feb 2023 22:09:28 +0000 (22:09 +0000)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 10 Feb 2023 14:23:21 +0000 (15:23 +0100)
commit092176e5ec2f45d3b56a9e131c5237c52712d804
treefe441743dce1f26438f330daf9a1d2a6a5c72065
parent03f76e577d66f8eea6aa7cc513e75026527b4cda
ch: Do not add stub console to ch VMs

virDomainDefAddConsoleCompat in post parsing step appends a stub console
of type VIR_DOMAIN_CHR_TYPE_NULL to ch VMs' Domain XML. Cloud-hypervisor's
deviceValidateCallback (chValidateDomainDeviceDef) checks that the type of
stub console is not of type VIR_DOMAIN_CHR_TYPE_PTY and throws an error.

This commit introduces NO_STUB_CONSOLE feature check to Domain features and
uses it to skip adding stub console to ch VMs.

Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/ch/ch_domain.c
src/conf/domain_conf.c
src/conf/domain_conf.h