mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] xen/pvh: set xen_domain_type to HVM in xen_pvh_init
@ 2019-04-23  9:28 Roger Pau Monne
  2019-04-23  9:28 ` [PATCH 2/2] xen/pvh: correctly setup the PV EFI interface for dom0 Roger Pau Monne
  0 siblings, 1 reply; 4+ messages in thread
From: Roger Pau Monne @ 2019-04-23  9:28 UTC (permalink / raw)
  To: linux-kernel; +Cc: Roger Pau Monne, Boris Ostrovsky, Juergen Gross, xen-devel

Or else xen_domain() returns false despite xen_pvh being set.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
---
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: xen-devel@lists.xenproject.org
---
 arch/x86/xen/enlighten_pvh.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/xen/enlighten_pvh.c b/arch/x86/xen/enlighten_pvh.c
index 35b7599d2d0b..bbffa409e0e8 100644
--- a/arch/x86/xen/enlighten_pvh.c
+++ b/arch/x86/xen/enlighten_pvh.c
@@ -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);
-- 
2.17.2 (Apple Git-113)


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-04-23  9:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-23  9:28 [PATCH 1/2] xen/pvh: set xen_domain_type to HVM in xen_pvh_init Roger Pau Monne
2019-04-23  9:28 ` [PATCH 2/2] xen/pvh: correctly setup the PV EFI interface for dom0 Roger Pau Monne
2019-04-23  9:36   ` Juergen Gross
2019-04-23  9:42     ` Roger Pau Monné

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®