/linux-6.6.21/drivers/xen/events/ |
D | events_2l.c | 123 struct vcpu_info *vcpu_info = __this_cpu_read(xen_vcpu); in evtchn_2l_unmask() local 132 BM(&vcpu_info->evtchn_pending_sel))) in evtchn_2l_unmask() 133 vcpu_info->evtchn_upcall_pending = 1; in evtchn_2l_unmask() 173 struct vcpu_info *vcpu_info = __this_cpu_read(xen_vcpu); in evtchn_2l_handle_events() local 190 pending_words = xchg_xen_ulong(&vcpu_info->evtchn_pending_sel, 0); in evtchn_2l_handle_events() 272 struct vcpu_info *v; in xen_debug_interrupt()
|
D | events_base.c | 1702 struct vcpu_info *vcpu_info = __this_cpu_read(xen_vcpu); in xen_evtchn_do_upcall() local 1703 int ret = vcpu_info->evtchn_upcall_pending ? IRQ_HANDLED : IRQ_NONE; in xen_evtchn_do_upcall() 1717 vcpu_info->evtchn_upcall_pending = 0; in xen_evtchn_do_upcall() 1725 } while (vcpu_info->evtchn_upcall_pending); in xen_evtchn_do_upcall()
|
/linux-6.6.21/arch/x86/kvm/vmx/ |
D | posted_intr.c | 279 struct vcpu_data vcpu_info; in vmx_pi_update_irte() local 331 vcpu_info.pi_desc_addr = __pa(vcpu_to_pi_desc(vcpu)); in vmx_pi_update_irte() 332 vcpu_info.vector = irq.vector; in vmx_pi_update_irte() 335 vcpu_info.vector, vcpu_info.pi_desc_addr, set); in vmx_pi_update_irte() 338 ret = irq_set_vcpu_affinity(host_irq, &vcpu_info); in vmx_pi_update_irte()
|
/linux-6.6.21/arch/x86/xen/ |
D | enlighten.c | 40 DEFINE_PER_CPU(struct vcpu_info *, xen_vcpu); 41 DEFINE_PER_CPU_ALIGNED(struct vcpu_info, xen_vcpu_info); 153 &HYPERVISOR_shared_info->vcpu_info[xen_vcpu_nr(cpu)]; in xen_vcpu_info_reset() 164 struct vcpu_info *vcpup; in xen_vcpu_setup()
|
D | xen-ops.h | 24 DECLARE_PER_CPU_ALIGNED(struct vcpu_info, xen_vcpu_info);
|
D | time.c | 41 &HYPERVISOR_shared_info->vcpu_info[0].time; in xen_tsc_khz()
|
/linux-6.6.21/arch/x86/kernel/ |
D | asm-offsets.c | 65 OFFSET(XEN_vcpu_info_mask, vcpu_info, evtchn_upcall_mask); in common() 66 OFFSET(XEN_vcpu_info_pending, vcpu_info, evtchn_upcall_pending); in common() 67 OFFSET(XEN_vcpu_info_arch_cr2, vcpu_info, arch.cr2); in common()
|
/linux-6.6.21/arch/arm/xen/ |
D | enlighten.c | 51 DEFINE_PER_CPU(struct vcpu_info *, xen_vcpu); 52 static struct vcpu_info __percpu *xen_vcpu_info; 145 struct vcpu_info *vcpup; in xen_starting_cpu() 487 xen_vcpu_info = __alloc_percpu(sizeof(struct vcpu_info), in xen_guest_init() 488 1 << fls(sizeof(struct vcpu_info) - 1)); in xen_guest_init()
|
/linux-6.6.21/include/xen/interface/ |
D | xen.h | 505 struct vcpu_info { struct 543 struct vcpu_info vcpu_info[MAX_VIRT_CPUS]; argument
|
/linux-6.6.21/arch/x86/kvm/ |
D | xen.c | 512 while (!kvm_gpc_check(gpc, sizeof(struct vcpu_info))) { in kvm_xen_inject_pending_events() 515 if (kvm_gpc_refresh(gpc, sizeof(struct vcpu_info))) in kvm_xen_inject_pending_events() 523 struct vcpu_info *vi = gpc->khva; in kvm_xen_inject_pending_events() 567 BUILD_BUG_ON(offsetof(struct vcpu_info, evtchn_upcall_pending) != in __kvm_xen_has_interrupt() 570 sizeof_field(struct vcpu_info, evtchn_upcall_pending)); in __kvm_xen_has_interrupt() 575 while (!kvm_gpc_check(gpc, sizeof(struct vcpu_info))) { in __kvm_xen_has_interrupt() 589 if (kvm_gpc_refresh(gpc, sizeof(struct vcpu_info))) { in __kvm_xen_has_interrupt() 599 rc = ((struct vcpu_info *)gpc->khva)->evtchn_upcall_pending; in __kvm_xen_has_interrupt() 724 BUILD_BUG_ON(sizeof(struct vcpu_info) != in kvm_xen_vcpu_set_attr() 726 BUILD_BUG_ON(offsetof(struct vcpu_info, time) != in kvm_xen_vcpu_set_attr() [all …]
|
D | xen.h | 201 struct compat_vcpu_info vcpu_info[MAX_VIRT_CPUS]; member
|
/linux-6.6.21/tools/testing/selftests/kvm/ |
D | max_guest_memory_test.c | 31 struct vcpu_info { struct 63 struct vcpu_info *info = data; in vcpu_worker() 95 struct vcpu_info *info; in spawn_workers()
|
/linux-6.6.21/arch/x86/kvm/svm/ |
D | avic.c | 862 struct vcpu_data *vcpu_info, struct vcpu_svm **svm) in get_pi_vcpu_info() argument 879 vcpu_info->pi_desc_addr = __sme_set(page_to_phys((*svm)->avic_backing_page)); in get_pi_vcpu_info() 880 vcpu_info->vector = irq.vector; in get_pi_vcpu_info() 919 struct vcpu_data vcpu_info; in avic_pi_update_irte() local 932 if (!get_pi_vcpu_info(kvm, e, &vcpu_info, &svm) && set && in avic_pi_update_irte() 942 pi.vcpu_data = &vcpu_info; in avic_pi_update_irte() 985 e->gsi, vcpu_info.vector, in avic_pi_update_irte() 986 vcpu_info.pi_desc_addr, set); in avic_pi_update_irte()
|
/linux-6.6.21/tools/testing/selftests/kvm/x86_64/ |
D | xen_shinfo_test.c | 134 struct vcpu_info { struct 143 struct vcpu_info vcpu_info[32]; argument 172 struct vcpu_info *vi = (void *)VCPU_INFO_VADDR; in evtchn_handler() 392 static struct vcpu_info *vinfo;
|
/linux-6.6.21/include/xen/ |
D | xen-ops.h | 13 DECLARE_PER_CPU(struct vcpu_info *, xen_vcpu);
|
/linux-6.6.21/include/linux/ |
D | irq.h | 542 int (*irq_set_vcpu_affinity)(struct irq_data *data, void *vcpu_info); 613 extern int irq_set_vcpu_affinity(unsigned int irq, void *vcpu_info); 691 void *vcpu_info);
|
/linux-6.6.21/kernel/irq/ |
D | chip.c | 1492 int irq_chip_set_vcpu_affinity_parent(struct irq_data *data, void *vcpu_info) in irq_chip_set_vcpu_affinity_parent() argument 1496 return data->chip->irq_set_vcpu_affinity(data, vcpu_info); in irq_chip_set_vcpu_affinity_parent()
|
D | manage.c | 655 int irq_set_vcpu_affinity(unsigned int irq, void *vcpu_info) in irq_set_vcpu_affinity() argument 679 ret = chip->irq_set_vcpu_affinity(data, vcpu_info); in irq_set_vcpu_affinity()
|
/linux-6.6.21/drivers/irqchip/ |
D | irq-gic-v3-its.c | 1980 static int its_irq_set_vcpu_affinity(struct irq_data *d, void *vcpu_info) in its_irq_set_vcpu_affinity() argument 1983 struct its_cmd_info *info = vcpu_info; in its_irq_set_vcpu_affinity() 3954 static int its_vpe_set_vcpu_affinity(struct irq_data *d, void *vcpu_info) in its_vpe_set_vcpu_affinity() argument 3957 struct its_cmd_info *info = vcpu_info; in its_vpe_set_vcpu_affinity() 4185 static int its_vpe_4_1_set_vcpu_affinity(struct irq_data *d, void *vcpu_info) in its_vpe_4_1_set_vcpu_affinity() argument 4188 struct its_cmd_info *info = vcpu_info; in its_vpe_4_1_set_vcpu_affinity() 4345 static int its_sgi_set_vcpu_affinity(struct irq_data *d, void *vcpu_info) in its_sgi_set_vcpu_affinity() argument 4348 struct its_cmd_info *info = vcpu_info; in its_sgi_set_vcpu_affinity()
|
/linux-6.6.21/drivers/pinctrl/qcom/ |
D | pinctrl-msm.c | 1250 static int msm_gpio_irq_set_vcpu_affinity(struct irq_data *d, void *vcpu_info) in msm_gpio_irq_set_vcpu_affinity() argument 1256 return irq_chip_set_vcpu_affinity_parent(d, vcpu_info); in msm_gpio_irq_set_vcpu_affinity()
|
/linux-6.6.21/drivers/iommu/amd/ |
D | iommu.c | 3603 static int amd_ir_set_vcpu_affinity(struct irq_data *data, void *vcpu_info) in amd_ir_set_vcpu_affinity() argument 3606 struct amd_iommu_pi_data *pi_data = vcpu_info; in amd_ir_set_vcpu_affinity()
|
/linux-6.6.21/Documentation/virt/kvm/ |
D | api.rst | 5444 page resides. Note that although Xen places vcpu_info for the first 5447 explicitly even when the vcpu_info for a given vCPU resides at the 5450 vcpu_info[] array, so may know the correct default location. 5553 Sets the guest physical address of the vcpu_info for a given vCPU. 5558 the vcpu_info. 8268 vcpu_info is set.
|