Searched refs:cpufd (Results 1 – 5 of 5) sorted by relevance
/external/syzkaller/executor/ |
D | test_linux.h | 7 static void dump_cpu_state(int cpufd, char* vm_mem); 30 int cpufd = ioctl(vmfd, KVM_CREATE_VCPU, 0); in test_one() local 31 if (cpufd == -1) { in test_one() 41 PROT_READ | PROT_WRITE, MAP_SHARED, cpufd, 0); in test_one() 56 if (syz_kvm_setup_cpu(vmfd, cpufd, (uintptr_t)vm_mem, (uintptr_t)&kvm_text, 1, flags, 0, 0)) { in test_one() 60 if (ioctl(cpufd, KVM_RUN, 0)) { in test_one() 65 if (ioctl(cpufd, KVM_GET_REGS, ®s)) { in test_one() 67 dump_cpu_state(cpufd, (char*)vm_mem); in test_one() 75 dump_cpu_state(cpufd, (char*)vm_mem); in test_one() 80 dump_cpu_state(cpufd, (char*)vm_mem); in test_one() [all …]
|
D | common_kvm_arm64.h | 23 const int cpufd = a1; in syz_kvm_setup_cpu() local 75 ioctl(cpufd, KVM_ARM_PREFERRED_TARGET, &init); in syz_kvm_setup_cpu() 77 ioctl(cpufd, KVM_ARM_VCPU_INIT, &init); in syz_kvm_setup_cpu()
|
D | common_kvm_amd64.h | 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() [all …]
|
/external/syzkaller/pkg/csource/ |
D | generated.go | 1668 static void setup_syscall_msrs(int cpufd, uint16 sel_cs, uint16 sel_cs_cpl3) 1685 ioctl(cpufd, KVM_SET_MSRS, msrs); 1779 const int cpufd = a1; 1821 if (ioctl(cpufd, KVM_GET_SREGS, &sregs)) 1993 ioctl(cpufd, KVM_SET_CPUID2, cpuid); 2014 ioctl(cpufd, KVM_SMI, 0); 2021 setup_syscall_msrs(cpufd, SEL_CS32, SEL_CS32_CPL3); 2057 setup_syscall_msrs(cpufd, SEL_CS32, SEL_CS32_CPL3); 2067 ioctl(cpufd, KVM_SMI, 0); 2091 setup_syscall_msrs(cpufd, SEL_CS64, SEL_CS64_CPL3); [all …]
|
/external/syzkaller/sys/linux/ |
D | kvm.txt | 155 syz_kvm_setup_cpu$x86(fd fd_kvmvm, cpufd fd_kvmcpu, usermem vma[24], text ptr[in, array[kvm_text_x8… 156 syz_kvm_setup_cpu$arm64(fd fd_kvmvm, cpufd fd_kvmcpu, usermem vma[24], text ptr[in, array[kvm_text_…
|