 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] xen/arm: Fix dom0 boot following c/s 580c45869
 Hi Andrew, On 31/08/18 19:01, Andrew Cooper wrote: c/s 580c45869 "Call arch_domain_create() as early as possible in domain_create()" overlooked the fact that ARM uses is_hardware_domain() in at least two places during arch_domain_create(). The bug manifests as: (XEN) Freed 292kB init memory. (XEN) traps.c:2017:d0v0 HSR=0x938c0007 pc=0xc0639d08 gva=0xe0800004 gpa=0x00000010481004 when dom0 tries to use the vuart. Judging by other uses of is_hardware_domain(), I expect the x86 PVH dom0 boot is similarly broken. Reposition the code which sets up hardware_domain so that the is_hardware_domain() predicate works correctly all the way through domain creation. While moving it, leave a related comment explaining the positioning of the is_priv assignment, which in hindsight should have been part of c/s ef765ec98 when exactly the same problem was discovered for the is_control_domain() predicate. Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Reviewed-by: Julien Grall <julien.grall@xxxxxxx> Tested-by: Julien Grall <julien.grall@xxxxxxx> I will commit it now. Cheers, 
 -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |