We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12120d4 commit 70b346eCopy full SHA for 70b346e
lib/runners/stratovirt.nix
@@ -26,6 +26,8 @@ let
26
aarch64-linux = "virt";
27
}.${system};
28
29
+ tapMultiQueue = vcpu > 1;
30
+
31
console = {
32
x86_64-linux = "ttyS0";
33
aarch64-linux = "ttyAMA0";
@@ -63,6 +65,8 @@ let
63
65
echo '${builtins.toJSON data}' | nc -U "${socket}"
64
66
'';
67
in {
68
+ inherit tapMultiQueue;
69
70
command = lib.escapeShellArgs (
71
[
72
"${pkgs.stratovirt}/bin/stratovirt"
@@ -123,6 +127,9 @@ in {
123
127
++ lib.optionals (type == "macvtap") [
124
128
"fd=${toString macvtapFds.${id}}"
125
129
]
130
+ ++ lib.optionals tapMultiQueue [
131
+ "queues=${toString vcpu}"
132
+ ]
126
133
)
134
135
# TODO: devType (0x10 + i)
0 commit comments