numam-spdk/lib/vhost
Shuhei Matsumoto 14797d839d vhost: Allow set cpumask more than active cores for vhost
The latest change for the portal group is applied to the vhost.
The following comment is quoted from it.

Currently the cpumask must be a subset of the reactor mask.

However, this is different from sched_setaffinity() function
and taskset command of FreeBSD and Linux.  The latter will
be familier for more people. Hence the later is adopted.

The following is quoted from the FreeBSD Man Page of taskset:

  The CPU affinity is represented as a bitmask, with the lowest
  order bit corresponding to the first logical CPU and the
  highest order bit corresponding to the last logical CPU.

  Not all CPUs may exist on a given system but a mask may specify
  more CPUs than are present.

  A retrieved mask will reflect only the bits that correspond to
  CPUs physically on the system.

  If an invalid mask is given (i.e., one that corresponds to no
  valid CPUs on the current system) an error is returned.

  The masks are typically given in hexadecimal.

Change-Id: Idcd72a12ef52e4ccec8476e7d54fab82867cf936
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/392587
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Ziye Yang <optimistyzy@gmail.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2017-12-21 13:32:31 -05:00
..
rte_vhost vhost: Reduces size of vhost app coredump file. 2017-12-01 12:56:04 -05:00
Makefile env: Automatically register new memory with the IOMMU 2017-09-01 15:25:24 -04:00
test_plan.md test/vhost: Test Plan for vhost initiator. 2017-10-26 14:07:59 -04:00
vhost_blk.c vhost_blk: close the bdev in the hotplug callback 2017-12-19 14:54:51 -05:00
vhost_internal.h vhost: interrupts coalescing 2017-10-27 13:06:40 -04:00
vhost_rpc.c vhost: Switch "Dev" keyword to "Target" 2017-12-08 09:25:49 -05:00
vhost_scsi.c vhost/rpc: fix get_vhost_controllers 2017-12-14 11:27:57 -05:00
vhost.c vhost: Allow set cpumask more than active cores for vhost 2017-12-21 13:32:31 -05:00