Skip to content

Commit 2594125

Browse files
committed
examples: add krun_split_irqchip
Signed-off-by: Jake Correnti <[email protected]>
1 parent 8c9a4a1 commit 2594125

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/chroot_vm.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,12 @@ int main(int argc, char *const argv[])
301301
return -1;
302302
}
303303

304+
if (err = krun_split_irqchip(ctx_id, false)) {
305+
errno = -err;
306+
perror("Error setting split IRQCHIP property");
307+
return -1;
308+
}
309+
304310
// Start and enter the microVM. Unless there is some error while creating the microVM
305311
// this function never returns.
306312
if (err = krun_start_enter(ctx_id)) {

0 commit comments

Comments
 (0)