mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
check cpu host-model mode support
UPDATE_CPU flag exists after v0.8.0, so libvirt that supports HOST_MODEL should support UPDATE_CPU, the earliest version we are going to check is v0.9.10.
This commit is contained in:
parent
3214cec085
commit
15f72a84ab
@ -547,6 +547,13 @@ class vmmConnection(vmmGObject):
|
||||
else:
|
||||
logging.debug("Domain XML secure flag not supported.")
|
||||
|
||||
if virtinst.support.check_domain_support(vm,
|
||||
virtinst.support.SUPPORT_DOMAIN_CPU_HOST_MODEL):
|
||||
inact |= libvirt.VIR_DOMAIN_XML_UPDATE_CPU
|
||||
act |= libvirt.VIR_DOMAIN_XML_UPDATE_CPU
|
||||
else:
|
||||
logging.debug("Domain XML update flag not supported.")
|
||||
|
||||
return inact, act
|
||||
|
||||
return self._get_flags_helper(vm, key, check_func)
|
||||
|
@ -45,6 +45,7 @@ SUPPORT_DOMAIN_JOB_INFO = 1005
|
||||
SUPPORT_DOMAIN_MAXVCPUS_XML = 1006
|
||||
SUPPORT_DOMAIN_CONSOLE_STREAM = 1007
|
||||
SUPPORT_DOMAIN_SET_METADATA = 1008
|
||||
SUPPORT_DOMAIN_CPU_HOST_MODEL = 1009
|
||||
|
||||
# Flags for check_pool_support
|
||||
SUPPORT_STORAGE_CREATEVOLFROM = 2000
|
||||
@ -200,6 +201,10 @@ _support_dict = {
|
||||
"version" : 9010,
|
||||
},
|
||||
|
||||
SUPPORT_DOMAIN_CPU_HOST_MODEL : {
|
||||
"version" : 9010,
|
||||
},
|
||||
|
||||
|
||||
# Pool checks
|
||||
# This can't ever require a pool object for back compat reasons
|
||||
|
Loading…
Reference in New Issue
Block a user