hv_kvm: initial support for CPU pinning
authorTsachy Shacham <tsachy@google.com>
Wed, 24 Aug 2011 08:30:28 +0000 (10:30 +0200)
committerMichael Hanselmann <hansmi@google.com>
Thu, 25 Aug 2011 10:50:08 +0000 (12:50 +0200)
Signed-off-by: Tsachy Shacham <tsachy@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>

lib/hypervisor/hv_kvm.py

index 579e563..9407f62 100644 (file)
@@ -201,7 +201,8 @@ class KVMHypervisor(hv_base.BaseHypervisor):
     constants.HV_KVM_USE_CHROOT: hv_base.NO_CHECK,
     constants.HV_MEM_PATH: hv_base.OPT_DIR_CHECK,
     constants.HV_REBOOT_BEHAVIOR:
-      hv_base.ParamInSet(True, constants.REBOOT_BEHAVIORS)
+      hv_base.ParamInSet(True, constants.REBOOT_BEHAVIORS),
+    constants.HV_CPU_MASK: hv_base.OPT_MULTI_CPU_MASK_CHECK,
     }
 
   _MIGRATION_STATUS_RE = re.compile("Migration\s+status:\s+(\w+)",