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

RE: [PATCH for-4.17] xen/arm: Support properly __ro_after_init on Arm


  • To: Julien Grall <julien@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Henry Wang <Henry.Wang@xxxxxxx>
  • Date: Wed, 17 Aug 2022 04:45:52 +0000
  • Accept-language: zh-CN, en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=2; 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=y0SKljOjkV1PG8RX7G0fJc3bxX/aGSk5D6n4iZBebzA=; b=WPTvdk6XM/E/NYBe29EIxT4UPHj425bhbzii9T1IhkrPXU6gEKeDuKDd835wMZT+djdFXxLidd0m94LWGHZdMq3he3LCMw5c8wekJOO2Uipe1HMB3sh6JfExwTZamkQHyr4EeTK/bIWVL0bjBt0uT47iD6whygujzTftiiWQRHIMZSJjbn5O8mVQqWSpPevV9zP117CGYhi3fVDCgilBBE2Y69vh/fQYGZOpyfZT0j3tNCeq5UHMQqHN3bgTzLAlqGeF0R6RVfBYqvF7r+XQFveYjWaT10UtNfmeutCXDbcl1FL2DnxfsX1znSXqqTKy5G4IDow463TDuKjFmOUELQ==
  • 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=y0SKljOjkV1PG8RX7G0fJc3bxX/aGSk5D6n4iZBebzA=; b=J0uYu70NOBzeqHOVbogDP83sPP+N9CjRoYjiU3YV2JzYKw9H19Z5aoAsAFIWPTEEWf9emc5XFh73Fyb99IJxmxJoN9ov9r7QkOLZV97Zzy1Z2ZgAaimL25+CTT5ndo84ITLP2kU2vWjFBpUjk4WJQoJJ0AxzXFNDrb12EMwcBDeMXXyIRaBV5tqn925g6fcxfDTea0VpbK9uj96M/CrFpekVkvR0JnW5FlvpDev+0dtDsprB+AUPnNAOi/iJmcsZrxKGhBPhVORv0/ow+f8crE2wRTl//cnUZcU5llb4B9fGTqU+ZX0pMsEyZQJzNjHcHN66y1jcCPU9Yc53UFXFFg==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=Q/PLjecc6sGpRYFUgCnf9rr1VdxS/6D1Tg7OaPshIuJWaHFibz3tIMrhlRBqALQ1XDrffP4DP7i9ZVVzoWRY5agqnxNaPKLdHPDaxuDDMEbT+P3KRgTvifb8sL9CA+Vmhc0CSUc22wuJU9+DEpDNiPTPhflvtKeLCzZT93aDupBuCZZYzozscC29pQ7+YMptiru8TPRmk5r6nZEpsVXrI3Kj+lJyJWPfbuxwFRb+vxN5VidRsWhZDlHxGyiCQjHfx0G45o9GdWsJDhYieziyYSCGCdtG9P0VqvB6Zcy9fZD6Vbaxcz7ii1L3RyZ+FtanOuJC1ratrdEkJFb9+0s/7A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gzCA0I+bWlwWDEey3etcDggE1CvtHviV97ADNfk3w/ZCMvDApzx4uCB4RWnuzYmmmfWSVhPpxtP+xBkilBwG5N1wSPRXq2ZRtD0er4FCIqC8y8ur0dxVze771Rf6tNr27bwtILycRCklWiN+xMZIukz0uFmsUV8ri3s1tFvkpkNQXO4ll4VR4us3ZSitlVGT8IbXMT5qAyoHOZz46Q+8DVeHa16CUyaRV7tTuldo6fxce1MONd5z4KhX0aSyxF44Ld4X9oYC1QftL/c+6+25sj6n9ZDL0v7HIf5ycvDWpMcn+FbqAR8obxV9WMYfsC0VLGMF1c26ZC9rwHcUXRwXZg==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Julien Grall <jgrall@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Wed, 17 Aug 2022 04:46:14 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHYsaJ0EDYKZbrdhku3pAc3qkaNP62yhPIA
  • Thread-topic: [PATCH for-4.17] xen/arm: Support properly __ro_after_init on Arm

Hi Julien,

> -----Original Message-----
> Subject: [PATCH for-4.17] xen/arm: Support properly __ro_after_init on Arm
> 
> From: Julien Grall <jgrall@xxxxxxxxxx>
> 
> __ro_after_init was introduced recently to prevent modifying
> some variables after init.
> 
> At the moment, on Arm, the variables will still be accessible
> because the region permission is not updated.
> 
> Address that, but moving the sections .data.ro_after_init
> out of .data and then mark the region read-only once we finish
> to boot.
> 
> Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx>

Tested-by: Henry Wang <Henry.Wang@xxxxxxx>

Kind regards,
Henry



 


Rackspace

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