Skip to content

Commit 6e202c9

Browse files
committed
update AxVMHal, add vm_id parameter to vcpu-related functions
1 parent 7f0236e commit 6e202c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hal.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ pub trait AxVMHal: Sized {
3232
/// Get the Physical CPU ID where the specified VCPU of the current VM resides.
3333
///
3434
/// Returns an error if the VCPU is not found.
35-
fn vcpu_resides_on(vcpu_id: usize) -> AxResult<usize>;
35+
fn vcpu_resides_on(vm_id: usize, vcpu_id: usize) -> AxResult<usize>;
3636

3737
/// Inject an IRQ to the specified VCPU.
3838
///
3939
/// This method should find the physical CPU where the specified VCPU resides and inject the IRQ
4040
/// to it on that physical CPU with [`axvcpu::AxVCpu::inject_interrupt`].
4141
///
4242
/// Returns an error if the VCPU is not found.
43-
fn inject_irq_to_vcpu(vcpu_id: usize, irq: usize) -> AxResult;
43+
fn inject_irq_to_vcpu(vm_id: usize, vcpu_id: usize, irq: usize) -> AxResult;
4444
}

0 commit comments

Comments
 (0)