Revision 7ba594c0 lib/hypervisor/hv_kvm.py

b/lib/hypervisor/hv_kvm.py
80 80
    constants.HV_SECURITY_MODEL:
81 81
      hv_base.ParamInSet(True, constants.HT_KVM_VALID_SM_TYPES),
82 82
    constants.HV_SECURITY_DOMAIN: hv_base.NO_CHECK,
83
    constants.HV_KVM_FLAG:
84
      hv_base.ParamInSet(False, constants.HT_KVM_FLAG_VALUES),
83 85
    }
84 86

  
85 87
  _MIGRATION_STATUS_RE = re.compile('Migration\s+status:\s+(\w+)',
......
366 368
    boot_cdrom = hvp[constants.HV_BOOT_ORDER] == constants.HT_BO_CDROM
367 369
    boot_network = hvp[constants.HV_BOOT_ORDER] == constants.HT_BO_NETWORK
368 370

  
371
    if hvp[constants.HV_KVM_FLAG] == constants.HT_KVM_ENABLED:
372
      kvm_cmd.extend(["-enable-kvm"])
373
    elif hvp[constants.HV_KVM_FLAG] == constants.HT_KVM_DISABLED:
374
      kvm_cmd.extend(["-disable-kvm"])
375

  
369 376
    if boot_network:
370 377
      kvm_cmd.extend(['-boot', 'n'])
371 378

  

Also available in: Unified diff