Searched refs:pi_desc (Results 1 – 6 of 6) sorted by relevance
| /linux/arch/x86/kvm/vmx/ |
| H A D | posted_intr.c | 38 static struct pi_desc *vcpu_to_pi_desc(struct kvm_vcpu *vcpu) in vcpu_to_pi_desc() 40 return &(to_vt(vcpu)->pi_desc); in vcpu_to_pi_desc() 43 static int pi_try_set_control(struct pi_desc *pi_desc, u64 *pold, u64 new) in pi_try_set_control() argument 51 if (!try_cmpxchg64(&pi_desc->control, pold, new)) in pi_try_set_control() 59 struct pi_desc *pi_desc = vcpu_to_pi_desc(vcpu); in vmx_vcpu_pi_load() local 61 struct pi_desc old, new; in vmx_vcpu_pi_load() 79 if (pi_desc->nv != POSTED_INTR_WAKEUP_VECTOR && vcpu->cpu == cpu) { in vmx_vcpu_pi_load() 80 if (pi_test_and_clear_sn(pi_desc)) in vmx_vcpu_pi_load() 92 if (pi_desc->nv == POSTED_INTR_WAKEUP_VECTOR) { in vmx_vcpu_pi_load() 113 old.control = READ_ONCE(pi_desc->control); in vmx_vcpu_pi_load() [all …]
|
| H A D | common.h | 35 struct pi_desc pi_desc; member 160 struct pi_desc *pi_desc, int vector) in __vmx_deliver_posted_interrupt() argument 162 if (pi_test_and_set_pir(vector, pi_desc)) in __vmx_deliver_posted_interrupt() 166 if (pi_test_and_set_on(pi_desc)) in __vmx_deliver_posted_interrupt()
|
| H A D | posted_intr.h | 22 static inline int pi_find_highest_vector(struct pi_desc *pi_desc) in pi_find_highest_vector() argument 26 vec = find_last_bit(pi_desc->pir, 256); in pi_find_highest_vector()
|
| H A D | nested.c | 329 vmx->nested.pi_desc = NULL; in nested_put_vmcs12_pages() 3483 vmx->nested.pi_desc = in nested_get_vmcs12_pages() 3484 (struct pi_desc *)(((void *)map->hva) + in nested_get_vmcs12_pages() 3495 vmx->nested.pi_desc = NULL; in nested_get_vmcs12_pages() 4016 if (!vmx->nested.pi_desc) in vmx_complete_nested_posted_interrupt() 4021 if (!pi_test_and_clear_on(vmx->nested.pi_desc)) in vmx_complete_nested_posted_interrupt() 4024 max_irr = pi_find_highest_vector(vmx->nested.pi_desc); in vmx_complete_nested_posted_interrupt() 4030 __kvm_apic_update_irr(vmx->nested.pi_desc->pir, in vmx_complete_nested_posted_interrupt() 4189 if (vmx->nested.pi_pending && vmx->nested.pi_desc && in vmx_has_nested_events() 4190 pi_test_on(vmx->nested.pi_desc)) { in vmx_has_nested_events() [all …]
|
| H A D | vmx.c | 4382 __vmx_deliver_posted_interrupt(vcpu, &vt->pi_desc, vector); in vmx_deliver_posted_interrupt() 4873 vmcs_write64(POSTED_INTR_DESC_ADDR, __pa((&vmx->vt.pi_desc))); in init_vmcs() 4988 vmx->vt.pi_desc.nv = POSTED_INTR_VECTOR; in __vmx_vcpu_reset() 4989 __pi_set_sn(&vmx->vt.pi_desc); in __vmx_vcpu_reset() 7048 if (pi_test_on(&vt->pi_desc)) { in vmx_sync_pir_to_irr() 7049 pi_clear_on(&vt->pi_desc); in vmx_sync_pir_to_irr() 7055 max_irr_is_from_pir = kvm_apic_update_irr(vcpu, vt->pi_desc.pir, in vmx_sync_pir_to_irr() 7782 __pa(&vmx->vt.pi_desc) | PID_TABLE_ENTRY_VALID); in vmx_vcpu_create()
|
| /linux/arch/x86/kernel/ |
| H A D | irq.c | 418 DEFINE_PER_CPU_ALIGNED(struct pi_desc, posted_msi_pi_desc); 480 struct pi_desc *pid = this_cpu_ptr(&posted_msi_pi_desc); in DEFINE_IDTENTRY_SYSVEC()
|