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>
.notifier_call = cpu_callback
};
-static bool __init hap_supported(const struct hvm_function_table *fns)
+static bool __init hap_supported(struct hvm_function_table *fns)
{
if ( !fns->hap_supported )
{
if ( !opt_hap_enabled )
{
+ fns->hap_supported = 0;
printk("HVM: Hardware Assisted Paging (HAP) detected but disabled\n");
return false;
}
hvm_enabled = 1;
printk("HVM: %s enabled\n", fns->name);
- if ( !hap_supported(fns) )
+ if ( !hap_supported(&hvm_funcs) )
clear_iommu_hap_pt_share();
else
{