Lines Matching refs:cpufd
156 static void setup_syscall_msrs(int cpufd, uint16 sel_cs, uint16 sel_cs_cpl3) in setup_syscall_msrs() argument
173 ioctl(cpufd, KVM_SET_MSRS, msrs); in setup_syscall_msrs()
275 const int cpufd = a1; in syz_kvm_setup_cpu() local
318 if (ioctl(cpufd, KVM_GET_SREGS, &sregs)) in syz_kvm_setup_cpu()
490 ioctl(cpufd, KVM_SET_CPUID2, cpuid); in syz_kvm_setup_cpu()
511 ioctl(cpufd, KVM_SMI, 0); in syz_kvm_setup_cpu()
518 setup_syscall_msrs(cpufd, SEL_CS32, SEL_CS32_CPL3); in syz_kvm_setup_cpu()
555 setup_syscall_msrs(cpufd, SEL_CS32, SEL_CS32_CPL3); in syz_kvm_setup_cpu()
565 ioctl(cpufd, KVM_SMI, 0); in syz_kvm_setup_cpu()
590 setup_syscall_msrs(cpufd, SEL_CS64, SEL_CS64_CPL3); in syz_kvm_setup_cpu()
807 if (ioctl(cpufd, KVM_SET_SREGS, &sregs)) in syz_kvm_setup_cpu()
809 if (ioctl(cpufd, KVM_SET_REGS, ®s)) in syz_kvm_setup_cpu()