Home
last modified time | relevance | path

Searched refs:klapic (Results 1 – 2 of 2) sorted by relevance

/external/crosvm/x86_64/src/
Dinterrupts.rs42 fn get_klapic_reg(klapic: &kvm_lapic_state, reg_offset: usize) -> u32 { in get_klapic_reg()
46 mem::transmute::<&[i8], &[u8]>(&klapic.regs[reg_offset..]) in get_klapic_reg()
53 fn set_klapic_reg(klapic: &mut kvm_lapic_state, reg_offset: usize, value: u32) { in set_klapic_reg()
57 mem::transmute::<&mut [i8], &mut [u8]>(&mut klapic.regs[reg_offset..]) in set_klapic_reg()
73 let mut klapic = vcpu.get_lapic().map_err(Error::GetLapic)?; in set_lint() localVariable
75 let lvt_lint0 = get_klapic_reg(&klapic, APIC_LVT0); in set_lint()
77 &mut klapic, in set_lint()
81 let lvt_lint1 = get_klapic_reg(&klapic, APIC_LVT1); in set_lint()
83 &mut klapic, in set_lint()
88 vcpu.set_lapic(&klapic).map_err(Error::SetLapic) in set_lint()
/external/crosvm/kvm/src/
Dlib.rs1497 let mut klapic: kvm_lapic_state = Default::default(); in get_lapic() localVariable
1502 ioctl_with_mut_ref(self, KVM_GET_LAPIC(), &mut klapic) in get_lapic()
1507 Ok(klapic) in get_lapic()
1514 pub fn set_lapic(&self, klapic: &kvm_lapic_state) -> Result<()> { in set_lapic()
1517 ioctl_with_ref(self, KVM_SET_LAPIC(), klapic) in set_lapic()