From 2e115ad11cca45b11c0f1949fd8c42fec899bb68 Mon Sep 17 00:00:00 2001 From: pmikus Date: Wed, 29 Mar 2017 16:51:34 +0200 Subject: CSIT-441 vhost - Parametrized qemu install Update the current QEMU installation script with option to override QEMU installation and to apply additional patches. Additional patches are applied from qemu_patches directory and subdir for specific QEMU version by run-parts. This means that all patches for particular version are applied. All keywords for build QEMU are updated. Change-Id: I0c874a96ac828dff657ee33eb87d88a8854128ad Signed-off-by: pmikus --- .../libraries/bash/qemu_patches/qemu-2.5.0/01-qsz1024 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 resources/libraries/bash/qemu_patches/qemu-2.5.0/01-qsz1024 (limited to 'resources/libraries/bash/qemu_patches/qemu-2.5.0/01-qsz1024') diff --git a/resources/libraries/bash/qemu_patches/qemu-2.5.0/01-qsz1024 b/resources/libraries/bash/qemu_patches/qemu-2.5.0/01-qsz1024 new file mode 100755 index 0000000000..6f5831dc8d --- /dev/null +++ b/resources/libraries/bash/qemu_patches/qemu-2.5.0/01-qsz1024 @@ -0,0 +1,16 @@ +#!/bin/sh + +patch hw/net/virtio-net.c <<"_EOF" +1333c1333 +< n->vqs[index].rx_vq = virtio_add_queue(vdev, 256, virtio_net_handle_rx); +--- +> n->vqs[index].rx_vq = virtio_add_queue(vdev, 1024, virtio_net_handle_rx); +1336c1336 +< virtio_add_queue(vdev, 256, virtio_net_handle_tx_timer); +--- +> virtio_add_queue(vdev, 1024, virtio_net_handle_tx_timer); +1342c1342 +< virtio_add_queue(vdev, 256, virtio_net_handle_tx_bh); +--- +> virtio_add_queue(vdev, 1024, virtio_net_handle_tx_bh); +_EOF -- cgit 1.2.3-korg