Home
last modified time | relevance | path

Searched refs:pt_id (Results 1 – 19 of 19) sorted by relevance

/linux/drivers/hv/
H A Dmshv_root_main.c152 static bool mshv_passthru_hvcall_allowed(u16 code, u64 pt_id) in mshv_passthru_hvcall_allowed() argument
158 if (pt_id == HV_PARTITION_ID_SELF) { in mshv_passthru_hvcall_allowed()
183 u64 pt_id = partition ? partition->pt_id : HV_PARTITION_ID_SELF; in mshv_ioctl_passthru_hvcall() local
195 if (!mshv_passthru_hvcall_allowed(args.code, pt_id)) in mshv_ioctl_passthru_hvcall()
229 *(u64 *)input_pg = pt_id; in mshv_ioctl_passthru_hvcall()
257 ret = hv_deposit_memory(pt_id, status); in mshv_ioctl_passthru_hvcall()
330 ret = mshv_set_vp_registers(vp->vp_index, vp->vp_partition->pt_id, in mshv_suspend_vp()
337 ret = mshv_get_vp_registers(vp->vp_index, vp->vp_partition->pt_id, in mshv_suspend_vp()
370 ret = mshv_set_vp_registers(vp->vp_index, vp->vp_partition->pt_id, in mshv_run_vp_with_hyp_scheduler()
422 input->partition_id = vp->vp_partition->pt_id; in mshv_vp_dispatch()
[all …]
H A Dmshv_regions.c206 return hv_call_modify_spa_host_access(region->partition->pt_id, in mshv_region_chunk_share()
231 return hv_call_modify_spa_host_access(region->partition->pt_id, in mshv_region_chunk_unshare()
254 return hv_call_map_gpa_pages(region->partition->pt_id, in mshv_region_chunk_remap()
338 return hv_call_unmap_gpa_pages(region->partition->pt_id, in mshv_region_chunk_unmap()
494 region->partition->pt_id, region->start_uaddr, in mshv_region_handle_gfn_fault()
H A Dmshv_eventfd.c94 hv_call_clear_virtual_interrupt(partition->pt_id); in mshv_irqfd_resampler_ack()
219 hv_call_assert_virtual_interrupt(irqfd->irqfd_partn->pt_id, in mshv_assert_irq_slow()
733 ret = mshv_register_doorbell(pt->pt_id, ioeventfd_mmio_write, in mshv_assign_ioeventfd()
785 ioeventfd_release(p, pt->pt_id); in mshv_deassign_ioeventfd()
835 ioeventfd_release(p, pt->pt_id); in mshv_eventfd_release()
H A Dmshv_root.h65 dev_##level(__pt->pt_module_dev, vp_fmt(fmt), __pt->pt_id, \
107 u64 pt_id; member
152 dev_##level(__pt->pt_module_dev, pt_fmt(fmt), __pt->pt_id, \
H A Dhv_common.c269 u64 status, pt_id; in hv_get_partition_id() local
274 pt_id = output->partition_id; in hv_get_partition_id()
278 hv_current_partition_id = pt_id; in hv_get_partition_id()
H A Dmshv_debugfs.c631 return vp_debugfs_create(p->pt_id, vp->vp_index, in mshv_debugfs_vp_create()
652 err = partition_debugfs_create(partition->pt_id, in mshv_debugfs_partition_create()
667 partition_debugfs_remove(partition->pt_id, in mshv_debugfs_partition_remove()
H A Dmshv_synic.c281 if (idx == 0 || partition->pt_id != partition_id) { in handle_pair_message()
/linux/drivers/vfio/
H A Diommufd.c151 int vfio_iommufd_physical_attach_ioas(struct vfio_device *vdev, u32 *pt_id) in vfio_iommufd_physical_attach_ioas() argument
162 IOMMU_NO_PASID, pt_id); in vfio_iommufd_physical_attach_ioas()
165 IOMMU_NO_PASID, pt_id); in vfio_iommufd_physical_attach_ioas()
186 u32 pasid, u32 *pt_id) in vfio_iommufd_physical_pasid_attach_ioas() argument
197 pasid, pt_id); in vfio_iommufd_physical_pasid_attach_ioas()
203 rc = iommufd_device_attach(vdev->iommufd_device, pasid, pt_id); in vfio_iommufd_physical_pasid_attach_ioas()
275 int vfio_iommufd_emulated_attach_ioas(struct vfio_device *vdev, u32 *pt_id) in vfio_iommufd_emulated_attach_ioas() argument
282 rc = iommufd_access_replace(vdev->iommufd_access, *pt_id); in vfio_iommufd_emulated_attach_ioas()
284 rc = iommufd_access_attach(vdev->iommufd_access, *pt_id); in vfio_iommufd_emulated_attach_ioas()
H A Ddevice_cdev.c202 minsz = offsetofend(struct vfio_device_attach_iommufd_pt, pt_id); in vfio_df_ioctl_attach_pt()
232 &attach.pt_id); in vfio_df_ioctl_attach_pt()
234 ret = device->ops->attach_ioas(device, &attach.pt_id); in vfio_df_ioctl_attach_pt()
238 if (copy_to_user(&arg->pt_id, &attach.pt_id, sizeof(attach.pt_id))) { in vfio_df_ioctl_attach_pt()
/linux/tools/testing/selftests/iommu/
H A Diommufd_utils.h162 static int _test_cmd_mock_domain_replace(int fd, __u32 stdev_id, __u32 pt_id, in _test_cmd_mock_domain_replace() argument
170 .pt_id = pt_id, in _test_cmd_mock_domain_replace()
179 *hwpt_id = cmd.mock_domain_replace.pt_id; in _test_cmd_mock_domain_replace()
183 #define test_cmd_mock_domain_replace(stdev_id, pt_id) \ argument
184 ASSERT_EQ(0, _test_cmd_mock_domain_replace(self->fd, stdev_id, pt_id, \
186 #define test_err_mock_domain_replace(_errno, stdev_id, pt_id) \ argument
188 pt_id, NULL))
190 static int _test_cmd_hwpt_alloc(int fd, __u32 device_id, __u32 pt_id, __u32 ft_id, in _test_cmd_hwpt_alloc() argument
198 .pt_id = pt_id, in _test_cmd_hwpt_alloc()
214 #define test_cmd_hwpt_alloc(device_id, pt_id, flags, hwpt_id) \ argument
[all …]
/linux/include/linux/
H A Dvfio.h123 int (*attach_ioas)(struct vfio_device *vdev, u32 *pt_id);
126 u32 *pt_id);
154 int vfio_iommufd_physical_attach_ioas(struct vfio_device *vdev, u32 *pt_id);
157 u32 pasid, u32 *pt_id);
163 int vfio_iommufd_emulated_attach_ioas(struct vfio_device *vdev, u32 *pt_id);
184 ((int (*)(struct vfio_device *vdev, u32 *pt_id)) NULL)
188 ((int (*)(struct vfio_device *vdev, u32 pasid, u32 *pt_id)) NULL)
197 ((int (*)(struct vfio_device *vdev, u32 *pt_id)) NULL)
/linux/tools/testing/selftests/vfio/
H A Dvfio_iommufd_setup_test.c44 static int vfio_device_attach_iommufd_pt_ioctl(int cdev_fd, u32 pt_id) in vfio_device_attach_iommufd_pt_ioctl() argument
48 .pt_id = pt_id, in vfio_device_attach_iommufd_pt_ioctl()
/linux/drivers/iommu/iommufd/
H A Diommufd_test.h106 __u32 pt_id; member
172 __u32 pt_id; member
177 __u32 pt_id; member
H A Ddevice.c864 struct iommufd_ioas *ioas, u32 *pt_id, in iommufd_device_auto_get_domain() argument
905 *pt_id = hwpt->obj.id; in iommufd_device_auto_get_domain()
927 *pt_id = hwpt->obj.id; in iommufd_device_auto_get_domain()
942 u32 *pt_id, attach_fn do_attach) in iommufd_device_change_pt() argument
947 pt_obj = iommufd_get_object(idev->ictx, *pt_id, IOMMUFD_OBJ_ANY); in iommufd_device_change_pt()
967 pt_id, do_attach); in iommufd_device_change_pt()
1003 u32 *pt_id) in iommufd_device_attach() argument
1007 rc = iommufd_device_change_pt(idev, pasid, pt_id, in iommufd_device_attach()
1039 u32 *pt_id) in iommufd_device_replace() argument
1041 return iommufd_device_change_pt(idev, pasid, pt_id, in iommufd_device_replace()
H A Dselftest.c1082 u32 pt_id = cmd->id; in iommufd_test_mock_domain() local
1111 rc = iommufd_device_attach(idev, IOMMU_NO_PASID, &pt_id); in iommufd_test_mock_domain()
1116 cmd->mock_domain.out_hwpt_id = pt_id; in iommufd_test_mock_domain()
1160 unsigned int device_id, u32 pt_id, in iommufd_test_mock_domain_replace() argument
1170 rc = iommufd_device_replace(sobj->idev.idev, IOMMU_NO_PASID, &pt_id); in iommufd_test_mock_domain_replace()
1174 cmd->mock_domain_replace.pt_id = pt_id; in iommufd_test_mock_domain_replace()
1896 &cmd->pasid_attach.pt_id); in iommufd_test_pasid_attach()
1920 &cmd->pasid_attach.pt_id); in iommufd_test_pasid_replace()
2106 ucmd, cmd->id, cmd->mock_domain_replace.pt_id, cmd); in iommufd_test()
/linux/tools/testing/selftests/vfio/lib/
H A Dvfio_pci_device.c333 static void vfio_device_attach_iommufd_pt(int device_fd, u32 pt_id) in vfio_device_attach_iommufd_pt() argument
337 .pt_id = pt_id, in vfio_device_attach_iommufd_pt()
/linux/include/uapi/linux/
H A Diommufd.h496 * @pt_id: The IOAS or HWPT or vIOMMU to connect this HWPT to
511 * IOAS via the @pt_id. The @data_type for this allocation must be set to
516 * parent HWPT) or a parent HWPT via @pt_id, in which the parent HWPT must be
517 * allocated previously via the same ioctl from a given IOAS (@pt_id). In this
520 * via @dev_id and the vIOMMU via @pt_id must be associated to the same IOMMU member
531 __u32 pt_id;
H A Dvfio.h947 * @pt_id: Input the target id which can represent an ioas or a hwpt
964 * hwpt corresponding to the given pt_id.
976 __u32 pt_id;
972 __u32 pt_id; global() member
/linux/Documentation/userspace-api/
H A Diommufd.rst222 uAPI, provided an ioas_id via @pt_id to associate the new HWPT_PAGING to
230 nesting parent HWPT_PAGING via @pt_id to associate the new HWPT_NESTED object
245 of the object passed in via the @pt_id field of struct iommufd_hwpt_alloc.