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

Re: [PATCH v2] xen/arm: p2m: fix pa_range_info for 52-bit pa range


  • To: Xenia Ragiadakou <burzalodowa@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Wed, 19 Oct 2022 17:01:22 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=gmail.com 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=QLXR1ru8/yNLeV/Q5w+0zVenBH3nC9OpKEyhUqLgW2o=; b=ezs839riop1lPlVRpTi3o3YthLKLKs3lc45obxdybmDYv2igSqB2HqGC5NY3sivRA3mYsLgbd58lCOgjHXBb/gtKqfN0fNLFIGADgRml6KeUtSUVO6n37Gz9Kl4LuvluUp9J8hZly75E36t6JjliBCSWZr8MDyfvftv4lMS1sEt12abi6gfzm2btEpK39JIBCXw8Ou+Tlopc3jsxYwtt3wFaUNL+lGly8R+zhC6jNLtU8udVXgMFKcv251TYHI4QOdkk20VwSEpaf7exGkZ1Zis3i9Zy4R+M5fs2/v/cMm+EkOmcMbYH6KAzzOi15LmOnq8iH4upgTs2ZwZvkJwAPw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ka/0xb7fu6oX6Xj5cvYg8kD1+EmTA2cB50YCEdexM8CNKf8oV5jnHH5OZrFhbMxp7i2DO5LPSpZBemGW9/yAGR2ybERP4cCQLOUDfwX0E1cZMbEXyijktEu9NLVks1iD02rm+HcBcqdCQRvij+kcgVtDDE0pIuXV8UvtukYf0JLE3YaYAeARiAx8cn7PIWHeqhIeaeIHcYau0i7ABHKTAacukZztbQyqNhxkmpQLC6Gv2bSW90UdGT/VhmYNC1YDcdECzpkKazFzymAJ+i6aacFBY+WA854HvwW2TrrP/9MWHxDKx6Z40hFlrLrWZ3Nbo27KQP5zhmkIvsIrhweUxg==
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Wed, 19 Oct 2022 15:01:33 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hi Xenia,

On 19/10/2022 16:49, Xenia Ragiadakou wrote:
> 
> 
> Currently, the fields 'root_order' and 'sl0' of the pa_range_info for
> the 52-bit pa range have the values 3 and 3, respectively.
> This configuration does not match any of the valid root table configurations
> for 4KB granule and t0sz 12, described in ARM DDI 0487I.a D8.2.7.
> 
> More specifically, according to ARM DDI 0487I.a D8.2.7, in order to support
> the 52-bit pa size with 4KB granule, the p2m root table needs to be configured
> either as a single table at level -1 or as 16 concatenated tables at level 0.
> Since, currently there is not support for level -1, set the 'root_order' and
> 'sl0' fields of the 52-bit pa_range_info according to the second approach.
> 
> Note that the values of those fields are not used so far. This patch updates
> their values only for the sake of correctness.
> 
> Fixes: 407b13a71e32 ("xen/arm: p2m don't fall over on FEAT_LPA enabled hw")
> Signed-off-by: Xenia Ragiadakou <burzalodowa@xxxxxxxxx>

Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>

~Michal



 


Rackspace

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