Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Velickovic <[email protected]>
  • Loading branch information
Ivan-Velickovic committed Aug 21, 2024
1 parent e51b809 commit 3dac982
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/virtio/blk_driver_vmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void init(void)
}

/* Initialise the virtual GIC driver */
bool success = virq_controller_init(GUEST_BOOT_VCPU_ID);
bool success = virq_controller_init();
if (!success) {
LOG_VMM_ERR("Failed to initialise emulated interrupt controller\n");
return;
Expand Down Expand Up @@ -134,7 +134,7 @@ void init(void)
#endif

/* Finally start the guest */
guest_start(GUEST_BOOT_VCPU_ID, kernel_pc, GUEST_DTB_VADDR, GUEST_INIT_RAM_DISK_VADDR);
guest_start(kernel_pc, GUEST_DTB_VADDR, GUEST_INIT_RAM_DISK_VADDR);
}

void notified(microkit_channel ch)
Expand Down
4 changes: 2 additions & 2 deletions examples/virtio/client_vmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void init(void)
}

/* Initialise the virtual GIC driver */
bool success = virq_controller_init(GUEST_BOOT_VCPU_ID);
bool success = virq_controller_init();
if (!success) {
LOG_VMM_ERR("Failed to initialise emulated interrupt controller\n");
return;
Expand Down Expand Up @@ -140,7 +140,7 @@ void init(void)
assert(success);

/* Finally start the guest */
guest_start(GUEST_BOOT_VCPU_ID, kernel_pc, GUEST_DTB_VADDR, GUEST_INIT_RAM_DISK_VADDR);
guest_start(kernel_pc, GUEST_DTB_VADDR, GUEST_INIT_RAM_DISK_VADDR);
}

void notified(microkit_channel ch)
Expand Down
4 changes: 2 additions & 2 deletions examples/zig/src/vmm.zig
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export fn init() callconv(.C) void {
return;
}
// Initialise the virtual interrupt controller
if (!c.virq_controller_init(GUEST_BOOT_VCPU_ID)) {
if (!c.virq_controller_init()) {
log.err("Failed to initialise virtual interrupt controller\n", .{});
return;
}
Expand All @@ -109,7 +109,7 @@ export fn init() callconv(.C) void {
// handle, we ack it here.
microkit.microkit_irq_ack(SERIAL_IRQ_CH);
// Finally we can start the guest
if (!c.guest_start(GUEST_BOOT_VCPU_ID, kernel_pc, GUEST_DTB_VADDR, GUEST_INIT_RAM_DISK_VADDR)) {
if (!c.guest_start(kernel_pc, GUEST_DTB_VADDR, GUEST_INIT_RAM_DISK_VADDR)) {
log.err("Failed to start guest\n", .{});
return;
}
Expand Down

0 comments on commit 3dac982

Please sign in to comment.