Home
last modified time | relevance | path

Searched refs:kvm_vcpu_ioctl (Results 1 – 17 of 17) sorted by relevance

/openbmc/qemu/target/mips/
H A Dkvm.c146 r = kvm_vcpu_ioctl(cs, KVM_INTERRUPT, &intr); in kvm_arch_pre_run()
207 kvm_vcpu_ioctl(cs, KVM_INTERRUPT, &intr); in kvm_mips_set_interrupt()
230 kvm_vcpu_ioctl(cs, KVM_INTERRUPT, &intr); in kvm_mips_set_ipi_interrupt()
286 return kvm_vcpu_ioctl(cs, KVM_SET_ONE_REG, &cp0reg); in kvm_mips_put_one_reg()
297 return kvm_vcpu_ioctl(cs, KVM_SET_ONE_REG, &cp0reg); in kvm_mips_put_one_ureg()
309 return kvm_vcpu_ioctl(cs, KVM_SET_ONE_REG, &cp0reg); in kvm_mips_put_one_ulreg()
320 return kvm_vcpu_ioctl(cs, KVM_SET_ONE_REG, &cp0reg); in kvm_mips_put_one_reg64()
331 return kvm_vcpu_ioctl(cs, KVM_SET_ONE_REG, &cp0reg); in kvm_mips_put_one_ureg64()
366 ret = kvm_vcpu_ioctl(cs, KVM_GET_ONE_REG, &cp0reg); in kvm_mips_get_one_ulreg()
1191 ret = kvm_vcpu_ioctl(cs, KVM_SET_REGS, &regs); in kvm_arch_put_registers()
[all …]
/openbmc/qemu/target/ppc/
H A Dkvm.c204 ret = kvm_vcpu_ioctl(cs, KVM_GET_SREGS, &sregs); in kvm_arch_sync_sregs()
210 return kvm_vcpu_ioctl(cs, KVM_SET_SREGS, &sregs); in kvm_arch_sync_sregs()
570 ret = kvm_vcpu_ioctl(cs, KVM_GET_ONE_REG, &reg); in kvm_get_one_spr()
617 ret = kvm_vcpu_ioctl(cs, KVM_SET_ONE_REG, &reg); in kvm_put_one_spr()
772 ret = kvm_vcpu_ioctl(cs, KVM_GET_ONE_REG, &reg); in kvm_get_vpa()
782 ret = kvm_vcpu_ioctl(cs, KVM_GET_ONE_REG, &reg); in kvm_get_vpa()
792 ret = kvm_vcpu_ioctl(cs, KVM_GET_ONE_REG, &reg); in kvm_get_vpa()
911 ret = kvm_vcpu_ioctl(cs, KVM_GET_REGS, &regs); in kvm_arch_put_registers()
942 ret = kvm_vcpu_ioctl(cs, KVM_SET_REGS, &regs); in kvm_arch_put_registers()
1215 ret = kvm_vcpu_ioctl(cs, KVM_GET_REGS, &regs); in kvm_arch_get_registers()
[all …]
/openbmc/qemu/hw/i386/kvm/
H A Dapic.c120 kvm_vcpu_ioctl(CPU(s->cpu), KVM_TPR_ACCESS_REPORTING, &ctl); in kvm_apic_enable_tpr_reporting()
130 ret = kvm_vcpu_ioctl(CPU(s->cpu), KVM_SET_VAPIC_ADDR, &vapid_addr); in kvm_apic_vapic_base_update()
147 ret = kvm_vcpu_ioctl(CPU(s->cpu), KVM_SET_LAPIC, &kapic); in kvm_apic_put()
169 ret = kvm_vcpu_ioctl(cpu, KVM_NMI); in do_inject_external_nmi()
H A Dclock.c157 int ret = kvm_vcpu_ioctl(cpu, KVM_KVMCLOCK_CTRL, 0); in do_kvmclock_ctrl()
/openbmc/qemu/target/loongarch/kvm/
H A Dkvm.c44 ret = kvm_vcpu_ioctl(cs, KVM_GET_REGS, &regs); in kvm_loongarch_get_regs_core()
72 ret = kvm_vcpu_ioctl(cs, KVM_SET_REGS, &regs); in kvm_loongarch_put_regs_core()
431 ret = kvm_vcpu_ioctl(cs, KVM_GET_FPU, &fpu); in kvm_loongarch_get_regs_fp()
471 ret = kvm_vcpu_ioctl(cs, KVM_SET_FPU, &fpu); in kvm_loongarch_put_regs_fp()
491 ret = kvm_vcpu_ioctl(cs, KVM_GET_MP_STATE, &mp_state); in kvm_loongarch_get_mpstate()
510 ret = kvm_vcpu_ioctl(cs, KVM_SET_MP_STATE, &mp_state); in kvm_loongarch_put_mpstate()
546 ret = kvm_vcpu_ioctl(cs, KVM_HAS_DEVICE_ATTR, &attr); in kvm_check_cpucfg2()
549 kvm_vcpu_ioctl(cs, KVM_GET_DEVICE_ATTR, &attr); in kvm_check_cpucfg2()
856 return kvm_vcpu_ioctl(cs, KVM_INTERRUPT, &intr); in kvm_loongarch_set_interrupt()
/openbmc/qemu/target/arm/
H A Dkvm.c81 return kvm_vcpu_ioctl(CPU(cpu), KVM_ARM_VCPU_INIT, &init); in kvm_arm_vcpu_init()
98 return kvm_vcpu_ioctl(CPU(cpu), KVM_ARM_VCPU_FINALIZE, &feature); in kvm_arm_vcpu_finalize()
808 ret = kvm_vcpu_ioctl(cs, KVM_GET_REG_LIST, &rl); in kvm_arm_init_cpreg_list()
814 ret = kvm_vcpu_ioctl(cs, KVM_GET_REG_LIST, rlp); in kvm_arm_init_cpreg_list()
1016 return kvm_vcpu_ioctl(CPU(cpu), KVM_SET_MP_STATE, &mp_state); in kvm_arm_sync_mpstate_to_kvm()
1028 int ret = kvm_vcpu_ioctl(CPU(cpu), KVM_GET_MP_STATE, &mp_state); in kvm_arm_sync_mpstate_to_qemu()
1113 ret = kvm_vcpu_ioctl(CPU(cpu), KVM_SET_VCPU_EVENTS, &events); in kvm_put_vcpu_events()
1140 ret = kvm_vcpu_ioctl(CPU(cpu), KVM_GET_VCPU_EVENTS, &events); in kvm_get_vcpu_events()
1333 if (!kvm_vcpu_ioctl(CPU(cpu), KVM_SET_VCPU_EVENTS, &events)) { in kvm_arm_handle_dabt_nisv()
1691 err = kvm_vcpu_ioctl(CPU(cpu), KVM_HAS_DEVICE_ATTR, attr); in kvm_arm_set_device_attr()
[all …]
/openbmc/qemu/target/i386/kvm/
H A Dkvm.c875 kvm_vcpu_ioctl(cs, KVM_SET_TSC_KHZ, env->tsc_khz) : in kvm_arch_set_tsc_khz()
883 kvm_vcpu_ioctl(cs, KVM_GET_TSC_KHZ) : in kvm_arch_set_tsc_khz()
2066 kvm_vcpu_ioctl(cs, KVM_GET_TSC_KHZ) : in kvm_arch_init_vcpu()
2295 r = kvm_vcpu_ioctl(cs, KVM_SET_CPUID2, &cpuid_data); in kvm_arch_init_vcpu()
3348 return kvm_vcpu_ioctl(CPU(cpu), KVM_SET_XSAVE, xsave); in kvm_put_xsave()
3364 return kvm_vcpu_ioctl(CPU(cpu), KVM_SET_XCRS, &xcrs); in kvm_put_xcrs()
4108 ret = kvm_vcpu_ioctl(CPU(cpu), type, xsave); in kvm_get_xsave()
4127 ret = kvm_vcpu_ioctl(CPU(cpu), KVM_GET_XCRS, &xcrs); in kvm_get_xcrs()
4148 ret = kvm_vcpu_ioctl(CPU(cpu), KVM_GET_SREGS, &sregs); in kvm_get_sregs()
5286 ret = kvm_vcpu_ioctl(cpu, KVM_NMI); in kvm_arch_pre_run()
[all …]
H A Dxen-emu.c66 if (kvm_vcpu_ioctl(cs, KVM_TRANSLATE, &tr) || !tr.valid || in kvm_gva_to_gpa()
207 err = kvm_vcpu_ioctl(cs, KVM_XEN_VCPU_SET_ATTR, &va); in kvm_xen_init_vcpu()
293 return kvm_vcpu_ioctl(cs, KVM_XEN_VCPU_SET_ATTR, &xhsi); in kvm_xen_set_vcpu_attr()
306 return kvm_vcpu_ioctl(cs, KVM_XEN_VCPU_SET_ATTR, &xva); in kvm_xen_set_vcpu_callback_vector()
487 return kvm_vcpu_ioctl(cs, KVM_XEN_VCPU_SET_ATTR, &va); in kvm_xen_set_vcpu_timer()
1923 ret = kvm_vcpu_ioctl(cs, KVM_XEN_VCPU_GET_ATTR, &va); in kvm_get_xen_state()
/openbmc/qemu/include/sysemu/
H A Dkvm.h242 int kvm_vcpu_ioctl(CPUState *cpu, int type, ...);
463 kvm_vcpu_ioctl(cpu, KVM_ENABLE_CAP, &cap); \
/openbmc/qemu/target/s390x/kvm/
H A Dkvm.c440 if (kvm_vcpu_ioctl(cs, type)) { in kvm_s390_reset_vcpu()
511 r = kvm_vcpu_ioctl(cs, KVM_SET_FPU, &fpu); in kvm_arch_put_registers()
633 r = kvm_vcpu_ioctl(cs, KVM_GET_FPU, &fpu); in kvm_arch_get_registers()
813 ret = kvm_vcpu_ioctl(CPU(cpu), KVM_S390_MEM_OP, &mem_op); in kvm_s390_mem_op()
836 ret = kvm_vcpu_ioctl(CPU(cpu), KVM_S390_MEM_OP, &mem_op); in kvm_s390_mem_op_pv()
1090 r = kvm_vcpu_ioctl(cs, KVM_S390_INTERRUPT, &kvmint); in inject_vcpu_irq_legacy()
1103 r = kvm_vcpu_ioctl(cs, KVM_S390_IRQ, irq); in kvm_s390_vcpu_interrupt()
2044 ret = kvm_vcpu_ioctl(CPU(cpu), KVM_SET_MP_STATE, &mp_state); in kvm_s390_set_cpu_state()
2067 bytes = kvm_vcpu_ioctl(cs, KVM_S390_GET_IRQ_STATE, &irq_state); in kvm_s390_vcpu_interrupt_pre_save()
2094 r = kvm_vcpu_ioctl(cs, KVM_S390_SET_IRQ_STATE, &irq_state); in kvm_s390_vcpu_interrupt_post_load()
H A Dpv.c259 return kvm_vcpu_ioctl(CPU(cpu), KVM_S390_PV_CPU_COMMAND, &pv); in kvm_s390_dump_cpu()
/openbmc/qemu/accel/kvm/
H A Dtrace-events6 kvm_vcpu_ioctl(int cpu_index, int type, void *arg) "cpu_index %d, type 0x%x, arg %p"
H A Dkvm-all.c580 cpu->kvm_vcpu_stats_fd = kvm_vcpu_ioctl(cpu, KVM_GET_STATS_FD, NULL); in kvm_init_vcpu()
3082 run_ret = kvm_vcpu_ioctl(cpu, KVM_RUN, 0); in kvm_cpu_exec()
3268 int kvm_vcpu_ioctl(CPUState *cpu, int type, ...) in kvm_vcpu_ioctl() function
3416 dbg_data->err = kvm_vcpu_ioctl(cpu, KVM_SET_GUEST_DEBUG, in kvm_invoke_set_guest_debug()
3560 r = kvm_vcpu_ioctl(cpu, KVM_SET_SIGNAL_MASK, sigmask); in kvm_set_signal_mask()
3677 r = kvm_vcpu_ioctl(cs, KVM_SET_ONE_REG, &reg); in kvm_set_one_reg()
3691 r = kvm_vcpu_ioctl(cs, KVM_GET_ONE_REG, &reg); in kvm_get_one_reg()
/openbmc/qemu/hw/mips/
H A Dloongson3_virt.c167 ret = kvm_vcpu_ioctl(first_cpu, KVM_GET_ONE_REG, &freq_reg); in get_cpu_freq_hz()
/openbmc/qemu/target/riscv/kvm/
H A Dkvm-cpu.c1229 int ret = kvm_vcpu_ioctl(CPU(cpu), KVM_SET_MP_STATE, &mp_state); in kvm_riscv_sync_mpstate_to_kvm()
1633 ret = kvm_vcpu_ioctl(CPU(cpu), KVM_INTERRUPT, &virq); in kvm_riscv_set_irq()
/openbmc/linux/virt/kvm/
H A Dkvm_main.c120 static long kvm_vcpu_ioctl(struct file *file, unsigned int ioctl,
3893 .unlocked_ioctl = kvm_vcpu_ioctl,
4116 static long kvm_vcpu_ioctl(struct file *filp, in kvm_vcpu_ioctl() function
4362 r = kvm_vcpu_ioctl(filp, ioctl, arg); in kvm_vcpu_compat_ioctl()
/openbmc/qemu/target/i386/
H A Dsev.c1214 ret = kvm_vcpu_ioctl(cs, KVM_GET_CPUID2, &kvm_cpuid_info); in snp_launch_update_cpuid()