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

Re: [PATCH v2 2/4] xen/arm: its: separate ITS and host LPI quirk scopes


  • To: Mykola Kvach <xakep.amatop@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Orzel, Michal" <michal.orzel@xxxxxxx>
  • Date: Wed, 22 Jul 2026 13:56:24 +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 (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=OxA7GjW9jlIdbzhagtnlPo7nhTEZoqt+Dj0efLRJRS0=; b=kM4jNIZ3hcJ4K4GWhD+xoPzeAtxA1Uryjysq6mMzKED7mXhDe3XbhU3Gnjao9KDdCUJBaCjfEr7T9+1xsQH3URthO8SJOosElXprCXbqk7ZFQ1OT6fdWsadZG2+IKLezTDtCS/77J8Fj/tpHEPQHmofcK68R1NbRzt8DcP0CSqly4PNLlRqBfkj8V/tZJrifW4CzrRFzmLuOSZBDag5t4S9oDDs2YenwVCSoU83bAJ9nxR9o0Lkn16KIFHN9+lGHTvsgc1v8Zwrh3MTTubI0o3+IPabPKVhGlSHCTLvfhGVpwc0PJTSWzUfPo3NUHTr32WlFOltABiFp3Yt1Wb5fWQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=m6P+qN8Cid6s4tx0CO4CpovMuBjefUHWk3RpNtsJORgvUyObHQYjTD7SQM9fmZZ4LvIi/+nCtrQMF1LBUdiZNqhcr5nL7DYzAzk9EH7RoakNhlwxZQeW4+ghNi4JpFfA7Q031aHG3a6byaIVglln2lzIH6fKCjhxEh0RjylhDNd1gnvyIWQAe7GdRuVCTFPcbBvr7kA7nTXL7a0uYSn8b2ZZ8/EuufJGNnvC5PB00RkWWvG4gMMj6cRQskG9GBTZAxciBDn2b2XURdXFik6NBVM343dT+WaR1X9G6DbV2iGVnQAqCV3soupPHvQzmQp/bgLwees9j+7XXpEFy9+czA==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=amd.com header.i="@amd.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
  • Cc: Mykola Kvach <mykola_kvach@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Luca Fancellu <luca.fancellu@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Wed, 22 Jul 2026 11:56:42 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 28-May-26 02:25, Mykola Kvach wrote:
> From: Mykola Kvach <mykola_kvach@xxxxxxxx>
> 
> ITS quirks can impose restrictions on memory accessed by the ITS itself and
> on shared host LPI/Redistributor state. These scopes are not identical, so
> a single global ITS quirk state makes the host LPI policy depend implicitly
> on the quirks seen while initializing host ITSes.
> 
> Add per-ITS quirk_flags to struct host_its and keep a separate
> host_lpi_flags state in the LPI code. The quirk table now records the
> ITS-private and host LPI scopes explicitly through its_flags and lpi_flags.
> The R-Car Gen4 quirk applies the same memory-related restrictions to both
> scopes, preserving the existing behavior without relying on an implicit
> aggregation step.
> 
> This also removes the old assumption that all host ITSes must expose the
> same quirk state. Host LPI restrictions are accumulated only from quirk
> entries that explicitly set lpi_flags.
> 
> Use per-ITS quirk_flags for GITS_CBASER, GITS_BASER<n> and ITT allocations.
> Use host_lpi_flags directly in gic-v3-lpi.c for GICR_PROPBASER and
> GICR_PENDBASER setup. Memory-related quirk bits are named GICV3_QUIRK_MEM_*
> and are translated by shared gicv3_mem_get_*() helpers.
> 
> Signed-off-by: Mykola Kvach <mykola_kvach@xxxxxxxx>
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®.