[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Policy: A release acks for the release manager's patches (was Re: [PATCH v5 2/2] xen/arm: p2m: Populate pages for GICv2 mapping in p2m_init())


  • To: George Dunlap <dunlapg@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 20 Oct 2022 15:12:44 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2FAcjDvisNRFrMpLqdDa6n58UN2VORG/iWxnUfHrfKM=; b=S38o8BlNaCtESBOb2Jni1wHqPpE0iHeB9rkVbSP0QUizRx055ieIvxOibkK36MCsZqQ20yYEStencDWla57zZwuRmpMkXvz5nyuaefZFNorLil87aFVXxUF9b/FB7IL25Its8OzNw6wFiAC0pCBxFHF4eePsnzHg6089mVSbgdRZCwsXJbpi/rgSqWBcH2tqxF+utOL6k5tLQeYxCxlmfpE5TLA6gZ9bxZrsd10gba4+eUA4IU1R06Fu1VjCOb2o786TDWN2P61yongiry4zKigtzYwYTbzya/3tJl0EJaj2WNPqCzhdN9dx3ndqiXrdRVicUUsKgSP6rZvFdfdsQQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HB0GF2tEcsirTk7wrbmm9ynoLUfe6wq/fPP6KtLa6JRiDdeBLX/0UgiV2hQVdsFIb8waq59STT5v06nzgd7Rv7WFJYb/XTWXMFM+PFEZ7bvNavdHp4bpEqGJ9Xs+VbR817x7+u3o+2PFqX99pvSydqG+/1GZD3ubRa7kq0X8blxSi9FelTbbx6vDTmMemS7yAUkpkGL6VkdQN9zjVIKnd1zGc2MmTkZqGfRPloPw4Dgkkg3WIcOFTeAbbHuSdcloPoBYIVIbWEHPE4QALhmS+0TIR0JBr0AwQfdgz4grE/TkwAWfVIQ+AsqUI2jK00L6csm36h8XDCH6/zyrKsUaEQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Henry Wang <Henry.Wang@xxxxxxx>
  • Delivery-date: Thu, 20 Oct 2022 13:12:53 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 19.10.2022 17:28, George Dunlap wrote:
> On Tue, Oct 18, 2022 at 3:24 PM Henry Wang <Henry.Wang@xxxxxxx> wrote:
> 
>> Hardware using GICv2 needs to create a P2M mapping of 8KB GICv2 area
>> when the domain is created. Considering the worst case of page tables
>> which requires 6 P2M pages as the two pages will be consecutive but not
>> necessarily in the same L3 page table and keep a buffer, populate 16
>> pages as the default value to the P2M pages pool in p2m_init() at the
>> domain creation stage to satisfy the GICv2 requirement. For GICv3, the
>> above-mentioned P2M mapping is not necessary, but since the allocated
>> 16 pages here would not be lost, hence populate these pages
>> unconditionally.
>>
>> With the default 16 P2M pages populated, there would be a case that
>> failures would happen in the domain creation with P2M pages already in
>> use. To properly free the P2M for this case, firstly support the
>> optionally preemption of p2m_teardown(), then call p2m_teardown() and
>> p2m_set_allocation(d, 0, NULL) non-preemptively in p2m_final_teardown().
>> As non-preemptive p2m_teardown() should only return 0, use a
>> BUG_ON to confirm that.
>>
>> Since p2m_final_teardown() is called either after
>> domain_relinquish_resources() where relinquish_p2m_mapping() has been
>> called, or from failure path of domain_create()/arch_domain_create()
>> where mappings that require p2m_put_l3_page() should never be created,
>> relinquish_p2m_mapping() is not added in p2m_final_teardown(), add
>> in-code comments to refer this.
>>
>> Fixes: cbea5a1149ca ("xen/arm: Allocate and free P2M pages from the P2M
>> pool")
>> Suggested-by: Julien Grall <jgrall@xxxxxxxxxx>
>> Signed-off-by: Henry Wang <Henry.Wang@xxxxxxx>
>>
> 
> 
> Henry brought this patch to my attention because it needs a release ack,
> but it doesn't seem proper for Henry to be the one to release-ack his own
> patches. :-)
> 
> I propose that a suitable rule would be:
> 
> "If the release manager themselves have submitted a patch which needs a
> release ack, then the patch needs a release ack from one of the Committers
> who is not involved in the patch."

Like Andrew I think a self-release-ack, as was common practice in the past,
is quite fine. These are entirely different hats that the person would be
wearing.

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.