xen/pvshim: identity pin shim vCPUs to pCPUs
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 17 Jan 2018 09:20:05 +0000 (09:20 +0000)
committerWei Liu <wei.liu2@citrix.com>
Thu, 18 Jan 2018 11:17:53 +0000 (11:17 +0000)
commitc9c71e4124b00d33d89aa95527b32527cee5198f
treec1d37fb0bb9d1ee1e12056b1bdc0ce0def0145cd
parenta232346b1fe1aee0805cdf1f1c3342fc6ad7c353
xen/pvshim: identity pin shim vCPUs to pCPUs

Since VCPUOP_{up/down} already identity maps vCPU hotplug to pCPU
hotplug also identity pin the vCPUs to the pCPUs in the scheduler.
This prevents vCPU migration and should improve performance.

While there also use __cpumask_set_cpu instead of cpumask_set_cpu,
there's no need to use the locked variant.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/dom0_build.c