Skip to contentSkip to conversation

enable/disable dom0_11_mapping from command-line and default to enabled

PATCH In review Karim Raslan 4 participants 5 messages Jan 5, 2014 – Jan 6, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 enable/disable dom0_11_mapping from command-line and default to enabled

---
 xen/arch/arm/domain_build.c |    1 +
 1 file changed, 1 insertion(+)
xen/arch/arm/domain_build.c +1 -0
index faff88e..2831ad0 100644
@@ -23,6 +23,7 @@ static unsigned int __initdata opt_dom0_max_vcpus;
 integer_param("dom0_max_vcpus", opt_dom0_max_vcpus);
 
 static int dom0_11_mapping = 1;
+integer_param("dom0_11_mapping", dom0_11_mapping);
 
 #define DOM0_MEM_DEFAULT 0x8000000 /* 128 MiB */
 static u64 __initdata dom0_mem = DOM0_MEM_DEFAULT;
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 1 line · Karim Raslan

Thanks!
Given that dom0_11_mapping is an int, the patch is OK. However it might be better to turn dom0_11_mapping into a bool_t and use boolean_param instead.

Quoted 24 lines
 xen/arch/arm/domain_build.c |    1 +
 1 file changed, 1 insertion(+)
xen/arch/arm/domain_build.c +1 -0
index faff88e..2831ad0 100644
@@ -23,6 +23,7 @@ static unsigned int __initdata opt_dom0_max_vcpus;
 integer_param("dom0_max_vcpus", opt_dom0_max_vcpus);
 
 static int dom0_11_mapping = 1;
+integer_param("dom0_11_mapping", dom0_11_mapping);
 
 #define DOM0_MEM_DEFAULT 0x8000000 /* 128 MiB */
 static u64 __initdata dom0_mem = DOM0_MEM_DEFAULT;
Signature · 7 lines
1.7.9.5


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#2 lore raw
Quoted 7 lines · Stefano Stabellini
Quoted 1 line · Karim Raslan

Thanks!
Given that dom0_11_mapping is an int, the patch is OK. However it might be better to turn dom0_11_mapping into a bool_t and use boolean_param instead.

After reading the thread "Master not working on AllWinner A20", I still don't see why this patch is useful.

Unless if the platform has an IOMMU, the 1:1 mapping for the memory SHOULD be enabled. Otherwise DMA-capable won't work.

See my answer on your mail (thread "Master not working on AllWinner for A20") for a proper fix.

Signature · 1 line
Julien Grall
#3 lore raw
Quoted 9 lines · Julien Grall
Quoted 7 lines · Stefano Stabellini
Quoted 1 line · Karim Raslan

Thanks!
Given that dom0_11_mapping is an int, the patch is OK. However it might be better to turn dom0_11_mapping into a bool_t and use boolean_param instead.

Quoted 8 lines

After reading the thread "Master not working on AllWinner A20", I still don't see why this patch is useful.

Unless if the platform has an IOMMU, the 1:1 mapping for the memory SHOULD be enabled. Otherwise DMA-capable won't work.

See my answer on your mail (thread "Master not working on AllWinner for A20") for a proper fix.

It is only useful for debugging and development. It should not be used in production.

#4 lore raw
Quoted 13 lines · Stefano Stabellini
Quoted 12 lines · Julien Grall
Quoted 7 lines · Stefano Stabellini
Quoted 1 line · Karim Raslan

Thanks!
Given that dom0_11_mapping is an int, the patch is OK. However it might be better to turn dom0_11_mapping into a bool_t and use boolean_param instead.

After reading the thread "Master not working on AllWinner A20", I still don't see why this patch is useful.

Quoted 8 lines
Quoted 5 lines

Unless if the platform has an IOMMU, the 1:1 mapping for the memory SHOULD be enabled. Otherwise DMA-capable won't work.

See my answer on your mail (thread "Master not working on AllWinner for A20") for a proper fix.

It is only useful for debugging and development. It should not be used in production.

Assuming we are talking about the dom0_11_mapping command line parameter then for debugging and development the constant in the code can simply be changed, then there is no danger of an end user thinking it can be useful.

That's essentially why I dropped the option from my initial series which added the dom0_11_mapping variable.

Ian.