Commit 97f06047 authored by Roger Pau Monne's avatar Roger Pau Monne Committed by Greg Kroah-Hartman

xen/pvh: set xen_domain_type to HVM in xen_pvh_init

commit c9f804d6 upstream.

Or else xen_domain() returns false despite xen_pvh being set.
Signed-off-by: default avatarRoger Pau Monné <roger.pau@citrix.com>
Reviewed-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: stable@vger.kernel.org # 4.19+
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fdea76e5
...@@ -27,6 +27,7 @@ void __init xen_pvh_init(void) ...@@ -27,6 +27,7 @@ void __init xen_pvh_init(void)
u64 pfn; u64 pfn;
xen_pvh = 1; xen_pvh = 1;
xen_domain_type = XEN_HVM_DOMAIN;
xen_start_flags = pvh_start_info.flags; xen_start_flags = pvh_start_info.flags;
msr = cpuid_ebx(xen_cpuid_base() + 2); msr = cpuid_ebx(xen_cpuid_base() + 2);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment