diff options
author | 2017-02-24 16:58:12 +0000 | |
---|---|---|
committer | 2017-02-24 16:58:12 +0000 | |
commit | a327e742b8a1e241a1b2f89840e74b3064869966 (patch) | |
tree | 4f17bd8f5aab2caaa4d9414b10a5386ed34082dd /sys/dev/pv/xen.c | |
parent | Implement fork+exec model (diff) | |
download | wireguard-openbsd-a327e742b8a1e241a1b2f89840e74b3064869966.tar.xz wireguard-openbsd-a327e742b8a1e241a1b2f89840e74b3064869966.zip |
Update license
Some final touches before the release, increase the maximum
number of CAS iterations before we declare the grant table
entry lost forever. This happens on older Xen 3.x versions
as reported by Kirill Miazine.
Diffstat (limited to 'sys/dev/pv/xen.c')
-rw-r--r-- | sys/dev/pv/xen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pv/xen.c b/sys/dev/pv/xen.c index 3ceda5540a7..5e7c9c98b5b 100644 --- a/sys/dev/pv/xen.c +++ b/sys/dev/pv/xen.c @@ -1,7 +1,7 @@ -/* $OpenBSD: xen.c,v 1.78 2017/02/08 16:15:52 mikeb Exp $ */ +/* $OpenBSD: xen.c,v 1.79 2017/02/24 16:58:12 mikeb Exp $ */ /* - * Copyright (c) 2015 Mike Belopuhov + * Copyright (c) 2015, 2016, 2017 Mike Belopuhov * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -1186,7 +1186,7 @@ xen_grant_table_remove(struct xen_softc *sc, grant_ref_t ref) (ge->ge_table[ref].domid << 16); loop = 0; while (atomic_cas_uint(ptr, flags, GTF_invalid) != flags) { - if (loop++ > 10000000) { + if (loop++ > 100000000) { printf("%s: grant table reference %u is held " "by domain %d\n", sc->sc_dev.dv_xname, ref + ge->ge_start, ge->ge_table[ref].domid); |