x86/hvm: refine hap_has_{2mb,1gb} checks
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 23 Sep 2015 09:16:08 +0000 (11:16 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 23 Sep 2015 09:16:08 +0000 (11:16 +0200)
commit4db520bcf75a101ce7e06cdca52350c100a8e67e
treea9a504936bec446bcf1464b2fd493650dcca3b4d
parent6c421a12ea1ae6a7d249a013e9b7e17b2e603d66
x86/hvm: refine hap_has_{2mb,1gb} checks

HAP superpages are a host property and not dependent on domain configuration.
Drop the domain paramter (which was only used in one of the two callsites),
and drop the redundant hvm_ prefix to mirror the cpu_has_* style of feature
detection.

Finally, convert the checks to being proper booleans rather than just non-zero
integers.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm/p2m-ept.c
xen/arch/x86/mm/p2m.c
xen/include/asm-x86/hvm/hvm.h