xen/vtd: cleanup some comments
PATCH 1/1 xen/vtd: cleanup some comments
In some cases Dom0 and hardware domain are not one same domain.
--- xen/drivers/passthrough/vtd/iommu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
xen/drivers/passthrough/vtd/iommu.c +3 -3
@@ -1248,7 +1248,7 @@ static void __hwdom_init intel_iommu_hwdom_init(struct domain *d)if ( !iommu_passthrough && !need_iommu (d) ) { -/* Set up 1:1 page table for dom0 */ +/* Set up 1:1 page table for hardware domain */ vtd_set_hwdom_mapping (d); }
@@ -1696,7 +1696,7 @@ static int intel_iommu_map_page(if (iommu_use_hap_pt (d) )return 0 ; -/* do nothing if dom0 and iommu supports pass thru */ +/* do nothing if hardware domain and iommu supports pass thru */ if ( iommu_passthrough &&is_hardware_domain (d) )return 0 ;
@@ -1740,7 +1740,7 @@ static int intel_iommu_map_page(static int intel_iommu_unmap_page (struct domain *d,unsigned long gfn) { -/* Do nothing if dom0 and iommu supports pass thru. */ +/* Do nothing if hardware domain and iommu supports pass thru. */ if ( iommu_passthrough &&is_hardware_domain (d) )return 0 ;
Signature · 1 line
1.9.1
Quoted 13 lines
Quoted 1 line
Quoted 1 line · On 24.10.14 at 04:50, <[email protected]> wrote:
xen/drivers/passthrough/vtd/iommu.c +1
-1@@ -1248,7 +1248,7 @@ static void __hwdom_init intel_iommu_hwdom_init(struct domain *d)if ( !iommu_passthrough && !need_iommu (d) ) { -/* Set up 1:1 page table for dom0 */ +/* Set up 1:1 page table for hardware domain */ vtd_set_hwdom_mapping (d); }
xen/drivers/passthrough/vtd/iommu.c static int intel_iommu_map_page( · line 1699
Quoted 5 lines
xen/drivers/passthrough/vtd/iommu.c +1
-1@@ -1696,7 +1696,7 @@ static int intel_iommu_map_page(if (iommu_use_hap_pt (d) )return 0 ; -/* do nothing if dom0 and iommu supports pass thru */ +/* do nothing if hardware domain and iommu supports pass thru */
If you clean up comments, please make them match ./CODING_STYLE.
Jan
Quoted 12 lines · Jan Beulich
Quoted 12 lines
Quoted 1 line
Quoted 1 line · On 24.10.14 at 04:50, <[email protected]> wrote:
xen/drivers/passthrough/vtd/iommu.c +1
-1@@ -1248,7 +1248,7 @@ static void __hwdom_init intel_iommu_hwdom_init(struct domain *d)if ( !iommu_passthrough && !need_iommu (d) ) { -/* Set up 1:1 page table for dom0 */ +/* Set up 1:1 page table for hardware domain */ vtd_set_hwdom_mapping (d); }
Quoted 8 lines
xen/drivers/passthrough/vtd/iommu.c static int intel_iommu_map_page( · line 1699
Quoted 6 lines
xen/drivers/passthrough/vtd/iommu.c +1
-1@@ -1696,7 +1696,7 @@ static int intel_iommu_map_page(if (iommu_use_hap_pt (d) )return 0 ; -/* do nothing if dom0 and iommu supports pass thru */ +/* do nothing if hardware domain and iommu supports pass thru */ If you clean up comments, please make them match ./CODING_STYLE.
Sorry, could you say this explicitly?
From my point of view, this is just one line and this line is already less than 80 characters in length. Or just add a period at the end of the sentence?
Thanks
Tiejun
Quoted 24 lines
Quoted 1 line
Quoted 1 line · On 27.10.14 at 02:33, <[email protected]> wrote:
Quoted 4 lines · Jan Beulich
xen/drivers/passthrough/vtd/iommu.c static void __hwdom_init intel_iommu_hwdom_init(struct
Quoted 4 lines
Quoted 1 line
Quoted 1 line · On 24.10.14 at 04:50, <[email protected]> wrote:
xen/drivers/passthrough/vtd/iommu.c +0
-0@@ -1248,7 +1248,7 @@ static void __hwdom_init intel_iommu_hwdom_init(structdomain *d)
Quoted 8 lines
Quoted 8 lines
xen/drivers/passthrough/vtd/iommu.c +1
-1if ( !iommu_passthrough && !need_iommu (d) ) { -/* Set up 1:1 page table for dom0 */ +/* Set up 1:1 page table for hardware domain */ vtd_set_hwdom_mapping (d); }Quoted 8 lines
xen/drivers/passthrough/vtd/iommu.c static int intel_iommu_map_page( · line 1699
Quoted 6 lines
xen/drivers/passthrough/vtd/iommu.c +1
-1@@ -1696,7 +1696,7 @@ static int intel_iommu_map_page(if (iommu_use_hap_pt (d) )return 0 ; -/* do nothing if dom0 and iommu supports pass thru */ +/* do nothing if hardware domain and iommu supports pass thru */ If you clean up comments, please make them match ./CODING_STYLE.
Quoted 5 lines
Sorry, could you say this explicitly?
From my point of view, this is just one line and this line is already
less than 80 characters in length. Or just add a period at the end of the sentence?
Right (plus, in the second quoted case, upper case the first character).
Jan