Home
last modified time | relevance | path

Searched refs:xcrs (Results 1 – 5 of 5) sorted by relevance

/external/crosvm/kvm/src/
Dlib.rs1419 pub fn set_xcrs(&self, xcrs: &kvm_xcrs) -> Result<()> { in set_xcrs()
1422 ioctl_with_ref(self, KVM_SET_XCRS(), xcrs) in set_xcrs()
2100 fn xcrs() { in xcrs() function
2109 let mut xcrs = vcpu.get_xcrs().unwrap(); in xcrs() localVariable
2110 xcrs.xcrs[0].value = 1; in xcrs()
2111 vcpu.set_xcrs(&xcrs).unwrap(); in xcrs()
2113 assert_eq!(xcrs.xcrs[0].value, xcrs2.xcrs[0].value); in xcrs()
/external/crosvm/crosvm_plugin/src/
Dlib.rs1553 xcrs: *mut kvm_xcrs, in crosvm_vcpu_get_xcrs()
1557 let xcrs = from_raw_parts_mut(xcrs as *mut u8, size_of::<kvm_xcrs>()); in crosvm_vcpu_get_xcrs() localVariable
1558 let ret = this.get_state(VcpuRequest_StateSet::XCREGS, xcrs); in crosvm_vcpu_get_xcrs()
1565 xcrs: *const kvm_xcrs, in crosvm_vcpu_set_xcrs()
1569 let xcrs = from_raw_parts(xcrs as *mut u8, size_of::<kvm_xcrs>()); in crosvm_vcpu_set_xcrs() localVariable
1570 let ret = this.set_state(VcpuRequest_StateSet::XCREGS, xcrs); in crosvm_vcpu_set_xcrs()
/external/linux-kselftest/tools/testing/selftests/kvm/lib/x86_64/
Dprocessor.c1016 struct kvm_xcrs xcrs; member
1113 r = ioctl(vcpu->fd, KVM_GET_XCRS, &state->xcrs); in vcpu_save_state()
1158 r = ioctl(vcpu->fd, KVM_SET_XCRS, &state->xcrs); in vcpu_load_state()
/external/kernel-headers/original/uapi/asm-x86/asm/
Dkvm.h356 struct kvm_xcr xcrs[KVM_MAX_XCRS]; member
/external/crosvm/kvm_sys/src/x86/
Dbindings.rs3365 pub xcrs: [kvm_xcr; 16usize], field
3401 unsafe { &(*(::std::ptr::null::<kvm_xcrs>())).xcrs as *const _ as usize }, in bindgen_test_layout_kvm_xcrs()
3407 stringify!(xcrs) in bindgen_test_layout_kvm_xcrs()