domctl: restrict DOMCTL_set_target to HVM domains
authorJan Beulich <jbeulich@suse.com>
Thu, 22 Jun 2017 07:50:00 +0000 (09:50 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Jun 2017 07:50:00 +0000 (09:50 +0200)
commite42c68e8b542ddbc315e9ab61d5d1ef8cc5b1b1b
tree241711477b4d473fd135b69d35dd7ef85ed4ad1e
parent5ec3ef77d0c770e0cdc0c7dbee5015693eadbc6a
domctl: restrict DOMCTL_set_target to HVM domains

Both the XSA-217 fix and
lists.xenproject.org/archives/html/xen-devel/2017-04/msg02945.html
make this assumption, so let's enforce it.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper@citrix.com>
xen/common/domctl.c