Home
last modified time | relevance | path

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

/Linux-v5.4/arch/x86/kvm/vmx/
Dvmx.h48 struct pi_desc { struct
159 struct pi_desc *pi_desc; member
253 struct pi_desc pi_desc; member
341 static inline bool pi_test_and_set_on(struct pi_desc *pi_desc) in pi_test_and_set_on() argument
344 (unsigned long *)&pi_desc->control); in pi_test_and_set_on()
347 static inline bool pi_test_and_clear_on(struct pi_desc *pi_desc) in pi_test_and_clear_on() argument
350 (unsigned long *)&pi_desc->control); in pi_test_and_clear_on()
353 static inline int pi_test_and_set_pir(int vector, struct pi_desc *pi_desc) in pi_test_and_set_pir() argument
355 return test_and_set_bit(vector, (unsigned long *)pi_desc->pir); in pi_test_and_set_pir()
358 static inline bool pi_is_pir_empty(struct pi_desc *pi_desc) in pi_is_pir_empty() argument
[all …]
Dvmx.c1258 struct pi_desc *pi_desc = vcpu_to_pi_desc(vcpu); in vmx_vcpu_pi_load() local
1259 struct pi_desc old, new; in vmx_vcpu_pi_load()
1268 if (!pi_test_sn(pi_desc) && vcpu->cpu == cpu) in vmx_vcpu_pi_load()
1278 if (pi_desc->nv == POSTED_INTR_WAKEUP_VECTOR || vcpu->cpu == cpu) { in vmx_vcpu_pi_load()
1279 pi_clear_sn(pi_desc); in vmx_vcpu_pi_load()
1285 old.control = new.control = pi_desc->control; in vmx_vcpu_pi_load()
1295 } while (cmpxchg64(&pi_desc->control, old.control, in vmx_vcpu_pi_load()
1308 if (!pi_is_pir_empty(pi_desc)) in vmx_vcpu_pi_load()
1309 pi_set_on(pi_desc); in vmx_vcpu_pi_load()
1393 struct pi_desc *pi_desc = vcpu_to_pi_desc(vcpu); in vmx_vcpu_pi_put() local
[all …]
Dnested.c265 vmx->nested.pi_desc = NULL; in free_nested()
2985 vmx->nested.pi_desc = in nested_get_vmcs12_pages()
2986 (struct pi_desc *)(((void *)map->hva) + in nested_get_vmcs12_pages()
3402 if (!vmx->nested.pi_desc || !vmx->nested.pi_pending) in vmx_complete_nested_posted_interrupt()
3406 if (!pi_test_and_clear_on(vmx->nested.pi_desc)) in vmx_complete_nested_posted_interrupt()
3409 max_irr = find_last_bit((unsigned long *)vmx->nested.pi_desc->pir, 256); in vmx_complete_nested_posted_interrupt()
3415 __kvm_apic_update_irr(vmx->nested.pi_desc->pir, in vmx_complete_nested_posted_interrupt()
4135 vmx->nested.pi_desc = NULL; in nested_vmx_vmexit()