Lines Matching refs:rrc

66 int kvm_s390_pv_destroy_cpu(struct kvm_vcpu *vcpu, u16 *rc, u16 *rrc)
73 cc = uv_cmd_nodata(kvm_s390_pv_cpu_get_handle(vcpu), UVC_CMD_DESTROY_SEC_CPU, rc, rrc);
75 KVM_UV_EVENT(vcpu->kvm, 3, "PROTVIRT DESTROY VCPU %d: rc %x rrc %x",
76 vcpu->vcpu_id, *rc, *rrc);
77 WARN_ONCE(cc, "protvirt destroy cpu failed rc %x rrc %x", *rc, *rrc);
100 int kvm_s390_pv_create_cpu(struct kvm_vcpu *vcpu, u16 *rc, u16 *rrc)
134 *rrc = uvcb.header.rrc;
136 "PROTVIRT CREATE VCPU: cpu %d handle %llx rc %x rrc %x",
138 uvcb.header.rrc);
206 * @rrc: the RRC code of the Destroy Secure Configuration UVC
216 u16 *rc, u16 *rrc)
223 cc = uv_cmd_nodata(leftover->handle, UVC_CMD_DESTROY_SEC_CONF, rc, rrc);
224 KVM_UV_EVENT(kvm, 3, "PROTVIRT DESTROY LEFTOVER VM: rc %x rrc %x", *rc, *rrc);
225 WARN_ONCE(cc, "protvirt destroy leftover vm failed rc %x rrc %x", *rc, *rrc);
271 static int kvm_s390_pv_deinit_vm_fast(struct kvm *kvm, u16 *rc, u16 *rrc)
283 if (rrc)
284 *rrc = uvcb.header.rrc;
286 KVM_UV_EVENT(kvm, 3, "PROTVIRT DESTROY VM FAST: rc %x rrc %x",
287 uvcb.header.rc, uvcb.header.rrc);
289 "protvirt destroy vm fast failed handle %llx rc %x rrc %x",
290 kvm_s390_pv_get_handle(kvm), uvcb.header.rc, uvcb.header.rrc);
306 * @rrc: return value for the RRC field of the UVCB
320 int kvm_s390_pv_set_aside(struct kvm *kvm, u16 *rc, u16 *rrc)
342 res = kvm_s390_pv_deinit_vm_fast(kvm, rc, rrc);
363 *rrc = 42;
371 * @rrc: the RRC code of the UVC
386 int kvm_s390_pv_deinit_vm(struct kvm *kvm, u16 *rc, u16 *rrc)
391 UVC_CMD_DESTROY_SEC_CONF, rc, rrc);
400 KVM_UV_EVENT(kvm, 3, "PROTVIRT DESTROY VM: rc %x rrc %x", *rc, *rrc);
401 WARN_ONCE(cc, "protvirt destroy vm failed rc %x rrc %x", *rc, *rrc);
411 * @rrc: the RRC code of the first failing UVC
422 int kvm_s390_pv_deinit_cleanup_all(struct kvm *kvm, u16 *rc, u16 *rrc)
439 cc = kvm_s390_pv_deinit_vm(kvm, rc, rrc);
456 * Only return the first error rc and rrc, so make
462 *rrc = _rrc;
488 * @rrc: return value for the RRC field of the UVCB
499 int kvm_s390_pv_deinit_aside_vm(struct kvm *kvm, u16 *rc, u16 *rrc)
515 if (kvm_s390_pv_dispose_one_leftover(kvm, p, rc, rrc))
530 *rrc = 42;
558 int kvm_s390_pv_init_vm(struct kvm *kvm, u16 *rc, u16 *rrc)
584 *rrc = uvcb.header.rrc;
585 KVM_UV_EVENT(kvm, 3, "PROTVIRT CREATE VM: handle %llx len %llx rc %x rrc %x flags %04x",
586 uvcb.guest_handle, uvcb.guest_stor_len, *rc, *rrc, uvcb.flags.raw);
611 u16 *rrc)
623 *rrc = uvcb.header.rrc;
624 KVM_UV_EVENT(kvm, 3, "PROTVIRT VM SET PARMS: rc %x rrc %x",
625 *rc, *rrc);
630 u64 offset, u16 *rc, u16 *rrc)
643 *rrc = uvcb.header.rrc;
646 KVM_UV_EVENT(kvm, 3, "PROTVIRT VM UNPACK: failed addr %llx with rc %x rrc %x",
647 uvcb.gaddr, *rc, *rrc);
652 unsigned long tweak, u16 *rc, u16 *rrc)
664 ret = unpack_one(kvm, addr, tweak, offset, rc, rrc);
692 KVM_UV_EVENT(vcpu->kvm, 3, "PROTVIRT SET CPU %d STATE %d rc %x rrc %x",
693 vcpu->vcpu_id, state, uvcb.header.rc, uvcb.header.rrc);
699 int kvm_s390_pv_dump_cpu(struct kvm_vcpu *vcpu, void *buff, u16 *rc, u16 *rrc)
711 *rrc = uvcb.header.rrc;
727 * @rrc: Pointer to where the uvcb return reason code is stored
743 * -EINVAL if the UV call fails, rc and rrc will be set in this case
747 u64 *gaddr, u64 buff_user_len, u16 *rc, u16 *rrc)
826 "PROTVIRT DUMP STORAGE STATE: addr %llx ret %d, uvcb rc %x rrc %x",
827 uvcb.gaddr, ret, uvcb.header.rc, uvcb.header.rrc);
829 *rrc = uvcb.header.rrc;
841 * @rrc: Pointer to where the uvcb return reason code is stored
851 * -EINVAL if the UV call fails, rc and rrc will be set in this case
855 u16 *rc, u16 *rrc)
873 *rrc = complete.header.rrc;
874 KVM_UV_EVENT(kvm, 3, "PROTVIRT DUMP COMPLETE: rc %x rrc %x",
875 complete.header.rc, complete.header.rrc);