Module Name: src Committed By: jnemeth Date: Wed Jun 8 01:59:06 UTC 2016
Modified Files: src/sys/arch/xen/xen: xen_machdep.c Log Message: Feeding uninitialised garbage to the hypervisor is likely to be a bad idea. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/arch/xen/xen/xen_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/xen/xen/xen_machdep.c diff -u src/sys/arch/xen/xen/xen_machdep.c:1.14 src/sys/arch/xen/xen/xen_machdep.c:1.15 --- src/sys/arch/xen/xen/xen_machdep.c:1.14 Sun May 29 17:06:17 2016 +++ src/sys/arch/xen/xen/xen_machdep.c Wed Jun 8 01:59:06 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: xen_machdep.c,v 1.14 2016/05/29 17:06:17 bouyer Exp $ */ +/* $NetBSD: xen_machdep.c,v 1.15 2016/06/08 01:59:06 jnemeth Exp $ */ /* * Copyright (c) 2006 Manuel Bouyer. @@ -53,7 +53,7 @@ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: xen_machdep.c,v 1.14 2016/05/29 17:06:17 bouyer Exp $"); +__KERNEL_RCSID(0, "$NetBSD: xen_machdep.c,v 1.15 2016/06/08 01:59:06 jnemeth Exp $"); #include "opt_xen.h" @@ -406,6 +406,7 @@ xen_init_features(void) xen_feature_info_t features; for (int sm = 0; sm < XENFEAT_NR_SUBMAPS; sm++) { + features.submap_idx = sm; if (HYPERVISOR_xen_version(XENVER_get_features, &features) < 0) break; for (int f = 0; f < 32; f++) {