Lines Matching full:run
78 struct kvm_run *run = vcpu->run; in test_read_invalid() local
82 run->kvm_valid_regs = INVALID_SYNC_FIELD; in test_read_invalid()
87 run->kvm_valid_regs = 0; in test_read_invalid()
89 run->kvm_valid_regs = INVALID_SYNC_FIELD | TEST_SYNC_FIELDS; in test_read_invalid()
94 run->kvm_valid_regs = 0; in test_read_invalid()
99 struct kvm_run *run = vcpu->run; in test_set_invalid() local
103 run->kvm_dirty_regs = INVALID_SYNC_FIELD; in test_set_invalid()
108 run->kvm_dirty_regs = 0; in test_set_invalid()
110 run->kvm_dirty_regs = INVALID_SYNC_FIELD | TEST_SYNC_FIELDS; in test_set_invalid()
115 run->kvm_dirty_regs = 0; in test_set_invalid()
120 struct kvm_run *run = vcpu->run; in test_req_and_verify_all_valid_regs() local
126 run->kvm_valid_regs = TEST_SYNC_FIELDS; in test_req_and_verify_all_valid_regs()
129 TEST_ASSERT(run->exit_reason == KVM_EXIT_S390_SIEIC, in test_req_and_verify_all_valid_regs()
131 run->exit_reason, in test_req_and_verify_all_valid_regs()
132 exit_reason_str(run->exit_reason)); in test_req_and_verify_all_valid_regs()
133 TEST_ASSERT(run->s390_sieic.icptcode == 4 && in test_req_and_verify_all_valid_regs()
134 (run->s390_sieic.ipa >> 8) == 0x83 && in test_req_and_verify_all_valid_regs()
135 (run->s390_sieic.ipb >> 16) == 0x501, in test_req_and_verify_all_valid_regs()
137 run->s390_sieic.icptcode, run->s390_sieic.ipa, in test_req_and_verify_all_valid_regs()
138 run->s390_sieic.ipb); in test_req_and_verify_all_valid_regs()
141 compare_regs(®s, &run->s.regs); in test_req_and_verify_all_valid_regs()
144 compare_sregs(&sregs, &run->s.regs); in test_req_and_verify_all_valid_regs()
149 struct kvm_run *run = vcpu->run; in test_set_and_verify_various_reg_values() local
155 run->s.regs.gprs[11] = 0xBAD1DEA; in test_set_and_verify_various_reg_values()
156 run->s.regs.acrs[0] = 1 << 11; in test_set_and_verify_various_reg_values()
158 run->kvm_valid_regs = TEST_SYNC_FIELDS; in test_set_and_verify_various_reg_values()
159 run->kvm_dirty_regs = KVM_SYNC_GPRS | KVM_SYNC_ACRS; in test_set_and_verify_various_reg_values()
162 run->s.regs.diag318 = get_diag318_info(); in test_set_and_verify_various_reg_values()
163 run->kvm_dirty_regs |= KVM_SYNC_DIAG318; in test_set_and_verify_various_reg_values()
168 TEST_ASSERT(run->exit_reason == KVM_EXIT_S390_SIEIC, in test_set_and_verify_various_reg_values()
170 run->exit_reason, in test_set_and_verify_various_reg_values()
171 exit_reason_str(run->exit_reason)); in test_set_and_verify_various_reg_values()
172 TEST_ASSERT(run->s.regs.gprs[11] == 0xBAD1DEA + 1, in test_set_and_verify_various_reg_values()
174 run->s.regs.gprs[11]); in test_set_and_verify_various_reg_values()
175 TEST_ASSERT(run->s.regs.acrs[0] == 1 << 11, in test_set_and_verify_various_reg_values()
177 run->s.regs.acrs[0]); in test_set_and_verify_various_reg_values()
178 TEST_ASSERT(run->s.regs.diag318 == get_diag318_info(), in test_set_and_verify_various_reg_values()
180 run->s.regs.diag318); in test_set_and_verify_various_reg_values()
183 compare_regs(®s, &run->s.regs); in test_set_and_verify_various_reg_values()
186 compare_sregs(&sregs, &run->s.regs); in test_set_and_verify_various_reg_values()
191 struct kvm_run *run = vcpu->run; in test_clear_kvm_dirty_regs_bits() local
197 run->kvm_valid_regs = TEST_SYNC_FIELDS; in test_clear_kvm_dirty_regs_bits()
198 run->kvm_dirty_regs = 0; in test_clear_kvm_dirty_regs_bits()
199 run->s.regs.gprs[11] = 0xDEADBEEF; in test_clear_kvm_dirty_regs_bits()
200 run->s.regs.diag318 = 0x4B1D; in test_clear_kvm_dirty_regs_bits()
203 TEST_ASSERT(run->exit_reason == KVM_EXIT_S390_SIEIC, in test_clear_kvm_dirty_regs_bits()
205 run->exit_reason, in test_clear_kvm_dirty_regs_bits()
206 exit_reason_str(run->exit_reason)); in test_clear_kvm_dirty_regs_bits()
207 TEST_ASSERT(run->s.regs.gprs[11] != 0xDEADBEEF, in test_clear_kvm_dirty_regs_bits()
209 run->s.regs.gprs[11]); in test_clear_kvm_dirty_regs_bits()
210 TEST_ASSERT(run->s.regs.diag318 != 0x4B1D, in test_clear_kvm_dirty_regs_bits()
212 run->s.regs.diag318); in test_clear_kvm_dirty_regs_bits()