Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 123973
b: refs/heads/master
c: 480daab
h: refs/heads/master
i:
  123971: bc4b406
v: v3
  • Loading branch information
Rusty Russell committed Dec 29, 2008
1 parent 23ce61a commit d5692cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 99e0b6c8e3f30602383bcfe3f574537a02ee2bea
refs/heads/master: 480daab42c4dd74b3c07031ddf9031251c530c77
2 changes: 1 addition & 1 deletion trunk/drivers/virtio/virtio_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ static struct virtqueue *vp_find_vq(struct virtio_device *vdev, unsigned index,
}

/* activate the queue */
iowrite32(virt_to_phys(info->queue) >> PAGE_SHIFT,
iowrite32(virt_to_phys(info->queue) >> VIRTIO_PCI_QUEUE_ADDR_SHIFT,
vp_dev->ioaddr + VIRTIO_PCI_QUEUE_PFN);

/* create the vring */
Expand Down
4 changes: 4 additions & 0 deletions trunk/include/linux/virtio_pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,8 @@

/* Virtio ABI version, this must match exactly */
#define VIRTIO_PCI_ABI_VERSION 0

/* How many bits to shift physical queue address written to QUEUE_PFN.
* 12 is historical, and due to x86 page size. */
#define VIRTIO_PCI_QUEUE_ADDR_SHIFT 12
#endif

0 comments on commit d5692cc

Please sign in to comment.