Lines Matching refs:kvm_run
4866 struct kvm_run *kvm_run = vcpu->run; in sync_regs_fmt2() local
4870 riccb = (struct runtime_instr_cb *) &kvm_run->s.regs.riccb; in sync_regs_fmt2()
4871 gscb = (struct gs_cb *) &kvm_run->s.regs.gscb; in sync_regs_fmt2()
4872 vcpu->arch.sie_block->gpsw.mask = kvm_run->psw_mask; in sync_regs_fmt2()
4873 vcpu->arch.sie_block->gpsw.addr = kvm_run->psw_addr; in sync_regs_fmt2()
4874 if (kvm_run->kvm_dirty_regs & KVM_SYNC_ARCH0) { in sync_regs_fmt2()
4875 vcpu->arch.sie_block->todpr = kvm_run->s.regs.todpr; in sync_regs_fmt2()
4876 vcpu->arch.sie_block->pp = kvm_run->s.regs.pp; in sync_regs_fmt2()
4877 vcpu->arch.sie_block->gbea = kvm_run->s.regs.gbea; in sync_regs_fmt2()
4879 if (kvm_run->kvm_dirty_regs & KVM_SYNC_PFAULT) { in sync_regs_fmt2()
4880 vcpu->arch.pfault_token = kvm_run->s.regs.pft; in sync_regs_fmt2()
4881 vcpu->arch.pfault_select = kvm_run->s.regs.pfs; in sync_regs_fmt2()
4882 vcpu->arch.pfault_compare = kvm_run->s.regs.pfc; in sync_regs_fmt2()
4886 if (kvm_run->kvm_dirty_regs & KVM_SYNC_DIAG318) { in sync_regs_fmt2()
4887 vcpu->arch.diag318_info.val = kvm_run->s.regs.diag318; in sync_regs_fmt2()
4895 if ((kvm_run->kvm_dirty_regs & KVM_SYNC_RICCB) && in sync_regs_fmt2()
4906 if ((kvm_run->kvm_dirty_regs & KVM_SYNC_GSCB) && in sync_regs_fmt2()
4915 if ((kvm_run->kvm_dirty_regs & KVM_SYNC_BPBC) && in sync_regs_fmt2()
4918 vcpu->arch.sie_block->fpf |= kvm_run->s.regs.bpbc ? FPF_BPBC : 0; in sync_regs_fmt2()
4939 struct kvm_run *kvm_run = vcpu->run; in sync_regs() local
4941 if (kvm_run->kvm_dirty_regs & KVM_SYNC_PREFIX) in sync_regs()
4942 kvm_s390_set_prefix(vcpu, kvm_run->s.regs.prefix); in sync_regs()
4943 if (kvm_run->kvm_dirty_regs & KVM_SYNC_CRS) { in sync_regs()
4944 memcpy(&vcpu->arch.sie_block->gcr, &kvm_run->s.regs.crs, 128); in sync_regs()
4948 if (kvm_run->kvm_dirty_regs & KVM_SYNC_ARCH0) { in sync_regs()
4949 kvm_s390_set_cpu_timer(vcpu, kvm_run->s.regs.cputm); in sync_regs()
4950 vcpu->arch.sie_block->ckc = kvm_run->s.regs.ckc; in sync_regs()
4981 vcpu->arch.sie_block->gpsw.mask |= kvm_run->psw_mask & in sync_regs()
4985 kvm_run->kvm_dirty_regs = 0; in sync_regs()
4990 struct kvm_run *kvm_run = vcpu->run; in store_regs_fmt2() local
4992 kvm_run->s.regs.todpr = vcpu->arch.sie_block->todpr; in store_regs_fmt2()
4993 kvm_run->s.regs.pp = vcpu->arch.sie_block->pp; in store_regs_fmt2()
4994 kvm_run->s.regs.gbea = vcpu->arch.sie_block->gbea; in store_regs_fmt2()
4995 kvm_run->s.regs.bpbc = (vcpu->arch.sie_block->fpf & FPF_BPBC) == FPF_BPBC; in store_regs_fmt2()
4996 kvm_run->s.regs.diag318 = vcpu->arch.diag318_info.val; in store_regs_fmt2()
5014 struct kvm_run *kvm_run = vcpu->run; in store_regs() local
5016 kvm_run->psw_mask = vcpu->arch.sie_block->gpsw.mask; in store_regs()
5017 kvm_run->psw_addr = vcpu->arch.sie_block->gpsw.addr; in store_regs()
5018 kvm_run->s.regs.prefix = kvm_s390_get_prefix(vcpu); in store_regs()
5019 memcpy(&kvm_run->s.regs.crs, &vcpu->arch.sie_block->gcr, 128); in store_regs()
5020 kvm_run->s.regs.cputm = kvm_s390_get_cpu_timer(vcpu); in store_regs()
5021 kvm_run->s.regs.ckc = vcpu->arch.sie_block->ckc; in store_regs()
5022 kvm_run->s.regs.pft = vcpu->arch.pfault_token; in store_regs()
5023 kvm_run->s.regs.pfs = vcpu->arch.pfault_select; in store_regs()
5024 kvm_run->s.regs.pfc = vcpu->arch.pfault_compare; in store_regs()
5039 struct kvm_run *kvm_run = vcpu->run; in kvm_arch_vcpu_ioctl_run() local
5051 if (kvm_run->immediate_exit) in kvm_arch_vcpu_ioctl_run()
5054 if (kvm_run->kvm_valid_regs & ~KVM_SYNC_S390_VALID_FIELDS || in kvm_arch_vcpu_ioctl_run()
5055 kvm_run->kvm_dirty_regs & ~KVM_SYNC_S390_VALID_FIELDS) in kvm_arch_vcpu_ioctl_run()
5088 kvm_run->exit_reason = KVM_EXIT_INTR; in kvm_arch_vcpu_ioctl_run()