Home
last modified time | relevance | path

Searched full:domid (Results 1 – 25 of 58) sorted by relevance

123

/linux-6.14.4/include/xen/interface/io/
Dvscsiif.h98 * <domid>/<vhost>/feature-host = "0"
99 * <domid>/<vhost>/frontend = "/local/domain/<domid>/device/vscsi/0"
100 * <domid>/<vhost>/frontend-id = "<domid>"
101 * <domid>/<vhost>/online = "1"
102 * <domid>/<vhost>/state = "4"
103 * <domid>/<vhost>/vscsi-devs/dev-0/p-dev = "8:0:2:1" or "naa.wwn:lun"
104 * <domid>/<vhost>/vscsi-devs/dev-0/state = "4"
105 * <domid>/<vhost>/vscsi-devs/dev-0/v-dev = "0:0:0:0"
106 * <domid>/<vhost>/vscsi-devs/dev-1/p-dev = "8:0:2:2"
107 * <domid>/<vhost>/vscsi-devs/dev-1/state = "4"
[all …]
/linux-6.14.4/kernel/irq/
Dmsi.c40 * @domid: ID of the domain on which management operations should be done
47 unsigned int domid; member
59 static unsigned int msi_domain_get_hwsize(struct device *dev, unsigned int domid);
101 unsigned int domid, unsigned int index) in msi_insert_desc() argument
104 struct xarray *xa = &md->__domains[domid].store; in msi_insert_desc()
108 hwsize = msi_domain_get_hwsize(dev, domid); in msi_insert_desc()
143 * @domid: The id of the interrupt domain to which the desriptor is added
148 int msi_domain_insert_msi_desc(struct device *dev, unsigned int domid, in msi_domain_insert_msi_desc() argument
162 return msi_insert_desc(dev, desc, domid, init_desc->msi_index); in msi_domain_insert_msi_desc()
183 if (WARN_ON_ONCE(ctrl->domid >= MSI_MAX_DEVICE_IRQDOMAINS || in msi_ctrl_valid()
[all …]
/linux-6.14.4/include/xen/
Dxen-ops.h49 unsigned int domid, bool no_translate);
53 pgprot_t prot, unsigned int domid, in xen_remap_pfn() argument
68 unsigned int domid,
81 unsigned int domid, in xen_xlate_remap_gfn_array() argument
105 * @domid: Domain owning the pages
118 unsigned int domid, in xen_remap_domain_gfn_array() argument
123 prot, domid, pages); in xen_remap_domain_gfn_array()
130 return xen_remap_pfn(vma, addr, gfn, nr, err_ptr, prot, domid, in xen_remap_domain_gfn_array()
142 * @domid: Domain owning the pages
153 pgprot_t prot, unsigned int domid) in xen_remap_domain_mfn_array() argument
[all …]
Dgrant_table.h90 int gnttab_grant_foreign_access(domid_t domid, unsigned long frame,
149 void gnttab_grant_foreign_access_ref(grant_ref_t ref, domid_t domid,
154 grant_ref_t ref, domid_t domid, in gnttab_page_grant_foreign_access_ref_one() argument
157 gnttab_grant_foreign_access_ref(ref, domid, xen_page_to_gfn(page), in gnttab_page_grant_foreign_access_ref_one()
163 uint32_t flags, grant_ref_t ref, domid_t domid) in gnttab_set_map_op() argument
174 map->dom = domid; in gnttab_set_map_op()
279 domid_t domid; member
/linux-6.14.4/include/linux/
Dmsi.h231 struct msi_desc *msi_domain_first_desc(struct device *dev, unsigned int domid,
251 struct msi_desc *msi_next_desc(struct device *dev, unsigned int domid,
259 * @domid: The id of the interrupt domain which should be walked.
267 #define msi_domain_for_each_desc(desc, dev, domid, filter) \ argument
268 for ((desc) = msi_domain_first_desc((dev), (domid), (filter)); (desc); \
269 (desc) = msi_next_desc((dev), (domid), (filter)))
311 int msi_domain_insert_msi_desc(struct device *dev, unsigned int domid,
326 void msi_domain_free_msi_descs_range(struct device *dev, unsigned int domid,
597 bool msi_create_device_irq_domain(struct device *dev, unsigned int domid,
601 void msi_remove_device_irq_domain(struct device *dev, unsigned int domid);
[all …]
/linux-6.14.4/include/xen/interface/
Dgrant_table.h29 * 1. Write ent->domid.
92 domid_t domid; member
94 * GTF_permit_access: GFN that @domid is allowed to map and access. [GST]
95 * GTF_accept_transfer: GFN that @domid is allowed to transfer into. [GST]
96 * GTF_transfer_completed: MFN whose ownership transferred by @domid
112 * GTF_permit_access: Allow @domid to map/access @frame.
113 * GTF_accept_transfer: Allow @domid to transfer ownership of one page frame
115 * GTF_transitive: Allow @domid to transitively access a subrange of
126 * GTF_readonly: Restrict @domid to read-only mappings and accesses. [GST]
127 * GTF_reading: Grant entry is currently mapped for reading by @domid. [XEN]
[all …]
Dmemory.h53 domid_t domid; member
76 * 1. @in.domid == @out.domid
174 domid_t domid; member
197 domid_t domid; member
207 /* GPFN in domid where the source mapping page should appear. */
255 domid_t domid; member
269 domid_t domid; member
/linux-6.14.4/drivers/xen/
Dprivcmd.c72 domid_t domid; member
87 if (data->domid != DOMID_INVALID) in privcmd_ioctl_hypercall()
280 /* If restriction is in place, check the domid matches */ in privcmd_ioctl_mmap()
281 if (data->domid != DOMID_INVALID && data->domid != mmapcmd.dom) in privcmd_ioctl_mmap()
427 /* Allocate pfns that are then mapped with gfns from foreign domid. Update
487 /* If restriction is in place, check the domid matches */ in privcmd_ioctl_mmap_batch()
488 if (data->domid != DOMID_INVALID && data->domid != m.dom) in privcmd_ioctl_mmap_batch()
646 /* If restriction is in place, check the domid matches */ in privcmd_ioctl_dm_op()
647 if (data->domid != DOMID_INVALID && data->domid != kdata.dom) in privcmd_ioctl_dm_op()
726 if (data->domid == DOMID_INVALID) in privcmd_ioctl_restrict()
[all …]
Dxlate_mmu.c68 domid_t domid; member
104 .domid = DOMID_SELF, in remap_pte_fn()
105 .foreign_domid = info->domid, in remap_pte_fn()
147 unsigned domid, in xen_xlate_remap_gfn_array() argument
161 data.domid = domid; in xen_xlate_remap_gfn_array()
178 xrp.domid = DOMID_SELF; in unmap_gfn()
Dgntdev-dmabuf.c437 int count, u32 domid, u32 *refs, u32 *fd) in dmabuf_exp_from_refs() argument
448 map->grants[i].domid = domid; in dmabuf_exp_from_refs()
489 int count, int domid) in dmabuf_imp_grant_foreign_access() argument
510 gnttab_grant_foreign_access_ref(cur_ref, domid, in dmabuf_imp_grant_foreign_access()
567 int fd, int count, int domid) in dmabuf_imp_to_refs() argument
645 count, domid)); in dmabuf_imp_to_refs()
760 op.domid, refs, &op.fd); in gntdev_ioctl_dmabuf_exp_from_refs()
799 op.count, op.domid); in gntdev_ioctl_dmabuf_imp_to_refs()
Dgrant-table.c135 * parameter is reference of this introduced grant entry, domid is id of
139 void (*update_entry)(grant_ref_t ref, domid_t domid,
379 * 1. Write ent->domid.
384 static void gnttab_update_entry_v1(grant_ref_t ref, domid_t domid, in gnttab_update_entry_v1() argument
387 gnttab_shared.v1[ref].domid = domid; in gnttab_update_entry_v1()
393 static void gnttab_update_entry_v2(grant_ref_t ref, domid_t domid, in gnttab_update_entry_v2() argument
396 gnttab_shared.v2[ref].hdr.domid = domid; in gnttab_update_entry_v2()
405 void gnttab_grant_foreign_access_ref(grant_ref_t ref, domid_t domid, in gnttab_grant_foreign_access_ref() argument
408 gnttab_interface->update_entry(ref, domid, frame, in gnttab_grant_foreign_access_ref()
413 int gnttab_grant_foreign_access(domid_t domid, unsigned long frame, in gnttab_grant_foreign_access() argument
[all …]
Dmem-reservation.c91 .domid = DOMID_SELF in xenmem_reservation_increase()
107 .domid = DOMID_SELF in xenmem_reservation_decrease()
Dgntdev.c198 add->grants[i].domid = DOMID_INVALID; in gntdev_alloc_map()
314 map->grants[pgnr].domid); in find_grant_ptes()
334 map->grants[i].domid); in gntdev_map_grant_pages()
360 map->grants[i].domid); in gntdev_map_grant_pages()
905 op->source.domid = seg->source.foreign.domid; in gntdev_grant_copy_seg()
919 op->source.domid = DOMID_SELF; in gntdev_grant_copy_seg()
925 op->dest.domid = seg->dest.foreign.domid; in gntdev_grant_copy_seg()
939 op->dest.domid = DOMID_SELF; in gntdev_grant_copy_seg()
Darm-device.c29 xrp.domid = DOMID_SELF; in xen_unmap_device_mmio()
53 .domid = DOMID_SELF, in xen_map_device_mmio()
/linux-6.14.4/drivers/xen/xenbus/
Dxenbus_probe_backend.c58 /* backend/<type>/<fe-uuid>/<id> => <type>-<fe-domid>-<id> */
61 int domid, err; in backend_bus_id() local
75 err = xenbus_gather(XBT_NIL, nodename, "frontend-id", "%i", &domid, in backend_bus_id()
90 typelen, type, domid, devid) >= XEN_BUS_ID_SIZE) in backend_bus_id()
152 /* backend/<typename>/<frontend-domid> */
154 const char *domid) in xenbus_probe_backend() argument
163 nodename = kasprintf(GFP_KERNEL, "%s/%s/%s", bus->root, type, domid); in xenbus_probe_backend()
Dxenbus_dev_backend.c30 static long xenbus_alloc(domid_t domid) in xenbus_alloc() argument
50 gnttab_grant_foreign_access_ref(GNTTAB_RESERVED_XENSTORE, domid, in xenbus_alloc()
54 arg.remote_dom = domid; in xenbus_alloc()
/linux-6.14.4/arch/x86/xen/
Dmmu_hvm.c21 .domid = DOMID_SELF, in xen_vmcore_pfn_is_ram()
41 a.domid = DOMID_SELF; in xen_hvm_exit_mmap()
52 a.domid = DOMID_SELF; in is_pagetable_dying_supported()
/linux-6.14.4/include/xen/interface/hvm/
Dhvm_op.h13 domid_t domid; /* IN */ member
23 domid_t domid; member
40 domid_t domid; member
/linux-6.14.4/arch/x86/include/asm/xen/
Dhypercall.h268 int *success_count, domid_t domid) in HYPERVISOR_mmu_update() argument
270 return _hypercall4(int, mmu_update, req, count, success_count, domid); in HYPERVISOR_mmu_update()
275 int *success_count, domid_t domid) in HYPERVISOR_mmuext_op() argument
277 return _hypercall4(int, mmuext_op, op, count, success_count, domid); in HYPERVISOR_mmuext_op()
357 int count, int *success_count, domid_t domid) in MULTI_mmu_update() argument
363 mcl->args[3] = domid; in MULTI_mmu_update()
370 int *success_count, domid_t domid) in MULTI_mmuext_op() argument
376 mcl->args[3] = domid; in MULTI_mmuext_op()
/linux-6.14.4/arch/x86/pci/
Dxen.c79 map_irq.domid = DOMID_SELF; in xen_register_pirq()
275 domid_t domid; in xen_initdom_setup_msi_irqs() local
277 domid = ret = xen_find_device_domain_owner(dev); in xen_initdom_setup_msi_irqs()
281 domid = DOMID_SELF; in xen_initdom_setup_msi_irqs()
284 map_irq.domid = domid; in xen_initdom_setup_msi_irqs()
338 ret, domid); in xen_initdom_setup_msi_irqs()
345 domid); in xen_initdom_setup_msi_irqs()
/linux-6.14.4/drivers/net/xen-netback/
Dhash.c295 .source.domid = vif->domid, in xenvif_set_hash_key()
297 .dest.domid = DOMID_SELF, in xenvif_set_hash_key()
341 .source.domid = vif->domid, in xenvif_set_hash_mapping()
342 .dest.domid = DOMID_SELF, in xenvif_set_hash_mapping()
Drx.c212 op->source.domid = foreign->domid; in xenvif_rx_copy_add()
217 op->source.domid = DOMID_SELF; in xenvif_rx_copy_add()
222 op->dest.domid = queue->vif->domid; in xenvif_rx_copy_add()
/linux-6.14.4/include/uapi/xen/
Dgntdev.h42 __u32 domid; member
161 domid_t domid; member
227 * by the foreign domain @domid with flags @flags.
253 __u32 domid; member
293 __u32 domid; member
/linux-6.14.4/arch/x86/kernel/cpu/resctrl/
Dctrlmondata.c636 u32 resid, evtid, domid; in rdtgroup_mondata_show() local
650 domid = md.u.domid; in rdtgroup_mondata_show()
657 * the L3 cache id that was provided in the "domid" field of the in rdtgroup_mondata_show()
662 if (d->ci->id == domid) { in rdtgroup_mondata_show()
674 * the resource to find the domain with "domid". in rdtgroup_mondata_show()
676 hdr = rdt_find_domain(&r->mon_domains, domid, NULL); in rdtgroup_mondata_show()
/linux-6.14.4/drivers/iommu/amd/
Diommu.c1233 size_t size, u16 domid, in build_inv_iommu_pages() argument
1240 cmd->data[1] |= domid; in build_inv_iommu_pages()
1584 u16 domid = dev_data->gcr3_info.domid; in domain_flush_pages_v2() local
1587 domid, IOMMU_NO_PASID, true); in domain_flush_pages_v2()
1717 dev_data->gcr3_info.domid, pasid, true); in amd_iommu_dev_flush_pasid_pages()
1846 pdom_id_free(gcr3_info->domid); in free_gcr3_table()
1873 int domid; in setup_gcr3_table() local
1882 domid = pdom_id_alloc(); in setup_gcr3_table()
1883 if (domid <= 0) in setup_gcr3_table()
1885 gcr3_info->domid = domid; in setup_gcr3_table()
[all …]

123