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

Re: [PATCH 8/9] xen/arm: Allow the user to build Xen with USBAN


  • To: Julien Grall <julien@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Mon, 26 Jun 2023 13:56:34 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=xen.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); 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=e8clPIsIJDfgxgDxyUqxHnCDuPH9LTf+Jzd0sj2FwRw=; b=CJzHWXgSRkvGWIOqNq3bing4kVTkMmGi2NY8H2VJ4EjFtcaT0RPiQVVPFfMlf90B4UE08SLP//QCuhuUU4dqAG1ALbzj6vswiU+MeNxoRH5L9zxMfolYu5gE4gPFKjZcQBM2ABpCDfOQiCb/FhhE3ucXml/OPP0ln+RR/h8Sc/pNr02Z3LjYkd7ZvX9Fg8SO2O+raZXd8kWpkBfj0j/9z7QRM5lsiP77bgrRuct6iPF1BqrfiXyLfDI2OXIvIsEUsy5EbsZsYRyRWFPn8O151JYbtZMDDM0XahgAHNnoQuVQTfOp9BA+MkUS6bbORJjXHWqnJTn2isGfAXekV/iupQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C6KBU1dYYbIECh+c2rW+J2r2ojws3o8upt6lgEakd0N5tS7LNIuRZL3vH1/OUXXSvQEv8oSMoXMTNpBMCu0vtF9g0zjlGKCNuGbJCwsuCTzNowL71v380FOjBlsMtB31W+38ByPEMbrPkNq4lH19ULLK7OwrBeDc+csf9Bw9ddXZWmmGSLVoto/MCqKWtJXX+MotmDPfVItN3w+PB5MeHQm08Tpx9/lGDQQCMMycr07+N8/xqAz5BhW1m4MJMMeoMg+8Xuf+yeomtDfGKDZbl6RBnpanD3DxtxpVYArRW2MnQ99ur7AyHJFQWc/cGsBkbiHXJf1Z9d8jFND04f3kew==
  • Cc: <Luca.Fancellu@xxxxxxx>, <Henry.Wang@xxxxxxx>, Julien Grall <jgrall@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Mon, 26 Jun 2023 11:56:57 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 25/06/2023 22:49, Julien Grall wrote:
> 
> 
> From: Julien Grall <jgrall@xxxxxxxxxx>
> 
> UBSAN has been enabled a few years ago on x86 but was never
> enabled on Arm because the final binary is bigger than 2MB (
> the maximum we can currently handled).
> 
> With the recent rework, it is now possible to grow Xen over 2MB.
> So there is no more roadblock to enable Xen other than increasing
> the reserved area.
> 
> On my setup, for arm32, the final binaray was very close to 4MB.
> Furthermore, one may want to enable USBAN and GCOV which would put
> the binary well-over 4MB (both features require for some space).
> Therefore, increase the size to 8MB which should us some margin.
> 
> Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx>
> 
> ----
> 
> The drawback with this approach is that we are adding 6 new
> page-table (3 for boot and 3 for runtime) that are statically
> allocated. So the final Xen binary will be 24KB bigger when
> neither UBSAN nor GCOV.
> 
> If this is not considered acceptable, then we could make the
> size of configurable in the Kconfig and decide it based on the
> features enabled.
Both of these features are enabled only in a debug build of Xen, so
another option would be to increase Xen size only for a debug build.

~Michal



 


Rackspace

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