diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-30 09:25:56 -0600 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-12-30 09:25:57 +1030 |
commit | 480daab42c4dd74b3c07031ddf9031251c530c77 (patch) | |
tree | c491b040071be3867aa42942a80435866fbc85cf /drivers | |
parent | 99e0b6c8e3f30602383bcfe3f574537a02ee2bea (diff) | |
download | linux-3.10-480daab42c4dd74b3c07031ddf9031251c530c77.tar.gz linux-3.10-480daab42c4dd74b3c07031ddf9031251c530c77.tar.bz2 linux-3.10-480daab42c4dd74b3c07031ddf9031251c530c77.zip |
virtio: Don't use PAGE_SIZE in virtio_pci.c
The virtio PCI devices don't depend on the guest page size. This matters
now PowerPC virtio is gaining ground (they like 64k pages).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/virtio/virtio_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/virtio/virtio_pci.c b/drivers/virtio/virtio_pci.c index e37d686edfe..c2cd69ba0a8 100644 --- a/drivers/virtio/virtio_pci.c +++ b/drivers/virtio/virtio_pci.c @@ -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 */ |