Lines Matching refs:host

156 			  u64 data, bool host)  in synic_set_sint()  argument
169 if (vector < HV_SYNIC_FIRST_VALID_VECTOR && !host && !masked) in synic_set_sint()
260 u32 msr, u64 data, bool host) in synic_set_msr() argument
265 if (!synic->active && (!host || data)) in synic_set_msr()
268 trace_kvm_hv_synic_set_msr(vcpu->vcpu_id, msr, data, host); in synic_set_msr()
274 if (!host) in synic_set_msr()
278 if (!host) { in synic_set_msr()
285 if ((data & HV_SYNIC_SIEFP_ENABLE) && !host && in synic_set_msr()
293 if (!host) in synic_set_msr()
297 if ((data & HV_SYNIC_SIMP_ENABLE) && !host && in synic_set_msr()
305 if (!host) in synic_set_msr()
319 ret = synic_set_sint(synic, msr - HV_X64_MSR_SINT0, data, host); in synic_set_msr()
363 static int syndbg_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) in syndbg_set_msr() argument
367 if (!kvm_hv_is_syndbg_enabled(vcpu) && !host) in syndbg_set_msr()
375 if (!host) in syndbg_set_msr()
389 if (!host) in syndbg_set_msr()
402 static int syndbg_get_msr(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata, bool host) in syndbg_get_msr() argument
406 if (!kvm_hv_is_syndbg_enabled(vcpu) && !host) in syndbg_get_msr()
438 bool host) in synic_get_msr() argument
442 if (!synic->active && !host) in synic_get_msr()
689 bool host) in stimer_set_config() argument
697 if (!synic->active && (!host || config)) in stimer_set_config()
700 if (unlikely(!host && hv_vcpu->enforce_cpuid && new_config.direct_mode && in stimer_set_config()
706 stimer->index, config, host); in stimer_set_config()
721 bool host) in stimer_set_count() argument
726 if (!synic->active && (!host || count)) in stimer_set_count()
730 stimer->index, count, host); in stimer_set_count()
734 if (!host) { in stimer_set_count()
1379 bool host) in kvm_hv_set_msr_pw() argument
1384 if (unlikely(!host && !hv_check_msr_access(to_hv_vcpu(vcpu), msr))) in kvm_hv_set_msr_pw()
1438 if (!host) in kvm_hv_set_msr_pw()
1452 if (host) in kvm_hv_set_msr_pw()
1480 if (data && !host) in kvm_hv_set_msr_pw()
1487 if (!host) in kvm_hv_set_msr_pw()
1496 if (!host && hv->hv_invtsc_control && !data) in kvm_hv_set_msr_pw()
1503 return syndbg_set_msr(vcpu, msr, data, host); in kvm_hv_set_msr_pw()
1521 static int kvm_hv_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) in kvm_hv_set_msr() argument
1525 if (unlikely(!host && !hv_check_msr_access(hv_vcpu, msr))) in kvm_hv_set_msr()
1533 if (!host || new_vp_index >= KVM_MAX_VCPUS) in kvm_hv_set_msr()
1590 if (!host) in kvm_hv_set_msr()
1600 return synic_set_msr(to_hv_synic(vcpu), msr, data, host); in kvm_hv_set_msr()
1608 data, host); in kvm_hv_set_msr()
1617 data, host); in kvm_hv_set_msr()
1622 if (!host) in kvm_hv_set_msr()
1634 bool host) in kvm_hv_get_msr_pw() argument
1640 if (unlikely(!host && !hv_check_msr_access(to_hv_vcpu(vcpu), msr))) in kvm_hv_get_msr_pw()
1679 return syndbg_get_msr(vcpu, msr, pdata, host); in kvm_hv_get_msr_pw()
1690 bool host) in kvm_hv_get_msr() argument
1695 if (unlikely(!host && !hv_check_msr_access(hv_vcpu, msr))) in kvm_hv_get_msr()
1720 return synic_get_msr(to_hv_synic(vcpu), msr, pdata, host); in kvm_hv_get_msr()
1754 int kvm_hv_set_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) in kvm_hv_set_msr_common() argument
1758 if (!host && !vcpu->arch.hyperv_enabled) in kvm_hv_set_msr_common()
1768 r = kvm_hv_set_msr_pw(vcpu, msr, data, host); in kvm_hv_set_msr_common()
1772 return kvm_hv_set_msr(vcpu, msr, data, host); in kvm_hv_set_msr_common()
1775 int kvm_hv_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata, bool host) in kvm_hv_get_msr_common() argument
1779 if (!host && !vcpu->arch.hyperv_enabled) in kvm_hv_get_msr_common()
1789 r = kvm_hv_get_msr_pw(vcpu, msr, pdata, host); in kvm_hv_get_msr_common()
1793 return kvm_hv_get_msr(vcpu, msr, pdata, host); in kvm_hv_get_msr_common()