diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-12 15:37:27 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-12 15:37:27 -0500 |
commit | bcf8a3dfcb274cf6654a19e12e244f3af8c0d355 (patch) | |
tree | f1d0e0f36c0575a9202750aff65ba17ce91bc437 /tools/virtio/linux/virtio.h | |
parent | 61bd5e5683244a564ecfe31c73575ee0bc708ccc (diff) | |
parent | b6c96c0214138186f495e3ee73737c6fc5e4efa2 (diff) |
Merge tag 'to-linus' of git://github.com/rustyrussell/linux
* tag 'to-linus' of git://github.com/rustyrussell/linux: (24 commits)
lguest: Make sure interrupt is allocated ok by lguest_setup_irq
lguest: move the lguest tool to the tools directory
lguest: switch segment-voodoo-numbers to readable symbols
virtio: balloon: Add freeze, restore handlers to support S4
virtio: balloon: Move vq initialization into separate function
virtio: net: Add freeze, restore handlers to support S4
virtio: net: Move vq and vq buf removal into separate function
virtio: net: Move vq initialization into separate function
virtio: blk: Add freeze, restore handlers to support S4
virtio: blk: Move vq initialization to separate function
virtio: console: Disable callbacks for virtqueues at start of S4 freeze
virtio: console: Add freeze and restore handlers to support S4
virtio: console: Move vq and vq buf removal into separate functions
virtio: pci: add PM notification handlers for restore, freeze, thaw, poweroff
virtio: pci: switch to new PM API
virtio_blk: fix config handler race
virtio: add debugging if driver doesn't kick.
virtio: expose added descriptors immediately.
virtio: avoid modulus operation.
virtio: support unlocked queue kick
...
Diffstat (limited to 'tools/virtio/linux/virtio.h')
-rw-r--r-- | tools/virtio/linux/virtio.h | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/tools/virtio/linux/virtio.h b/tools/virtio/linux/virtio.h index 669bcdd45805..b4fbc91c41b4 100644 --- a/tools/virtio/linux/virtio.h +++ b/tools/virtio/linux/virtio.h | |||
@@ -186,21 +186,12 @@ struct virtqueue { | |||
186 | #endif | 186 | #endif |
187 | 187 | ||
188 | /* Interfaces exported by virtio_ring. */ | 188 | /* Interfaces exported by virtio_ring. */ |
189 | int virtqueue_add_buf_gfp(struct virtqueue *vq, | 189 | int virtqueue_add_buf(struct virtqueue *vq, |
190 | struct scatterlist sg[], | 190 | struct scatterlist sg[], |
191 | unsigned int out_num, | 191 | unsigned int out_num, |
192 | unsigned int in_num, | 192 | unsigned int in_num, |
193 | void *data, | 193 | void *data, |
194 | gfp_t gfp); | 194 | gfp_t gfp); |
195 | |||
196 | static inline int virtqueue_add_buf(struct virtqueue *vq, | ||
197 | struct scatterlist sg[], | ||
198 | unsigned int out_num, | ||
199 | unsigned int in_num, | ||
200 | void *data) | ||
201 | { | ||
202 | return virtqueue_add_buf_gfp(vq, sg, out_num, in_num, data, GFP_ATOMIC); | ||
203 | } | ||
204 | 195 | ||
205 | void virtqueue_kick(struct virtqueue *vq); | 196 | void virtqueue_kick(struct virtqueue *vq); |
206 | 197 | ||
@@ -214,6 +205,7 @@ void *virtqueue_detach_unused_buf(struct virtqueue *vq); | |||
214 | struct virtqueue *vring_new_virtqueue(unsigned int num, | 205 | struct virtqueue *vring_new_virtqueue(unsigned int num, |
215 | unsigned int vring_align, | 206 | unsigned int vring_align, |
216 | struct virtio_device *vdev, | 207 | struct virtio_device *vdev, |
208 | bool weak_barriers, | ||
217 | void *pages, | 209 | void *pages, |
218 | void (*notify)(struct virtqueue *vq), | 210 | void (*notify)(struct virtqueue *vq), |
219 | void (*callback)(struct virtqueue *vq), | 211 | void (*callback)(struct virtqueue *vq), |