Spdk/test
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
..
app nbd: add NBD subsystem to apps 2017-12-12 13:36:22 -05:00
blobfs/rocksdb test/rocksdb: reduce test time for per-patch tests 2017-12-15 15:48:06 -05:00
config test/vm_setup.sh: add missing packages from pkgdep.sh 2017-12-15 16:16:31 -05:00
cpp_headers build: include spdk.app.mk in all app Makefiles 2017-11-15 17:57:07 -05:00
iscsi_tgt scsi&test/iscsi_tgt: SCSI device == iSCSI name 2017-12-19 13:34:03 -05:00
lib bdevperf: change the type of io_time_in_usec into uint64_t 2017-12-21 12:20:15 -05:00
lvol test/lvol: wait for lvolstore tasting after nvme bdev construction 2017-12-21 10:42:17 -05:00
nvmf test/nvmf: increase number of subsystems in lvol test 2017-12-21 12:20:42 -05:00
pmem bdev/pmem: require name in construct_pmem_bdev RPC 2017-12-04 18:51:14 -05:00
unit vhost: Allow set cpumask more than active cores for vhost 2017-12-21 13:32:31 -05:00
vhost test/vhost: remove obsolete parameters 'qemu-src' and 'dpdk-src' 2017-12-21 11:28:09 -05:00
Makefile test: begin moving unit tests into test/unit 2017-06-16 16:43:48 -04:00
spdk_cunit.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00