| 
    
 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v3] xen/arm: p2m: Populate pages for GICv2 mapping in arch_domain_create()
 Hi Henry, On 17/10/2022 08:46, Henry Wang wrote: 
 p2m_set_allocation() wants to be called after 'p->domain' is set. So p2m_teardown_final() will not return early and leak memory (as Andrew pointed out). For simplicity I would move the code right at the end of the function. But if you want to keep it here then... ... this needs to be done first as well. rc = p2m_alloc_vmid(d); Note that if you move the code at the end. Then you will need to add: if ( rc ) return rc; after the call to p2m_alloc_table(); Other than that the code looks good to me. Cheers, -- Julien Grall 
 
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |