mirror of https://gitee.com/openkylin/libvirt.git
libxl: warn about ignored CPU mode=custom
When support for mode=custom will be added in the future, semantics of current config will change. Reduce the surprise by emitting a warning. Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
446d091498
commit
8c49e04ecd
|
@ -424,6 +424,12 @@ libxlMakeDomBuildInfo(virDomainDefPtr def,
|
|||
libxl_defbool_set(&b_info->u.hvm.nested_hvm, hasHwVirt);
|
||||
}
|
||||
|
||||
if (def->cpu && def->cpu->mode == VIR_CPU_MODE_CUSTOM) {
|
||||
VIR_WARN("Ignoring CPU with mode=custom, update your config to "
|
||||
"mode=host-passthrough to avoid risk of changed guest "
|
||||
"semantics when mode=custom is supported in the future");
|
||||
}
|
||||
|
||||
if (def->nsounds > 0) {
|
||||
/*
|
||||
* Use first sound device. man xl.cfg(5) describes soundhw as
|
||||
|
|
Loading…
Reference in New Issue