Lines Matching refs:hv_vcpu
168 struct kvm_vcpu_hv *hv_vcpu = vcpu_to_hv_vcpu(vcpu);
175 for (idx = 0; idx < ARRAY_SIZE(hv_vcpu->stimer); idx++) {
176 stimer = &hv_vcpu->stimer[idx];
193 struct kvm_vcpu_hv *hv_vcpu = &vcpu->arch.hyperv;
195 hv_vcpu->exit.type = KVM_EXIT_HYPERV_SYNIC;
196 hv_vcpu->exit.u.synic.msr = msr;
197 hv_vcpu->exit.u.synic.control = synic->control;
198 hv_vcpu->exit.u.synic.evt_page = synic->evt_page;
199 hv_vcpu->exit.u.synic.msg_page = synic->msg_page;
300 struct kvm_vcpu_hv *hv_vcpu = &vcpu->arch.hyperv;
302 hv_vcpu->exit.type = KVM_EXIT_HYPERV_SYNDBG;
303 hv_vcpu->exit.u.syndbg.msr = msr;
304 hv_vcpu->exit.u.syndbg.control = syndbg->control.control;
305 hv_vcpu->exit.u.syndbg.send_page = syndbg->control.send_page;
306 hv_vcpu->exit.u.syndbg.recv_page = syndbg->control.recv_page;
307 hv_vcpu->exit.u.syndbg.pending_page = syndbg->control.pending_page;
812 struct kvm_vcpu_hv *hv_vcpu = vcpu_to_hv_vcpu(vcpu);
817 for (i = 0; i < ARRAY_SIZE(hv_vcpu->stimer); i++)
818 if (test_and_clear_bit(i, hv_vcpu->stimer_pending_bitmap)) {
819 stimer = &hv_vcpu->stimer[i];
842 struct kvm_vcpu_hv *hv_vcpu = vcpu_to_hv_vcpu(vcpu);
845 for (i = 0; i < ARRAY_SIZE(hv_vcpu->stimer); i++)
846 stimer_cleanup(&hv_vcpu->stimer[i]);
893 struct kvm_vcpu_hv *hv_vcpu = vcpu_to_hv_vcpu(vcpu);
896 synic_init(&hv_vcpu->synic);
898 bitmap_zero(hv_vcpu->stimer_pending_bitmap, HV_SYNIC_STIMER_COUNT);
899 for (i = 0; i < ARRAY_SIZE(hv_vcpu->stimer); i++)
900 stimer_init(&hv_vcpu->stimer[i], i);
905 struct kvm_vcpu_hv *hv_vcpu = vcpu_to_hv_vcpu(vcpu);
907 hv_vcpu->vp_index = kvm_vcpu_get_idx(vcpu);
1227 struct kvm_vcpu_hv *hv_vcpu = &vcpu->arch.hyperv;
1238 if (new_vp_index == hv_vcpu->vp_index)
1247 if (hv_vcpu->vp_index == vcpu_idx)
1252 hv_vcpu->vp_index = new_vp_index;
1260 hv_vcpu->hv_vapic = data;
1277 hv_vcpu->hv_vapic = data;
1294 hv_vcpu->runtime_offset = data - current_task_runtime_100ns();
1390 struct kvm_vcpu_hv *hv_vcpu = &vcpu->arch.hyperv;
1394 data = hv_vcpu->vp_index;
1403 data = hv_vcpu->hv_vapic;
1406 data = current_task_runtime_100ns() + hv_vcpu->runtime_offset;
1505 struct kvm_vcpu_hv *hv_vcpu = ¤t_vcpu->arch.hyperv;
1565 cpumask_clear(&hv_vcpu->tlb_flush);
1578 NULL, vcpu_mask, &hv_vcpu->tlb_flush);