summaryrefslogtreecommitdiff
path: root/sys/dev/pv/hyperv.c
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2017-06-23 18:54:45 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2017-06-23 18:54:45 +0000
commit44f5836b2fd680914e05c52762fb7a5ecee9c782 (patch)
tree98320b6a64a3a94df18f6a2c455d4a88f2f4ce9b /sys/dev/pv/hyperv.c
parent1269ff224cf1447c5bbe96fc526af64117cd1241 (diff)
s/membar_sync/virtio_membar_sync/
Diffstat (limited to 'sys/dev/pv/hyperv.c')
-rw-r--r--sys/dev/pv/hyperv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pv/hyperv.c b/sys/dev/pv/hyperv.c
index ec512a5ce3a..2b6864dcb72 100644
--- a/sys/dev/pv/hyperv.c
+++ b/sys/dev/pv/hyperv.c
@@ -730,7 +730,7 @@ hv_message_intr(struct hv_softc *sc)
sc->sc_dev.dv_xname, hdr->chm_type);
skip:
msg->msg_type = VMBUS_MSGTYPE_NONE;
- membar_sync();
+ virtio_membar_sync();
if (msg->msg_flags & VMBUS_MSGFLAG_PENDING)
wrmsr(MSR_HV_EOM, 0);
}
@@ -1297,9 +1297,9 @@ hv_ring_write(struct hv_ring_data *wrd, struct iovec *iov, int iov_cnt,
indices = (uint64_t)oprod << 32;
hv_ring_put(wrd, (uint8_t *)&indices, sizeof(indices));
- membar_sync();
+ virtio_membar_sync();
wrd->rd_ring->br_windex = wrd->rd_prod;
- membar_sync();
+ virtio_membar_sync();
/* Signal when the ring transitions from being empty to non-empty */
if (wrd->rd_ring->br_imask == 0 &&
@@ -1476,7 +1476,7 @@ hv_ring_read(struct hv_ring_data *rrd, void *data, uint32_t datalen,
hv_ring_get(rrd, (uint8_t *)data, datalen, 0);
hv_ring_get(rrd, (uint8_t *)&indices, sizeof(indices), 0);
- membar_sync();
+ virtio_membar_sync();
rrd->rd_ring->br_rindex = rrd->rd_cons;
return (0);