Lines Matching full:sint
68 static inline u64 synic_read_sint(struct kvm_vcpu_hv_synic *synic, int sint) in synic_read_sint() argument
70 return atomic64_read(&synic->sint[sint]); in synic_read_sint()
85 for (i = 0; i < ARRAY_SIZE(synic->sint); i++) { in synic_has_vector_connected()
98 for (i = 0; i < ARRAY_SIZE(synic->sint); i++) { in synic_has_vector_auto_eoi()
155 static int synic_set_sint(struct kvm_vcpu_hv_synic *synic, int sint, in synic_set_sint() argument
177 old_vector = synic_read_sint(synic, sint) & HV_SYNIC_SINT_VECTOR_MASK; in synic_set_sint()
179 atomic64_set(&synic->sint[sint], data); in synic_set_sint()
219 static void kvm_hv_notify_acked_sint(struct kvm_vcpu *vcpu, u32 sint) in kvm_hv_notify_acked_sint() argument
227 trace_kvm_hv_notify_acked_sint(vcpu->vcpu_id, sint); in kvm_hv_notify_acked_sint()
234 stimer->config.sintx == sint) in kvm_hv_notify_acked_sint()
239 gsi = atomic_read(&synic->sint_to_gsi[sint]); in kvm_hv_notify_acked_sint()
314 for (i = 0; i < ARRAY_SIZE(synic->sint); i++) in synic_set_msr()
463 *pdata = atomic64_read(&synic->sint[msr - HV_X64_MSR_SINT0]); in synic_get_msr()
472 static int synic_set_irq(struct kvm_vcpu_hv_synic *synic, u32 sint) in synic_set_irq() argument
481 if (sint >= ARRAY_SIZE(synic->sint)) in synic_set_irq()
484 vector = synic_get_sint_vector(synic_read_sint(synic, sint)); in synic_set_irq()
496 trace_kvm_hv_synic_set_irq(vcpu->vcpu_id, sint, irq.vector, ret); in synic_set_irq()
500 int kvm_hv_synic_set_irq(struct kvm *kvm, u32 vpidx, u32 sint) in kvm_hv_synic_set_irq() argument
508 return synic_set_irq(synic, sint); in kvm_hv_synic_set_irq()
518 for (i = 0; i < ARRAY_SIZE(synic->sint); i++) in kvm_hv_synic_send_eoi()
523 static int kvm_hv_set_sint_gsi(struct kvm *kvm, u32 vpidx, u32 sint, int gsi) in kvm_hv_set_sint_gsi() argument
531 if (sint >= ARRAY_SIZE(synic->sint_to_gsi)) in kvm_hv_set_sint_gsi()
534 atomic_set(&synic->sint_to_gsi[sint], gsi); in kvm_hv_set_sint_gsi()
551 e->hv_sint.sint, gsi); in kvm_hv_irq_routing_update()
562 for (i = 0; i < ARRAY_SIZE(synic->sint); i++) { in synic_init()
563 atomic64_set(&synic->sint[i], HV_SYNIC_SINT_MASKED); in synic_init()
755 static int synic_deliver_msg(struct kvm_vcpu_hv_synic *synic, u32 sint, in synic_deliver_msg() argument
759 int msg_off = offsetof(struct hv_message_page, sint_message[sint]); in synic_deliver_msg()
804 r = synic_set_irq(synic, sint); in synic_deliver_msg()