• Home
  • Raw
  • Download

Lines Matching refs:kvm_run

4181 	struct kvm_run *kvm_run = vcpu->run;  in sync_regs_fmt2()  local
4185 riccb = (struct runtime_instr_cb *) &kvm_run->s.regs.riccb; in sync_regs_fmt2()
4186 gscb = (struct gs_cb *) &kvm_run->s.regs.gscb; in sync_regs_fmt2()
4187 vcpu->arch.sie_block->gpsw.mask = kvm_run->psw_mask; in sync_regs_fmt2()
4188 vcpu->arch.sie_block->gpsw.addr = kvm_run->psw_addr; in sync_regs_fmt2()
4189 if (kvm_run->kvm_dirty_regs & KVM_SYNC_ARCH0) { in sync_regs_fmt2()
4190 vcpu->arch.sie_block->todpr = kvm_run->s.regs.todpr; in sync_regs_fmt2()
4191 vcpu->arch.sie_block->pp = kvm_run->s.regs.pp; in sync_regs_fmt2()
4192 vcpu->arch.sie_block->gbea = kvm_run->s.regs.gbea; in sync_regs_fmt2()
4194 if (kvm_run->kvm_dirty_regs & KVM_SYNC_PFAULT) { in sync_regs_fmt2()
4195 vcpu->arch.pfault_token = kvm_run->s.regs.pft; in sync_regs_fmt2()
4196 vcpu->arch.pfault_select = kvm_run->s.regs.pfs; in sync_regs_fmt2()
4197 vcpu->arch.pfault_compare = kvm_run->s.regs.pfc; in sync_regs_fmt2()
4201 if (kvm_run->kvm_dirty_regs & KVM_SYNC_DIAG318) { in sync_regs_fmt2()
4202 vcpu->arch.diag318_info.val = kvm_run->s.regs.diag318; in sync_regs_fmt2()
4209 if ((kvm_run->kvm_dirty_regs & KVM_SYNC_RICCB) && in sync_regs_fmt2()
4220 if ((kvm_run->kvm_dirty_regs & KVM_SYNC_GSCB) && in sync_regs_fmt2()
4229 if ((kvm_run->kvm_dirty_regs & KVM_SYNC_BPBC) && in sync_regs_fmt2()
4232 vcpu->arch.sie_block->fpf |= kvm_run->s.regs.bpbc ? FPF_BPBC : 0; in sync_regs_fmt2()
4253 struct kvm_run *kvm_run = vcpu->run; in sync_regs() local
4255 if (kvm_run->kvm_dirty_regs & KVM_SYNC_PREFIX) in sync_regs()
4256 kvm_s390_set_prefix(vcpu, kvm_run->s.regs.prefix); in sync_regs()
4257 if (kvm_run->kvm_dirty_regs & KVM_SYNC_CRS) { in sync_regs()
4258 memcpy(&vcpu->arch.sie_block->gcr, &kvm_run->s.regs.crs, 128); in sync_regs()
4262 if (kvm_run->kvm_dirty_regs & KVM_SYNC_ARCH0) { in sync_regs()
4263 kvm_s390_set_cpu_timer(vcpu, kvm_run->s.regs.cputm); in sync_regs()
4264 vcpu->arch.sie_block->ckc = kvm_run->s.regs.ckc; in sync_regs()
4295 vcpu->arch.sie_block->gpsw.mask |= kvm_run->psw_mask & in sync_regs()
4299 kvm_run->kvm_dirty_regs = 0; in sync_regs()
4304 struct kvm_run *kvm_run = vcpu->run; in store_regs_fmt2() local
4306 kvm_run->s.regs.todpr = vcpu->arch.sie_block->todpr; in store_regs_fmt2()
4307 kvm_run->s.regs.pp = vcpu->arch.sie_block->pp; in store_regs_fmt2()
4308 kvm_run->s.regs.gbea = vcpu->arch.sie_block->gbea; in store_regs_fmt2()
4309 kvm_run->s.regs.bpbc = (vcpu->arch.sie_block->fpf & FPF_BPBC) == FPF_BPBC; in store_regs_fmt2()
4310 kvm_run->s.regs.diag318 = vcpu->arch.diag318_info.val; in store_regs_fmt2()
4328 struct kvm_run *kvm_run = vcpu->run; in store_regs() local
4330 kvm_run->psw_mask = vcpu->arch.sie_block->gpsw.mask; in store_regs()
4331 kvm_run->psw_addr = vcpu->arch.sie_block->gpsw.addr; in store_regs()
4332 kvm_run->s.regs.prefix = kvm_s390_get_prefix(vcpu); in store_regs()
4333 memcpy(&kvm_run->s.regs.crs, &vcpu->arch.sie_block->gcr, 128); in store_regs()
4334 kvm_run->s.regs.cputm = kvm_s390_get_cpu_timer(vcpu); in store_regs()
4335 kvm_run->s.regs.ckc = vcpu->arch.sie_block->ckc; in store_regs()
4336 kvm_run->s.regs.pft = vcpu->arch.pfault_token; in store_regs()
4337 kvm_run->s.regs.pfs = vcpu->arch.pfault_select; in store_regs()
4338 kvm_run->s.regs.pfc = vcpu->arch.pfault_compare; in store_regs()
4353 struct kvm_run *kvm_run = vcpu->run; in kvm_arch_vcpu_ioctl_run() local
4356 if (kvm_run->immediate_exit) in kvm_arch_vcpu_ioctl_run()
4359 if (kvm_run->kvm_valid_regs & ~KVM_SYNC_S390_VALID_FIELDS || in kvm_arch_vcpu_ioctl_run()
4360 kvm_run->kvm_dirty_regs & ~KVM_SYNC_S390_VALID_FIELDS) in kvm_arch_vcpu_ioctl_run()
4393 kvm_run->exit_reason = KVM_EXIT_INTR; in kvm_arch_vcpu_ioctl_run()