xen/domctl: Simplify DOMCTL_CDF_ checking logic
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 29 Sep 2020 15:56:35 +0000 (16:56 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 6 Oct 2020 11:28:37 +0000 (12:28 +0100)
commit45264e0669c0874c9058f7c7de24d5c45a425664
treeb0facc3554101e96670734ce3fedbdb4ef55e76a
parent346b11561906840e29ca82d5569a51f6668d3a6a
xen/domctl: Simplify DOMCTL_CDF_ checking logic

Introduce some local variables to make the resulting logic easier to follow.
Join the two IOMMU checks in sanitise_domain_config().  Tweak some of the
terminology for better accuracy.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Wei Liu <wl@xen.org>
xen/arch/x86/domain.c
xen/common/domain.c