Home
last modified time | relevance | path

Searched refs:clock_data (Results 1 – 4 of 4) sorted by relevance

/external/crosvm/tests/
Dplugin_vm_state.c119 struct kvm_clock_data clock_data = { .clock = 0, .flags = -1U, }; in main() local
120 ret = crosvm_get_clock(crosvm, &clock_data); in main()
126 if (clock_data.clock == 0 || clock_data.flags != 0) { in main()
128 clock_data.clock, clock_data.flags); in main()
131 clock_data.clock += 10000000; in main()
133 ret = crosvm_set_clock(crosvm, &clock_data); in main()
139 clock_data.flags = -1U; in main()
140 ret = crosvm_set_clock(crosvm, &clock_data); in main()
/external/crosvm/hypervisor/src/kvm/
Dx86_64.rs129 let mut clock_data: kvm_clock_data = Default::default(); in get_pvclock_arch() localVariable
130 let ret = unsafe { ioctl_with_mut_ref(self, KVM_GET_CLOCK(), &mut clock_data) }; in get_pvclock_arch()
132 Ok(ClockState::from(clock_data)) in get_pvclock_arch()
140 let clock_data = kvm_clock_data::from(*state); in set_pvclock_arch() localVariable
143 let ret = unsafe { ioctl_with_ref(self, KVM_SET_CLOCK(), &clock_data) }; in set_pvclock_arch()
702 fn from(clock_data: kvm_clock_data) -> Self { in from()
704 clock: clock_data.clock, in from()
705 flags: clock_data.flags, in from()
1408 let mut clock_data = vm.get_pvclock().unwrap(); in clock_handling() localVariable
1409 clock_data.clock += 1000; in clock_handling()
[all …]
/external/crosvm/kvm/src/
Dlib.rs456 let mut clock_data = unsafe { std::mem::zeroed() }; in get_clock() localVariable
457 let ret = unsafe { ioctl_with_mut_ref(self, KVM_GET_CLOCK(), &mut clock_data) }; in get_clock()
459 Ok(clock_data) in get_clock()
469 pub fn set_clock(&self, clock_data: &kvm_clock_data) -> Result<()> { in set_clock()
472 let ret = unsafe { ioctl_with_ref(self, KVM_SET_CLOCK(), clock_data) }; in set_clock()
1844 let mut clock_data = vm.get_clock().unwrap(); in clock_handling() localVariable
1845 clock_data.clock += 1000; in clock_handling()
1846 vm.set_clock(&clock_data).unwrap(); in clock_handling()
/external/crosvm/crosvm_plugin/src/
Dlib.rs1675 clock_data: *mut kvm_clock_data, in crosvm_get_clock()
1679 let state = from_raw_parts_mut(clock_data as *mut u8, size_of::<kvm_clock_data>()); in crosvm_get_clock()
1687 clock_data: *const kvm_clock_data, in crosvm_set_clock()
1691 let state = from_raw_parts(clock_data as *mut u8, size_of::<kvm_clock_data>()); in crosvm_set_clock()