Searched refs:pi_desc (Results 1 – 7 of 7) 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 | tdx.c | 715 tdx->vt.pi_desc.nv = POSTED_INTR_VECTOR; in tdx_vcpu_create() 716 __pi_set_sn(&tdx->vt.pi_desc); in tdx_vcpu_create() 1090 if (pi_test_on(&vt->pi_desc)) { in tdx_vcpu_run() 1094 APIC_VECTOR_MASK, &vt->pi_desc)) in tdx_vcpu_run() 1845 __vmx_deliver_posted_interrupt(vcpu, &tdx->vt.pi_desc, vector); in tdx_deliver_interrupt() 3093 td_vmcs_write64(tdx, POSTED_INTR_DESC_ADDR, __pa(&tdx->vt.pi_desc)); in tdx_vcpu_init()
|
| 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 | 4488 __vmx_deliver_posted_interrupt(vcpu, &vt->pi_desc, vector); in vmx_deliver_posted_interrupt() 4972 vmcs_write64(POSTED_INTR_DESC_ADDR, __pa((&vmx->vt.pi_desc))); in init_vmcs() 5087 vmx->vt.pi_desc.nv = POSTED_INTR_VECTOR; in __vmx_vcpu_reset() 5088 __pi_set_sn(&vmx->vt.pi_desc); in __vmx_vcpu_reset() 7147 if (pi_test_on(&vt->pi_desc)) { in vmx_sync_pir_to_irr() 7148 pi_clear_on(&vt->pi_desc); in vmx_sync_pir_to_irr() 7155 kvm_apic_update_irr(vcpu, vt->pi_desc.pir, &max_irr); in vmx_sync_pir_to_irr() 7857 __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()
|