Lines Matching refs:vcpu
19 static struct kvm_vm *test_step_int_1(struct kvm_vcpu **vcpu, void *guest_code, in test_step_int_1() argument
27 vm = vm_create_with_one_vcpu(vcpu, guest_code); in test_step_int_1()
29 new_psw[0] = (*vcpu)->run->psw_mask; in test_step_int_1()
32 vcpu_regs_get(*vcpu, ®s); in test_step_int_1()
34 vcpu_regs_set(*vcpu, ®s); in test_step_int_1()
36 vcpu_guest_debug_set(*vcpu, &debug); in test_step_int_1()
37 vcpu_run(*vcpu); in test_step_int_1()
44 struct kvm_vcpu *vcpu; in test_step_int() local
48 vm = test_step_int_1(&vcpu, guest_code, new_psw_off, new_psw); in test_step_int()
49 TEST_ASSERT_KVM_EXIT_REASON(vcpu, KVM_EXIT_DEBUG); in test_step_int()
50 TEST_ASSERT_EQ(vcpu->run->psw_mask, new_psw[0]); in test_step_int()
51 TEST_ASSERT_EQ(vcpu->run->psw_addr, new_psw[1]); in test_step_int()
81 struct kvm_vcpu *vcpu; in test_step_pgm_diag() local
85 vm = test_step_int_1(&vcpu, test_step_pgm_diag_guest_code, in test_step_pgm_diag()
87 TEST_ASSERT_KVM_EXIT_REASON(vcpu, KVM_EXIT_S390_SIEIC); in test_step_pgm_diag()
88 TEST_ASSERT_EQ(vcpu->run->s390_sieic.icptcode, ICPT_INST); in test_step_pgm_diag()
89 TEST_ASSERT_EQ(vcpu->run->s390_sieic.ipa & 0xff00, IPA0_DIAG); in test_step_pgm_diag()
90 vcpu_ioctl(vcpu, KVM_S390_IRQ, &irq); in test_step_pgm_diag()
91 vcpu_run(vcpu); in test_step_pgm_diag()
92 TEST_ASSERT_KVM_EXIT_REASON(vcpu, KVM_EXIT_DEBUG); in test_step_pgm_diag()
93 TEST_ASSERT_EQ(vcpu->run->psw_mask, new_psw[0]); in test_step_pgm_diag()
94 TEST_ASSERT_EQ(vcpu->run->psw_addr, new_psw[1]); in test_step_pgm_diag()