Skip to content

Commit

Permalink
xen/pvh: set xen_domain_type to HVM in xen_pvh_init
Browse files Browse the repository at this point in the history
Or else xen_domain() returns false despite xen_pvh being set.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: stable@vger.kernel.org # 4.19+
  • Loading branch information
royger authored and Boris Ostrovsky committed Apr 25, 2019
1 parent 51cf07a commit c9f804d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/x86/xen/enlighten_pvh.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ void __init xen_pvh_init(void)
u64 pfn;

xen_pvh = 1;
xen_domain_type = XEN_HVM_DOMAIN;
xen_start_flags = pvh_start_info.flags;

msr = cpuid_ebx(xen_cpuid_base() + 2);
Expand Down

0 comments on commit c9f804d

Please sign in to comment.