Perform grant table page allocation outside of the table mutex
authormikeb <mikeb@openbsd.org>
Fri, 2 Jun 2017 20:25:50 +0000 (20:25 +0000)
committermikeb <mikeb@openbsd.org>
Fri, 2 Jun 2017 20:25:50 +0000 (20:25 +0000)
commitc929981af89042071b1ca9f54a2d9249eacba930
tree08255cc64b4d2f5395a2e1a60043a57f4348c952
parent7d80b82c4649617e84b7c8ed989d20d00b8a2c2e
Perform grant table page allocation outside of the table mutex

witness(4) has found that km_alloc will trigger an rw_enter via uvm_map
and vm_map_lock.  While rw_enter is called with RW_SLEEPFAIL, there's
also an msleep in there, so it's easier to avoid getting in the middle
of that.
sys/dev/pv/xen.c