Skip to content

Commit 70b346e

Browse files
committed
stratovirt: add network multiqueue support
1 parent 12120d4 commit 70b346e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/runners/stratovirt.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ let
2626
aarch64-linux = "virt";
2727
}.${system};
2828

29+
tapMultiQueue = vcpu > 1;
30+
2931
console = {
3032
x86_64-linux = "ttyS0";
3133
aarch64-linux = "ttyAMA0";
@@ -63,6 +65,8 @@ let
6365
echo '${builtins.toJSON data}' | nc -U "${socket}"
6466
'';
6567
in {
68+
inherit tapMultiQueue;
69+
6670
command = lib.escapeShellArgs (
6771
[
6872
"${pkgs.stratovirt}/bin/stratovirt"
@@ -123,6 +127,9 @@ in {
123127
++ lib.optionals (type == "macvtap") [
124128
"fd=${toString macvtapFds.${id}}"
125129
]
130+
++ lib.optionals tapMultiQueue [
131+
"queues=${toString vcpu}"
132+
]
126133
)
127134
)
128135
# TODO: devType (0x10 + i)

0 commit comments

Comments
 (0)