enable/disable dom0_11_mapping from command-line and default to enabled
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
@@ -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
Quoted 1 line · Karim Raslan
Signed-off-by Karim Raslan <[email protected]>
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@@ -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
Quoted 7 lines · Stefano Stabellini
Quoted 1 line · Karim Raslan
Signed-off-by Karim Raslan <[email protected]>Thanks!
Given thatdom0_11_mappingis an int, the patch is OK. However it might be better to turndom0_11_mappinginto abool_tand useboolean_paraminstead.
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
Quoted 9 lines · Julien Grall
Quoted 7 lines · Stefano Stabellini
Quoted 1 line · Karim Raslan
Signed-off-by Karim Raslan <[email protected]>Thanks!
Given thatdom0_11_mappingis an int, the patch is OK. However it might be better to turndom0_11_mappinginto abool_tand useboolean_paraminstead.
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.
Quoted 13 lines · Stefano Stabellini
Quoted 12 lines · Julien Grall
Quoted 7 lines · Stefano Stabellini
Quoted 1 line · Karim Raslan
Signed-off-by Karim Raslan <[email protected]>Thanks!
Given thatdom0_11_mappingis an int, the patch is OK. However it might be better to turndom0_11_mappinginto abool_tand useboolean_paraminstead.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.