Skip to content

Commit 727aec8

Browse files
committed
fix(pci): allow kvm ioctls for ioeventfd and irq handling from vcpu
TODO: check if vcpu thread should be calling these ioctls at all. Signed-off-by: Riccardo Mancini <[email protected]>
1 parent 809af7e commit 727aec8

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

resources/seccomp/x86_64-unknown-linux-musl.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,6 +1266,42 @@
12661266
}
12671267
]
12681268
},
1269+
{
1270+
"syscall": "ioctl",
1271+
"args": [
1272+
{
1273+
"index": 1,
1274+
"type": "dword",
1275+
"op": "eq",
1276+
"val": 1074310762,
1277+
"comment": "KVM_SET_GSI_ROUTING. Used to enable a PCI device. TODO: understand if this should be done from vcpu or vmm thread."
1278+
}
1279+
]
1280+
},
1281+
{
1282+
"syscall": "ioctl",
1283+
"args": [
1284+
{
1285+
"index": 1,
1286+
"type": "dword",
1287+
"op": "eq",
1288+
"val": 1075883638,
1289+
"comment": "KVM_IRQFD. Used to enable a PCI device. TODO: understand if this should be done from vcpu or vmm thread."
1290+
}
1291+
]
1292+
},
1293+
{
1294+
"syscall": "ioctl",
1295+
"args": [
1296+
{
1297+
"index": 1,
1298+
"type": "dword",
1299+
"op": "eq",
1300+
"val": 1077980793,
1301+
"comment": "KVM_IOEVENTFD. Used by PCI Bar relocation. TODO: understand if this should be done from vcpu or vmm thread."
1302+
}
1303+
]
1304+
},
12691305
{
12701306
"syscall": "sched_yield",
12711307
"comment": "Used by the rust standard library in std::sync::mpmc. Firecracker uses mpsc channels from this module for inter-thread communication"

0 commit comments

Comments
 (0)