Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/bouyer-xenpvh]: src/sys/arch/xen/xen switch vm_guest to VM_GUEST_XENPVHV...



details:   https://anonhg.NetBSD.org/src/rev/eb35d2dd82b1
branches:  bouyer-xenpvh
changeset: 930906:eb35d2dd82b1
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Thu Apr 16 20:21:04 2020 +0000

description:
switch vm_guest to VM_GUEST_XENPVHVM only after all tests succeeded.

diffstat:

 sys/arch/xen/xen/hypervisor.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 7bc32501df15 -r eb35d2dd82b1 sys/arch/xen/xen/hypervisor.c
--- a/sys/arch/xen/xen/hypervisor.c     Thu Apr 16 19:23:50 2020 +0000
+++ b/sys/arch/xen/xen/hypervisor.c     Thu Apr 16 20:21:04 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hypervisor.c,v 1.73.2.4 2020/04/16 19:23:50 bouyer Exp $ */
+/* $NetBSD: hypervisor.c,v 1.73.2.5 2020/04/16 20:21:04 bouyer Exp $ */
 
 /*
  * Copyright (c) 2005 Manuel Bouyer.
@@ -53,7 +53,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hypervisor.c,v 1.73.2.4 2020/04/16 19:23:50 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hypervisor.c,v 1.73.2.5 2020/04/16 20:21:04 bouyer Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -251,8 +251,6 @@
                /* XXX: vtophys(&hypercall_page) */
                wrmsr(descs[1], (uintptr_t)&hypercall_page - KERNBASE);
 
-               vm_guest = VM_GUEST_XENPVHVM; /* Be more specific */
-
        } else {
                return 0;
        }
@@ -427,7 +425,7 @@
        bi.common.len = sizeof(struct btinfo_rootdevice);
 
        /* From i386/multiboot.c */
-       /*      $NetBSD: hypervisor.c,v 1.73.2.4 2020/04/16 19:23:50 bouyer Exp $       */
+       /*      $NetBSD: hypervisor.c,v 1.73.2.5 2020/04/16 20:21:04 bouyer Exp $       */
        int i, len;
        vaddr_t data;
        extern struct bootinfo  bootinfo;
@@ -456,6 +454,8 @@
        events_default_setup();
        delay_func = xen_delay;
        initclock_func = xen_initclocks;
+       vm_guest = VM_GUEST_XENPVHVM; /* Be more specific */
+
 #endif /* XENPVHVM */
 
        /* If we got here, it must mean we matched */



Home | Main Index | Thread Index | Old Index