| /linux/drivers/hv/ |
| H A D | mshv_root_main.c | 152 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 D | mshv_regions.c | 206 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 D | mshv_eventfd.c | 94 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() 737 trace_mshv_assign_ioeventfd(pt->pt_id, p->iovntfd_addr, in mshv_assign_ioeventfd() 791 trace_mshv_deassign_ioeventfd(pt->pt_id, p->iovntfd_addr, in mshv_deassign_ioeventfd() 799 ioeventfd_release(p, pt->pt_id); in mshv_deassign_ioeventfd() 849 ioeventfd_release(p, pt->pt_id); in mshv_eventfd_release()
|
| H A D | mshv_root.h | 66 dev_##level(__pt->pt_module_dev, vp_fmt(fmt), __pt->pt_id, \ 108 u64 pt_id; member 153 dev_##level(__pt->pt_module_dev, pt_fmt(fmt), __pt->pt_id, \
|
| H A D | hv_common.c | 269 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 D | mshv_debugfs.c | 631 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 D | mshv_irq.c | 75 trace_mshv_update_routing_table(partition->pt_id, in mshv_update_routing_table()
|
| H A D | mshv_synic.c | 280 if (idx == 0 || partition->pt_id != partition_id) { in handle_pair_message()
|
| /linux/drivers/vfio/ |
| H A D | iommufd.c | 151 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()
|
| /linux/tools/testing/selftests/iommu/ |
| H A D | iommufd_utils.h | 162 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/tools/testing/selftests/vfio/ |
| H A D | vfio_iommufd_setup_test.c | 44 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/tools/testing/selftests/vfio/lib/ |
| H A D | vfio_pci_device.c | 335 static void vfio_device_attach_iommufd_pt(int device_fd, u32 pt_id) in vfio_device_attach_iommufd_pt() 339 .pt_id = pt_id, in vfio_device_attach_iommufd_pt() 333 vfio_device_attach_iommufd_pt(int device_fd,u32 pt_id) vfio_device_attach_iommufd_pt() argument
|
| /linux/Documentation/userspace-api/ |
| H A D | iommufd.rst | 222 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.
|