markj 1f20b99485 Fix several logic issues in domainset_empty_vm().
- Don't add 1 to the result of DOMAINSET_FLS.
- Do not modify domainsets containing only empty domains.
- Always flatten a _PREFER policy to _ROUNDROBIN if the preferred
  domain is empty.  Previously we were doing this only when ds_cnt > 1.

These bugs could cause hangs during boot if a VM domain is empty.

Tested by:	hselasky
Reviewed by:	hselasky, kib
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D21420
2019-08-27 14:06:34 +00:00
..
2019-08-05 19:19:25 +00:00
2019-07-30 16:01:16 +00:00
2019-01-27 00:46:06 +00:00
2019-08-05 19:16:33 +00:00
2019-08-05 20:20:14 +00:00
2019-05-20 19:14:07 +00:00
2019-06-24 20:52:21 +00:00
2018-12-05 16:43:03 +00:00
2017-12-13 16:30:39 +00:00
2019-03-12 05:10:41 +00:00
2018-10-12 00:32:45 +00:00
2019-07-24 23:04:59 +00:00
2018-08-18 19:45:56 +00:00
2018-06-01 13:26:45 +00:00
2019-02-20 09:38:19 +00:00
2019-07-24 23:04:59 +00:00
2018-11-20 14:58:41 +00:00
2019-08-05 20:31:17 +00:00
2019-08-05 20:26:01 +00:00
2018-06-01 13:26:45 +00:00
2018-10-23 21:43:41 +00:00