Searched refs:pi_desc (Results 1 – 5 of 5) sorted by relevance
/linux-6.1.9/arch/x86/kvm/vmx/ |
D | posted_intr.h | 11 struct pi_desc { struct 33 static inline bool pi_test_and_set_on(struct pi_desc *pi_desc) in pi_test_and_set_on() argument 36 (unsigned long *)&pi_desc->control); in pi_test_and_set_on() 39 static inline bool pi_test_and_clear_on(struct pi_desc *pi_desc) in pi_test_and_clear_on() argument 42 (unsigned long *)&pi_desc->control); in pi_test_and_clear_on() 45 static inline bool pi_test_and_clear_sn(struct pi_desc *pi_desc) in pi_test_and_clear_sn() argument 48 (unsigned long *)&pi_desc->control); in pi_test_and_clear_sn() 51 static inline bool pi_test_and_set_pir(int vector, struct pi_desc *pi_desc) in pi_test_and_set_pir() argument 53 return test_and_set_bit(vector, (unsigned long *)pi_desc->pir); in pi_test_and_set_pir() 56 static inline bool pi_is_pir_empty(struct pi_desc *pi_desc) in pi_is_pir_empty() argument [all …]
|
D | posted_intr.c | 32 static inline struct pi_desc *vcpu_to_pi_desc(struct kvm_vcpu *vcpu) in vcpu_to_pi_desc() 34 return &(to_vmx(vcpu)->pi_desc); in vcpu_to_pi_desc() 37 static int pi_try_set_control(struct pi_desc *pi_desc, u64 *pold, u64 new) in pi_try_set_control() argument 45 if (!try_cmpxchg64(&pi_desc->control, pold, new)) in pi_try_set_control() 53 struct pi_desc *pi_desc = vcpu_to_pi_desc(vcpu); in vmx_vcpu_pi_load() local 55 struct pi_desc old, new; in vmx_vcpu_pi_load() 72 if (pi_desc->nv != POSTED_INTR_WAKEUP_VECTOR && vcpu->cpu == cpu) { in vmx_vcpu_pi_load() 77 if (pi_test_and_clear_sn(pi_desc)) in vmx_vcpu_pi_load() 89 if (pi_desc->nv == POSTED_INTR_WAKEUP_VECTOR) { in vmx_vcpu_pi_load() 99 old.control = READ_ONCE(pi_desc->control); in vmx_vcpu_pi_load() [all …]
|
D | vmx.h | 218 struct pi_desc *pi_desc; member 333 struct pi_desc pi_desc; member
|
D | vmx.c | 4140 if (pi_test_and_set_pir(vector, &vmx->pi_desc)) in vmx_deliver_posted_interrupt() 4144 if (pi_test_and_set_on(&vmx->pi_desc)) in vmx_deliver_posted_interrupt() 4618 vmcs_write64(POSTED_INTR_DESC_ADDR, __pa((&vmx->pi_desc))); in init_vmcs() 4726 vmx->pi_desc.nv = POSTED_INTR_VECTOR; in __vmx_vcpu_reset() 4727 vmx->pi_desc.sn = 1; in __vmx_vcpu_reset() 6702 if (pi_test_on(&vmx->pi_desc)) { in vmx_sync_pir_to_irr() 6703 pi_clear_on(&vmx->pi_desc); in vmx_sync_pir_to_irr() 6710 kvm_apic_update_irr(vcpu, vmx->pi_desc.pir, &max_irr); in vmx_sync_pir_to_irr() 6754 pi_clear_on(&vmx->pi_desc); in vmx_apicv_post_state_restore() 6755 memset(vmx->pi_desc.pir, 0, sizeof(vmx->pi_desc.pir)); in vmx_apicv_post_state_restore() [all …]
|
D | nested.c | 322 vmx->nested.pi_desc = NULL; in free_nested() 3228 vmx->nested.pi_desc = in nested_get_vmcs12_pages() 3229 (struct pi_desc *)(((void *)map->hva) + in nested_get_vmcs12_pages() 3240 vmx->nested.pi_desc = NULL; in nested_get_vmcs12_pages() 3791 if (!vmx->nested.pi_desc) in vmx_complete_nested_posted_interrupt() 3796 if (!pi_test_and_clear_on(vmx->nested.pi_desc)) in vmx_complete_nested_posted_interrupt() 3799 max_irr = find_last_bit((unsigned long *)vmx->nested.pi_desc->pir, 256); in vmx_complete_nested_posted_interrupt() 3805 __kvm_apic_update_irr(vmx->nested.pi_desc->pir, in vmx_complete_nested_posted_interrupt() 4794 vmx->nested.pi_desc = NULL; in nested_vmx_vmexit()
|