summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2016-01-28 11:19:50 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2016-01-28 11:19:50 +0000
commit714d3a4a7e5a095fb88ffbe0191f4165b8e69102 (patch)
tree8983e80fa858fe13a679bb71bc59c7cff8e00a45 /sys/dev
parent627e83d8223d32c3405f99c37e5fb3d7809e48c2 (diff)
Older Xen dom0's don't implement setting version of Grant Table entries
Remove leftover code that was used to set v2 of Grant Table entries. From Nathanael Rensen <nathanael at list ! polymorpheus ! com>, thanks!
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pv/xen.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/dev/pv/xen.c b/sys/dev/pv/xen.c
index 71e9fc8d45e..bed695dd1b7 100644
--- a/sys/dev/pv/xen.c
+++ b/sys/dev/pv/xen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xen.c,v 1.44 2016/01/27 18:04:42 mikeb Exp $ */
+/* $OpenBSD: xen.c,v 1.45 2016/01/28 11:19:49 mikeb Exp $ */
/*
* Copyright (c) 2015 Mike Belopuhov
@@ -773,8 +773,6 @@ int
xen_init_grant_tables(struct xen_softc *sc)
{
struct gnttab_query_size gqs;
- struct gnttab_get_version ggv;
- struct gnttab_set_version gsv;
gqs.dom = DOMID_SELF;
if (xen_hypercall(sc, XC_GNTTAB, 3, GNTTABOP_query_size, &gqs, 1)) {
@@ -787,15 +785,6 @@ xen_init_grant_tables(struct xen_softc *sc)
return (-1);
}
- gsv.version = 1;
- ggv.dom = DOMID_SELF;
- if (xen_hypercall(sc, XC_GNTTAB, 3, GNTTABOP_set_version, &gsv, 1) ||
- xen_hypercall(sc, XC_GNTTAB, 3, GNTTABOP_get_version, &ggv, 1) ||
- ggv.version != 1) {
- printf(": failed to set grant tables API version\n");
- return (-1);
- }
-
sc->sc_gntmax = gqs.max_nr_frames;
sc->sc_gnt = mallocarray(sc->sc_gntmax + 1, sizeof(struct xen_gntent),