From 92dafc9934949b41bb4b35c1c53944b9d6dc85b5 Mon Sep 17 00:00:00 2001 From: bouyer Date: Tue, 15 Sep 2020 10:58:02 +0000 Subject: [PATCH] Fix side effect of previous commit: skip xencons attachement only for PVHVM guests. Should fix issue with console on PV dom0 reported by kardel@ in private mail --- sys/arch/xen/xen/hypervisor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/xen/xen/hypervisor.c b/sys/arch/xen/xen/hypervisor.c index 3a66e09043d6..602f6e193603 100644 --- a/sys/arch/xen/xen/hypervisor.c +++ b/sys/arch/xen/xen/hypervisor.c @@ -1,4 +1,4 @@ -/* $NetBSD: hypervisor.c,v 1.88 2020/09/09 16:46:06 bouyer Exp $ */ +/* $NetBSD: hypervisor.c,v 1.89 2020/09/15 10:58:02 bouyer Exp $ */ /* * Copyright (c) 2005 Manuel Bouyer. @@ -53,7 +53,7 @@ #include -__KERNEL_RCSID(0, "$NetBSD: hypervisor.c,v 1.88 2020/09/09 16:46:06 bouyer Exp $"); +__KERNEL_RCSID(0, "$NetBSD: hypervisor.c,v 1.89 2020/09/15 10:58:02 bouyer Exp $"); #include #include @@ -676,7 +676,7 @@ hypervisor_attach(device_t parent, device_t self, void *aux) config_found_ia(self, "xendevbus", &hac.hac_xenbus, hypervisor_print); #endif #if NXENCONS > 0 - if (xencons_interface != 0) { + if (xencons_interface != 0 || vm_guest != VM_GUEST_XENPVHVM) { memset(&hac, 0, sizeof(hac)); hac.hac_xencons.xa_device = "xencons"; config_found_ia(self, "xendevbus", &hac.hac_xencons, hypervisor_print);