Home
last modified time | relevance | path

Searched refs:vcpu_id (Results 1 – 25 of 84) sorted by relevance

1234

/xen/tools/tests/xen-access/
A Dxen-access.c725 rsp.vcpu_id = req.vcpu_id; in main()
758 req.vcpu_id, in main()
788 req.vcpu_id); in main()
805 req.vcpu_id); in main()
814 req.vcpu_id, in main()
831 req.vcpu_id, in main()
854 req.vcpu_id, in main()
870 req.vcpu_id, in main()
880 req.vcpu_id, in main()
921 uint32_t vcpu_id; in main() local
[all …]
/xen/xen/common/
A Dmonitor.c111 req->vcpu_id = v->vcpu_id; in monitor_traps()
142 .vcpu_id = curr->vcpu_id, in monitor_guest_request()
A Ddomain.c127 v->vcpu_info = ((v->vcpu_id < XEN_LEGACY_MAX_VCPUS) in vcpu_info_reset()
128 ? (vcpu_info_t *)&shared_info(d, vcpu_info[v->vcpu_id]) in vcpu_info_reset()
138 struct vcpu *vcpu_create(struct domain *d, unsigned int vcpu_id) in vcpu_create() argument
149 if ( vcpu_id >= d->max_vcpus || d->vcpu[vcpu_id] || in vcpu_create()
150 (!is_idle_domain(d) && vcpu_id && !d->vcpu[vcpu_id - 1]) ) in vcpu_create()
160 v->vcpu_id = vcpu_id; in vcpu_create()
189 d->vcpu[vcpu_id] = v; in vcpu_create()
190 if ( vcpu_id != 0 ) in vcpu_create()
192 int prev_id = v->vcpu_id - 1; in vcpu_create()
763 d->domain_id, current->vcpu_id, smp_processor_id()); in __domain_crash()
[all …]
A Dkeyhandler.c309 if ( !(v->vcpu_id & 0x3f) ) in dump_domains()
314 v->vcpu_id, v->processor, in dump_domains()
339 if ( !(v->vcpu_id & 0x3f) ) in dump_domains()
343 d->domain_id, v->vcpu_id, in dump_domains()
A Dxenoprof.c314 d->xenoprof->vcpu[v->vcpu_id].event_size = max_samples; in alloc_xenoprof_struct()
315 d->xenoprof->vcpu[v->vcpu_id].buffer = buf; in alloc_xenoprof_struct()
317 xenoprof_buf(d, buf, vcpu_id) = v->vcpu_id; in alloc_xenoprof_struct()
578 return xenoprof_add_sample(d, &d->xenoprof->vcpu[vcpu->vcpu_id], in xenoprof_add_trace()
598 v = &d->xenoprof->vcpu[vcpu->vcpu_id]; in xenoprof_log_event()
A Devent_fifo.c258 lastq.last_vcpu_id = v->vcpu_id; in evtchn_fifo_set_pending()
555 uint32_t vcpu_id; in evtchn_fifo_init_control() local
563 vcpu_id = init_control->vcpu; in evtchn_fifo_init_control()
567 if ( (v = domain_vcpu(d, vcpu_id)) == NULL ) in evtchn_fifo_init_control()
/xen/xen/arch/arm/vgic/
A Dvgic-mmio-v2.c93 unsigned int vcpu_id; in vgic_mmio_write_sgir() local
102 targets &= ~(1U << source_vcpu->vcpu_id); /* but self */ in vgic_mmio_write_sgir()
105 targets = (1U << source_vcpu->vcpu_id); in vgic_mmio_write_sgir()
111 for_each_set_bit( vcpu_id, &targets, 8 ) in vgic_mmio_write_sgir()
113 struct vcpu *vcpu = d->vcpu[vcpu_id]; in vgic_mmio_write_sgir()
120 irq->source |= 1U << source_vcpu->vcpu_id; in vgic_mmio_write_sgir()
/xen/xen/arch/x86/guest/xen/
A Dxen.c44 DEFINE_PER_CPU(unsigned int, vcpu_id);
97 unsigned int vcpu = this_cpu(vcpu_id); in map_vcpuinfo()
139 this_cpu(vcpu_id) = ebx; in set_vcpu_id()
141 this_cpu(vcpu_id) = smp_processor_id(); in set_vcpu_id()
215 rc = xen_hypercall_set_evtchn_upcall_vector(this_cpu(vcpu_id), in init_evtchn()
/xen/tools/firmware/hvmloader/
A Dconfig.h53 #define LAPIC_ID(vcpu_id) ((vcpu_id) * 2) argument
A Dmp_tables.c199 static void fill_mp_proc_entry(struct mp_proc_entry *mppe, int vcpu_id) in fill_mp_proc_entry() argument
202 mppe->lapic_id = LAPIC_ID(vcpu_id); in fill_mp_proc_entry()
205 if ( vcpu_id == 0 ) in fill_mp_proc_entry()
/xen/tools/python/scripts/
A Dconvert-legacy-stream128 def write_libxc_pv_vcpu_basic(vcpu_id, data): argument
130 pack(libxc.X86_PV_VCPU_HDR_FORMAT, vcpu_id, 0), data)
132 def write_libxc_pv_vcpu_extd(vcpu_id, data): argument
134 pack(libxc.X86_PV_VCPU_HDR_FORMAT, vcpu_id, 0), data)
136 def write_libxc_pv_vcpu_xsave(vcpu_id, data): argument
138 pack(libxc.X86_PV_VCPU_HDR_FORMAT, vcpu_id, 0), data)
282 for vcpu_id in vm.online_vcpu_map:
286 write_libxc_pv_vcpu_basic(vcpu_id, basic)
291 write_libxc_pv_vcpu_extd(vcpu_id, extd)
299 write_libxc_pv_vcpu_xsave(vcpu_id, xsave)
/xen/xen/include/public/hvm/
A Dhvm_op.h238 uint32_t vcpu_id; member
247 uint32_t vcpu_id; member
317 uint32_t vcpu_id; member
/xen/xen/arch/arm/
A Dvgic-v3.c78 unsigned int vcpu_id; in vgic_v3_irouter_to_vcpu() local
87 vcpu_id = vaffinity_to_vcpuid(irouter); in vgic_v3_irouter_to_vcpu()
88 if ( vcpu_id >= d->max_vcpus ) in vgic_v3_irouter_to_vcpu()
91 return d->vcpu[vcpu_id]; in vgic_v3_irouter_to_vcpu()
159 write_atomic(&rank->vcpu[offset], new_vcpu->vcpu_id); in vgic_store_irouter()
202 typer |= v->vcpu_id << GICR_TYPER_PROC_NUM_SHIFT; in __vgic_v3_rdistr_rd_mmio_read()
1034 unsigned int vcpu_id; in get_vcpu_from_rdist() local
1037 if ( unlikely(vcpu_id >= d->max_vcpus) ) in get_vcpu_from_rdist()
1040 v = d->vcpu[vcpu_id]; in get_vcpu_from_rdist()
1618 d->domain_id, v->vcpu_id); in vgic_v3_vcpu_init()
[all …]
A Dgic-v3-lpi.c149 unsigned int vcpu_id; in vgic_vcpu_inject_lpi() local
154 vcpu_id = ACCESS_ONCE(p->lpi_vcpu_id); in vgic_vcpu_inject_lpi()
155 if ( vcpu_id >= d->max_vcpus ) in vgic_vcpu_inject_lpi()
158 vgic_inject_irq(d, d->vcpu[vcpu_id], virq, true); in vgic_vcpu_inject_lpi()
A Dvgic-v3-its.c123 coll_table_entry_t vcpu_id) in its_set_collection() argument
137 &vcpu_id, sizeof(vcpu_id), true); in its_set_collection()
145 coll_table_entry_t vcpu_id; in get_vcpu_from_collection() local
155 &vcpu_id, sizeof(coll_table_entry_t), false); in get_vcpu_from_collection()
159 if ( vcpu_id == UNMAPPED_COLLECTION || vcpu_id >= its->d->max_vcpus ) in get_vcpu_from_collection()
162 return its->d->vcpu[vcpu_id]; in get_vcpu_from_collection()
561 if ( pirqs[i]->lpi_vcpu_id != vcpu->vcpu_id ) in its_handle_invall()
774 pirq->lpi_vcpu_id = vcpu->vcpu_id; in its_handle_mapti()
846 p->lpi_vcpu_id = nvcpu->vcpu_id; in its_handle_movi()
/xen/xen/common/sched/
A Dcore.c214 d.vcpu = v->vcpu_id; in trace_runstate_change()
231 d.vcpu = v->vcpu_id; in trace_continue_running()
245 !test_bit(v->vcpu_id, v->domain->poll_mask) ) in vcpu_urgent_count_update()
429 if ( !unit->vcpu_list || unit->vcpu_list->vcpu_id > v->vcpu_id ) in sched_unit_add_vcpu()
437 unit->unit_id = v->vcpu_id; in sched_unit_add_vcpu()
484 if ( unit->unit_id / gran == v->vcpu_id / gran ) in sched_alloc_unit()
519 if ( v->vcpu_id == 0 ) in sched_select_initial_cpu()
544 processor = v->vcpu_id; in sched_init_vcpu()
1400 set_bit(v->vcpu_id, d->poll_mask); in do_poll()
1416 !test_bit(v->vcpu_id, d->poll_mask) ) in do_poll()
[all …]
/xen/xen/include/xen/
A Devent.h57 long evtchn_bind_vcpu(unsigned int port, unsigned int vcpu_id);
231 unsigned int vcpu_id, in evtchn_port_set_pending() argument
235 d->evtchn_port_ops->set_pending(d->vcpu[vcpu_id], evtchn); in evtchn_port_set_pending()
A Dsched.h150 int vcpu_id; member
310 (v)->vcpu_id < (u)->next_in_list->unit_id); \
908 unsigned int vcpu_id) in domain_vcpu() argument
910 unsigned int idx = array_index_nospec(vcpu_id, d->max_vcpus); in domain_vcpu()
912 return vcpu_id >= d->max_vcpus ? NULL : d->vcpu[idx]; in domain_vcpu()
/xen/xen/include/asm-x86/guest/
A Dxen.h40 DECLARE_PER_CPU(unsigned int, vcpu_id);
/xen/xen/arch/x86/pv/
A Dshim.c316 BUG_ON(current->vcpu_id != 0); in pv_shim_shutdown()
841 if ( !cpu_online(v->vcpu_id) ) in pv_shim_cpu_up()
843 long rc = cpu_up_helper((void *)(unsigned long)v->vcpu_id); in pv_shim_cpu_up()
849 v->vcpu_id, rc); in pv_shim_cpu_up()
853 vcpu_set_hard_affinity(v, cpumask_of(v->vcpu_id)); in pv_shim_cpu_up()
874 if ( cpu_online(v->vcpu_id) ) in pv_shim_cpu_down()
876 rc = cpu_down_helper((void *)(unsigned long)v->vcpu_id); in pv_shim_cpu_down()
879 v->vcpu_id, rc); in pv_shim_cpu_down()
/xen/xen/arch/x86/hvm/
A Dvlapic.c407 } while ( v->vcpu_id != old ); in vlapic_lowest_prio()
411 vlapic_vcpu(target)->vcpu_id; in vlapic_lowest_prio()
1077 u32 id = vlapic_vcpu(vlapic)->vcpu_id; in set_x2apic_id()
1444 if ( v->vcpu_id == 0 ) in vlapic_reset()
1447 vlapic_set_reg(vlapic, APIC_ID, (v->vcpu_id * 2) << 24); in vlapic_reset()
1486 return hvm_save_entry(LAPIC, v->vcpu_id, h, &vcpu_vlapic(v)->hw); in lapic_save_hidden()
1515 if ( GET_xAPIC_ID(id) != vlapic_vcpu(vlapic)->vcpu_id * 2 || in lapic_load_fixup()
1607 HVM_DBG_LOG(DBG_LEVEL_VLAPIC, "%d", v->vcpu_id); in vlapic_init()
1623 v->domain->domain_id, v->vcpu_id); in vlapic_init()
1634 v->domain->domain_id, v->vcpu_id); in vlapic_init()
[all …]
/xen/xen/include/public/
A Dpmu.h112 uint32_t vcpu_id; member
/xen/xen/include/asm-x86/
A Dconfig.h294 (PERDOMAIN_VIRT_START + ((v)->vcpu_id << GDT_LDT_VCPU_VA_SHIFT))
310 (ARG_XLAT_VIRT_START + ((v)->vcpu_id << ARG_XLAT_VA_SHIFT))
/xen/xen/arch/x86/
A Dcompat.c46 current->domain->domain_id, current->vcpu_id, arg); in do_sched_op_compat()
/xen/xen/arch/x86/hvm/viridian/
A Dviridian.c381 *val = v->vcpu_id; in guest_rdmsr_viridian()
518 return vcpu_mask & (1ul << v->vcpu_id); in need_flush()
667 if ( v->vcpu_id >= (sizeof(vcpu_mask) * 8) ) in viridian_hypercall()
670 if ( !(vcpu_mask & (1ul << v->vcpu_id)) ) in viridian_hypercall()
818 return hvm_save_entry(VIRIDIAN_VCPU, v->vcpu_id, h, &ctxt); in viridian_save_vcpu_ctxt()

Completed in 59 milliseconds

1234