Searched refs:pi_desc (Results 1 – 5 of 5) sorted by relevance
/linux-5.19.10/arch/x86/kvm/vmx/ |
D | posted_intr.h | 9 struct pi_desc { struct 31 static inline bool pi_test_and_set_on(struct pi_desc *pi_desc) in pi_test_and_set_on() argument 34 (unsigned long *)&pi_desc->control); in pi_test_and_set_on() 37 static inline bool pi_test_and_clear_on(struct pi_desc *pi_desc) in pi_test_and_clear_on() argument 40 (unsigned long *)&pi_desc->control); in pi_test_and_clear_on() 43 static inline bool pi_test_and_clear_sn(struct pi_desc *pi_desc) in pi_test_and_clear_sn() argument 46 (unsigned long *)&pi_desc->control); in pi_test_and_clear_sn() 49 static inline bool pi_test_and_set_pir(int vector, struct pi_desc *pi_desc) in pi_test_and_set_pir() argument 51 return test_and_set_bit(vector, (unsigned long *)pi_desc->pir); in pi_test_and_set_pir() 54 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 old, u64 new) in pi_try_set_control() argument 45 if (cmpxchg64(&pi_desc->control, old, new) != old) 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() 100 old.control = new.control = READ_ONCE(pi_desc->control); in vmx_vcpu_pi_load() [all …]
|
D | vmx.h | 226 struct pi_desc *pi_desc; member 332 struct pi_desc pi_desc; member
|
D | vmx.c | 4090 if (pi_test_and_set_pir(vector, &vmx->pi_desc)) in vmx_deliver_posted_interrupt() 4094 if (pi_test_and_set_on(&vmx->pi_desc)) in vmx_deliver_posted_interrupt() 4475 vmcs_write64(POSTED_INTR_DESC_ADDR, __pa((&vmx->pi_desc))); in init_vmcs() 4575 vmx->pi_desc.nv = POSTED_INTR_VECTOR; in __vmx_vcpu_reset() 4576 vmx->pi_desc.sn = 1; in __vmx_vcpu_reset() 6512 if (pi_test_on(&vmx->pi_desc)) { in vmx_sync_pir_to_irr() 6513 pi_clear_on(&vmx->pi_desc); in vmx_sync_pir_to_irr() 6520 kvm_apic_update_irr(vcpu, vmx->pi_desc.pir, &max_irr); in vmx_sync_pir_to_irr() 6564 pi_clear_on(&vmx->pi_desc); in vmx_apicv_post_state_restore() 6565 memset(vmx->pi_desc.pir, 0, sizeof(vmx->pi_desc.pir)); in vmx_apicv_post_state_restore()
|
D | nested.c | 321 vmx->nested.pi_desc = NULL; in free_nested() 3238 vmx->nested.pi_desc = in nested_get_vmcs12_pages() 3239 (struct pi_desc *)(((void *)map->hva) + in nested_get_vmcs12_pages() 3250 vmx->nested.pi_desc = NULL; in nested_get_vmcs12_pages() 3797 if (!vmx->nested.pi_desc) in vmx_complete_nested_posted_interrupt() 3802 if (!pi_test_and_clear_on(vmx->nested.pi_desc)) in vmx_complete_nested_posted_interrupt() 3805 max_irr = find_last_bit((unsigned long *)vmx->nested.pi_desc->pir, 256); in vmx_complete_nested_posted_interrupt() 3811 __kvm_apic_update_irr(vmx->nested.pi_desc->pir, in vmx_complete_nested_posted_interrupt() 4643 vmx->nested.pi_desc = NULL; in nested_vmx_vmexit()
|