Home
last modified time | relevance | path

Searched refs:pi_desc (Results 1 – 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/arch/x86/kvm/vmx/
Dposted_intr.h9 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 int pi_test_and_set_pir(int vector, struct pi_desc *pi_desc) in pi_test_and_set_pir() argument
45 return test_and_set_bit(vector, (unsigned long *)pi_desc->pir); in pi_test_and_set_pir()
48 static inline bool pi_is_pir_empty(struct pi_desc *pi_desc) in pi_is_pir_empty() argument
50 return bitmap_empty((unsigned long *)pi_desc->pir, NR_VECTORS); in pi_is_pir_empty()
53 static inline void pi_set_sn(struct pi_desc *pi_desc) in pi_set_sn() argument
[all …]
Dposted_intr.c20 static inline struct pi_desc *vcpu_to_pi_desc(struct kvm_vcpu *vcpu) in vcpu_to_pi_desc()
22 return &(to_vmx(vcpu)->pi_desc); in vcpu_to_pi_desc()
27 struct pi_desc *pi_desc = vcpu_to_pi_desc(vcpu); in vmx_vcpu_pi_load() local
28 struct pi_desc old, new; in vmx_vcpu_pi_load()
37 if (!pi_test_sn(pi_desc) && vcpu->cpu == cpu) in vmx_vcpu_pi_load()
47 if (pi_desc->nv == POSTED_INTR_WAKEUP_VECTOR || vcpu->cpu == cpu) { in vmx_vcpu_pi_load()
48 pi_clear_sn(pi_desc); in vmx_vcpu_pi_load()
54 old.control = new.control = pi_desc->control; in vmx_vcpu_pi_load()
64 } while (cmpxchg64(&pi_desc->control, old.control, in vmx_vcpu_pi_load()
77 if (!pi_is_pir_empty(pi_desc)) in vmx_vcpu_pi_load()
[all …]
Dvmx.h170 struct pi_desc *pi_desc; member
274 struct pi_desc pi_desc; member
Dvmx.c4094 if (pi_test_and_set_pir(vector, &vmx->pi_desc)) in vmx_deliver_posted_interrupt()
4098 if (pi_test_and_set_on(&vmx->pi_desc)) in vmx_deliver_posted_interrupt()
4421 vmcs_write64(POSTED_INTR_DESC_ADDR, __pa((&vmx->pi_desc))); in init_vmcs()
6429 if (pi_test_on(&vmx->pi_desc)) { in vmx_sync_pir_to_irr()
6430 pi_clear_on(&vmx->pi_desc); in vmx_sync_pir_to_irr()
6437 kvm_apic_update_irr(vcpu, vmx->pi_desc.pir, &max_irr); in vmx_sync_pir_to_irr()
6470 pi_clear_on(&vmx->pi_desc); in vmx_apicv_post_state_restore()
6471 memset(vmx->pi_desc.pir, 0, sizeof(vmx->pi_desc.pir)); in vmx_apicv_post_state_restore()
7091 vmx->pi_desc.nv = POSTED_INTR_VECTOR; in vmx_create_vcpu()
7092 vmx->pi_desc.sn = 1; in vmx_create_vcpu()
Dnested.c313 vmx->nested.pi_desc = NULL; in free_nested()
3227 vmx->nested.pi_desc = in nested_get_vmcs12_pages()
3228 (struct pi_desc *)(((void *)map->hva) + in nested_get_vmcs12_pages()
3763 if (!vmx->nested.pi_desc || !vmx->nested.pi_pending) in vmx_complete_nested_posted_interrupt()
3767 if (!pi_test_and_clear_on(vmx->nested.pi_desc)) in vmx_complete_nested_posted_interrupt()
3770 max_irr = find_last_bit((unsigned long *)vmx->nested.pi_desc->pir, 256); in vmx_complete_nested_posted_interrupt()
3776 __kvm_apic_update_irr(vmx->nested.pi_desc->pir, in vmx_complete_nested_posted_interrupt()
4598 vmx->nested.pi_desc = NULL; in nested_vmx_vmexit()