diff options
author | Praveen K Paladugu <prapal@linux.microsoft.com> | 2023-02-09 22:09:28 +0000 |
---|---|---|
committer | Michal Privoznik <mprivozn@redhat.com> | 2023-02-10 15:23:21 +0100 |
commit | 092176e5ec2f45d3b56a9e131c5237c52712d804 (patch) | |
tree | fe441743dce1f26438f330daf9a1d2a6a5c72065 /src/ch | |
parent | 03f76e577d66f8eea6aa7cc513e75026527b4cda (diff) | |
download | libvirt-092176e5ec2f45d3b56a9e131c5237c52712d804.tar.gz |
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>
Diffstat (limited to 'src/ch')
-rw-r--r-- | src/ch/ch_domain.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ch/ch_domain.c b/src/ch/ch_domain.c index 83defbb416..cf98654479 100644 --- a/src/ch/ch_domain.c +++ b/src/ch/ch_domain.c @@ -262,6 +262,7 @@ virDomainDefParserConfig virCHDriverDomainDefParserConfig = { .domainPostParseBasicCallback = virCHDomainDefPostParseBasic, .domainPostParseCallback = virCHDomainDefPostParse, .deviceValidateCallback = chValidateDomainDeviceDef, + .features = VIR_DOMAIN_DEF_FEATURE_NO_STUB_CONSOLE, }; virCHMonitor * |