x86/hvm: Fix the use of "hap=0" following c/s c0902a9a143a
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 9 Oct 2019 18:21:14 +0000 (19:21 +0100)
committerWei Liu <wl@xen.org>
Thu, 10 Oct 2019 09:17:21 +0000 (10:17 +0100)
commit4ca8eab5ce1893b3048b06921f12157d33ab60f7
treebb6057d4785734e1d964d312a135e5093fbf71cc
parent575e18d54d19eda787f6477a4acd3c50f72751a9
x86/hvm: Fix the use of "hap=0" following c/s c0902a9a143a

c/s c0902a9a143a refactored hvm_enable() a little, but dropped the logic which
cleared hap_supported in the case that the user had asked for it off.

This results in Xen booting up, claiming:

  (XEN) HVM: Hardware Assisted Paging (HAP) detected but disabled

but with HAP advertised via sysctl, and XEN_DOMCTL_CDF_hap being accepted in
domain_create().

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wl@xen.org>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/x86/hvm/hvm.c