/xen-4.10.0-shim-comet/xen/drivers/passthrough/ |
A D | iommu.c | 140 struct domain_iommu *hd = dom_iommu(d); in iommu_domain_init() local 150 hd->platform_ops = iommu_get_ops(); in iommu_domain_init() 151 return hd->platform_ops->init(d); in iommu_domain_init() 210 return hd->platform_ops->hwdom_init(d); in iommu_hwdom_init() 218 hd->platform_ops->teardown(d); in iommu_teardown() 264 if ( !iommu_enabled || !hd->platform_ops ) in iommu_map_page() 287 if ( !iommu_enabled || !hd->platform_ops ) in iommu_unmap_page() 290 rc = hd->platform_ops->unmap_page(d, gfn); in iommu_unmap_page() 328 if ( !iommu_enabled || !hd->platform_ops || !hd->platform_ops->iotlb_flush ) in iommu_iotlb_flush() 351 if ( !iommu_enabled || !hd->platform_ops || !hd->platform_ops->iotlb_flush_all ) in iommu_iotlb_flush_all() [all …]
|
A D | device_tree.c | 30 struct domain_iommu *hd = dom_iommu(d); in iommu_assign_dt_device() local 32 if ( !iommu_enabled || !hd->platform_ops ) in iommu_assign_dt_device() 56 rc = hd->platform_ops->assign_device(d, 0, dt_to_dev(dev), 0); in iommu_assign_dt_device() 61 list_add(&dev->domain_list, &hd->dt_devices); in iommu_assign_dt_device() 72 const struct domain_iommu *hd = dom_iommu(d); in iommu_deassign_dt_device() local 75 if ( !iommu_enabled || !hd->platform_ops ) in iommu_deassign_dt_device() 83 rc = hd->platform_ops->reassign_device(d, NULL, 0, dt_to_dev(dev)); in iommu_deassign_dt_device() 119 const struct domain_iommu *hd = dom_iommu(d); in iommu_release_dt_devices() local 123 list_for_each_entry_safe(dev, _dev, &hd->dt_devices, domain_list) in iommu_release_dt_devices()
|
A D | pci.c | 1285 const struct domain_iommu *hd; in iommu_add_device() local 1294 hd = dom_iommu(pdev->domain); in iommu_add_device() 1295 if ( !iommu_enabled || !hd->platform_ops ) in iommu_add_device() 1316 const struct domain_iommu *hd; in iommu_enable_device() local 1323 hd = dom_iommu(pdev->domain); in iommu_enable_device() 1325 !hd->platform_ops->enable_device ) in iommu_enable_device() 1333 const struct domain_iommu *hd; in iommu_remove_device() local 1339 hd = dom_iommu(pdev->domain); in iommu_remove_device() 1340 if ( !iommu_enabled || !hd->platform_ops ) in iommu_remove_device() 1383 if ( !iommu_enabled || !hd->platform_ops ) in assign_device() [all …]
|
/xen-4.10.0-shim-comet/xen/drivers/passthrough/amd/ |
A D | iommu_map.c | 448 table = hd->arch.root_table; in iommu_pde_from_gfn() 449 level = hd->arch.paging_mode; in iommu_pde_from_gfn() 561 level = hd->arch.paging_mode; in update_paging_mode() 562 old_root = hd->arch.root_table; in update_paging_mode() 591 hd->arch.paging_mode = level; in update_paging_mode() 592 hd->arch.root_table = new_root; in update_paging_mode() 648 spin_lock(&hd->arch.mapping_lock); in amd_iommu_map_page() 650 rc = amd_iommu_alloc_root(hd); in amd_iommu_map_page() 719 spin_unlock(&hd->arch.mapping_lock); in amd_iommu_map_page() 733 spin_lock(&hd->arch.mapping_lock); in amd_iommu_unmap_page() [all …]
|
A D | pci_amd_iommu.c | 121 BUG_ON( !hd->arch.root_table || !hd->arch.paging_mode || in amd_iommu_setup_domain_device() 203 if ( !hd->arch.root_table ) in amd_iommu_alloc_root() 214 spin_lock(&hd->arch.mapping_lock); in allocate_domain_resources() 215 rc = amd_iommu_alloc_root(hd); in allocate_domain_resources() 216 spin_unlock(&hd->arch.mapping_lock); in allocate_domain_resources() 448 spin_lock(&hd->arch.mapping_lock); in deallocate_iommu_page_tables() 449 if ( hd->arch.root_table ) in deallocate_iommu_page_tables() 451 deallocate_next_page_table(hd->arch.root_table, hd->arch.paging_mode); in deallocate_iommu_page_tables() 452 hd->arch.root_table = NULL; in deallocate_iommu_page_tables() 594 if ( !hd->arch.root_table ) in amd_dump_p2m_table() [all …]
|
A D | iommu_guest.c | 887 struct domain_iommu *hd = dom_iommu(d); in guest_iommu_init() local 903 hd->arch.g_iommu = iommu; in guest_iommu_init()
|
/xen-4.10.0-shim-comet/xen/drivers/passthrough/x86/ |
A D | iommu.c | 44 const struct domain_iommu *hd = dom_iommu(d); in arch_iommu_populate_page_table() local 68 rc = hd->platform_ops->map_page(d, gfn, mfn, in arch_iommu_populate_page_table() 123 struct domain_iommu *hd = dom_iommu(d); in arch_iommu_domain_init() local 125 spin_lock_init(&hd->arch.mapping_lock); in arch_iommu_domain_init() 126 INIT_LIST_HEAD(&hd->arch.mapped_rmrrs); in arch_iommu_domain_init()
|
/xen-4.10.0-shim-comet/xen/drivers/passthrough/vtd/ |
A D | iommu.c | 265 if ( hd->arch.pgd_maddr == 0 ) in addr_to_dma_page_maddr() 655 spin_lock(&hd->arch.mapping_lock); in dma_pte_clear_one() 675 spin_unlock(&hd->arch.mapping_lock); in dma_pte_clear_one() 1398 if ( hd->arch.pgd_maddr == 0 ) in domain_context_mapping_one() 1757 spin_lock(&hd->arch.mapping_lock); in iommu_domain_teardown() 1758 iommu_free_pagetable(hd->arch.pgd_maddr, agaw_to_level(hd->arch.agaw)); in iommu_domain_teardown() 1759 hd->arch.pgd_maddr = 0; in iommu_domain_teardown() 1781 spin_lock(&hd->arch.mapping_lock); in intel_iommu_map_page() 2634 const struct domain_iommu *hd; in vtd_dump_p2m_table() local 2639 hd = dom_iommu(d); in vtd_dump_p2m_table() [all …]
|
/xen-4.10.0-shim-comet/docs/man/ |
A D | xen-vbd-interface.markdown.7 | 11 (sd*); IDE or AHCI (hd*). 13 For HVM guests, each whole-disk hd* and and sd* device is made 18 In hd* case with hdtype=ahci, disk will be AHCI via emulated 79 3 << 8 | disk << 6 | partition hd, disks 0..1, partitions 0..63 80 22 << 8 | (disk-2) << 6 | partition hd, disks 2..3, partitions 0..63 119 supply as few hd* devices as possible, and for the rest of the disks, 121 will map provided hd* devices to the corresponding /dev/xvd* (for
|
A D | xl-disk-configuration.pod.5 | 130 hd[x], xvd[x], sd[x] etc. Please refer to the above specification for
|
/xen-4.10.0-shim-comet/xen/include/asm-x86/hvm/svm/ |
A D | amd-iommu-proto.h | 59 int __must_check amd_iommu_alloc_root(struct domain_iommu *hd);
|
/xen-4.10.0-shim-comet/tools/ocaml/libs/xc/ |
A D | xenctrl.ml | 183 let last_domid l = (List.hd l).domid + 1 in
|
/xen-4.10.0-shim-comet/stubdom/grub.patches/ |
A D | 00cvs | 808 + sprintf (name, "/dev/i2o/hd%c", unit); 818 + /* This is for I2O - we have /dev/i2o/hd<logical drive><partition> */ 834 + fprintf (fp, "(hd%d)\t%s\n", num_hd, name);
|
/xen-4.10.0-shim-comet/tools/firmware/rombios/ |
A D | rombios.c | 9166 ;; check that the hd type is really 0x0f.
|