]> xenbits.xensource.com Git - seabios.git/commitdiff
virtio-pci: use high memory for rings
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 1 Jul 2015 12:39:30 +0000 (14:39 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 1 Jul 2015 14:35:50 +0000 (16:35 +0200)
That way we should be able to manage *alot* more devices.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
src/hw/virtio-pci.c

index 8e7ea4656bfa6837b8bca52da15d8c7a550b0c07..6df519489dbd70952aa7f0ce51e21e857947d7f3 100644 (file)
@@ -121,7 +121,7 @@ int vp_find_vq(struct vp_device *vp, int queue_index,
    u16 num;
 
    ASSERT32FLAT();
-   struct vring_virtqueue *vq = *p_vq = memalign_low(PAGE_SIZE, sizeof(*vq));
+   struct vring_virtqueue *vq = *p_vq = memalign_high(PAGE_SIZE, sizeof(*vq));
    if (!vq) {
        warn_noalloc();
        goto fail;