Skip to content

Commit c9f804d

Browse files
roygerbostrovs
authored andcommitted
xen/pvh: set xen_domain_type to HVM in xen_pvh_init
Or else xen_domain() returns false despite xen_pvh being set. Signed-off-by: Roger Pau Monné <[email protected]> Reviewed-by: Boris Ostrovsky <[email protected]> Signed-off-by: Boris Ostrovsky <[email protected]> Cc: [email protected] # 4.19+
1 parent 51cf07a commit c9f804d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/x86/xen/enlighten_pvh.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ void __init xen_pvh_init(void)
2727
u64 pfn;
2828

2929
xen_pvh = 1;
30+
xen_domain_type = XEN_HVM_DOMAIN;
3031
xen_start_flags = pvh_start_info.flags;
3132

3233
msr = cpuid_ebx(xen_cpuid_base() + 2);

0 commit comments

Comments
 (0)