aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/bash/qemu_patches/qemu-2.5.0/01-qsz1024
diff options
context:
space:
mode:
authorpmikus <pmikus@cisco.com>2017-03-29 16:51:34 +0200
committerPeter Mikus <pmikus@cisco.com>2017-04-09 14:47:25 +0000
commit2e115ad11cca45b11c0f1949fd8c42fec899bb68 (patch)
treedc5e73e56944f5639d28de6e2cbedfce491af992 /resources/libraries/bash/qemu_patches/qemu-2.5.0/01-qsz1024
parentffd596f616dc9a65e113b25ba72b00ce6dd42a7b (diff)
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 <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries/bash/qemu_patches/qemu-2.5.0/01-qsz1024')
-rwxr-xr-xresources/libraries/bash/qemu_patches/qemu-2.5.0/01-qsz102416
1 files changed, 16 insertions, 0 deletions
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