Lines Matching refs:MainRequest_StateSet
51 fn get_vm_state(vm: &Vm, state_set: MainRequest_StateSet) -> SysResult<Vec<u8>> { in get_vm_state()
53 MainRequest_StateSet::PIC0 => VmPicState(vm.get_pic_state(PicId::Primary)?) in get_vm_state()
56 MainRequest_StateSet::PIC1 => VmPicState(vm.get_pic_state(PicId::Secondary)?) in get_vm_state()
59 MainRequest_StateSet::IOAPIC => VmIoapicState(vm.get_ioapic_state()?).as_slice().to_vec(), in get_vm_state()
60 MainRequest_StateSet::PIT => VmPitState(vm.get_pit_state()?).as_slice().to_vec(), in get_vm_state()
61 MainRequest_StateSet::CLOCK => VmClockState(vm.get_clock()?).as_slice().to_vec(), in get_vm_state()
65 fn set_vm_state(vm: &Vm, state_set: MainRequest_StateSet, state: &[u8]) -> SysResult<()> { in set_vm_state() argument
67 MainRequest_StateSet::PIC0 => vm.set_pic_state( in set_vm_state()
73 MainRequest_StateSet::PIC1 => vm.set_pic_state( in set_vm_state()
79 MainRequest_StateSet::IOAPIC => vm.set_ioapic_state( in set_vm_state()
84 MainRequest_StateSet::PIT => vm.set_pit_state( in set_vm_state()
89 MainRequest_StateSet::CLOCK => vm.set_clock( in set_vm_state()