Home
last modified time | relevance | path

Searched refs:pvinfo (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/arch/powerpc/kvm/
H A Dpowerpc.c2127 static int kvm_vm_ioctl_get_pvinfo(struct kvm_ppc_pvinfo *pvinfo) in kvm_vm_ioctl_get_pvinfo() argument
2132 pvinfo->hcall[0] = cpu_to_be32(inst_sc1); in kvm_vm_ioctl_get_pvinfo()
2133 pvinfo->hcall[1] = cpu_to_be32(inst_nop); in kvm_vm_ioctl_get_pvinfo()
2134 pvinfo->hcall[2] = cpu_to_be32(inst_nop); in kvm_vm_ioctl_get_pvinfo()
2135 pvinfo->hcall[3] = cpu_to_be32(inst_nop); in kvm_vm_ioctl_get_pvinfo()
2151 pvinfo->hcall[0] = cpu_to_be32(inst_lis | ((KVM_SC_MAGIC_R0 >> 16) & inst_imm_mask)); in kvm_vm_ioctl_get_pvinfo()
2152 pvinfo->hcall[1] = cpu_to_be32(inst_ori | (KVM_SC_MAGIC_R0 & inst_imm_mask)); in kvm_vm_ioctl_get_pvinfo()
2153 pvinfo->hcall[2] = cpu_to_be32(inst_sc); in kvm_vm_ioctl_get_pvinfo()
2154 pvinfo->hcall[3] = cpu_to_be32(inst_nop); in kvm_vm_ioctl_get_pvinfo()
2157 pvinfo->flags = KVM_PPC_PVINFO_FLAGS_EV_IDLE; in kvm_vm_ioctl_get_pvinfo()
[all …]
/openbmc/qemu/target/ppc/
H A Dkvm.c1975 static int kvmppc_get_pvinfo(CPUPPCState *env, struct kvm_ppc_pvinfo *pvinfo) in kvmppc_get_pvinfo() argument
1980 !kvm_vm_ioctl(cs->kvm_state, KVM_PPC_GET_PVINFO, pvinfo)) { in kvmppc_get_pvinfo()
1989 struct kvm_ppc_pvinfo pvinfo; in kvmppc_get_hasidle() local
1991 if (!kvmppc_get_pvinfo(env, &pvinfo) && in kvmppc_get_hasidle()
1992 (pvinfo.flags & KVM_PPC_PVINFO_FLAGS_EV_IDLE)) { in kvmppc_get_hasidle()
2002 struct kvm_ppc_pvinfo pvinfo; in kvmppc_get_hypercall() local
2004 if (!kvmppc_get_pvinfo(env, &pvinfo)) { in kvmppc_get_hypercall()
2005 memcpy(buf, pvinfo.hcall, buf_len); in kvmppc_get_hypercall()