From 3c25a3fe3ffeb899d6a8c93549988ea38750468b Mon Sep 17 00:00:00 2001 From: John Garbutt Date: Fri, 15 Nov 2013 15:44:26 +0000 Subject: xenapi: add support for vcpu_pin_set This moves vcpu_pin_set config from the libvirt driver into a place that can be shared between drivers, nova.virt.cpu At the same time, the utility function that converts the configuration value into a list of integers has also been moved into nova.virt.cpu This new code is then used in the XenAPI driver to apply a CPU mask that implements the currently configured value for vcpu_pin_set The main use case for this setting is to ensure all guest VMs are not using the physical CPUs that Dom0 are configured to use. DocImpact Completes blueprint xenapi-vcpu-pin-set Change-Id: I9d53d93db0c5f2a11ad685d3fc335f0cd6b1f79b --- etc/nova/nova.conf.sample | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'etc') diff --git a/etc/nova/nova.conf.sample b/etc/nova/nova.conf.sample index 5856a03d36..efcec13a73 100644 --- a/etc/nova/nova.conf.sample +++ b/etc/nova/nova.conf.sample @@ -1883,6 +1883,15 @@ #mkisofs_cmd=genisoimage +# +# Options defined in nova.virt.cpu +# + +# Which pcpus can be used by vcpus of instance e.g: +# "4-12,^8,15" (string value) +#vcpu_pin_set= + + # # Options defined in nova.virt.disk.api # @@ -2593,10 +2602,6 @@ # file=directsync,block=none (list value) #disk_cachemodes= -# Which pcpus can be used by vcpus of instance e.g: -# "4-12,^8,15" (string value) -#vcpu_pin_set= - # # Options defined in nova.virt.libvirt.imagebackend -- cgit v1.2.1