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

Re: [Xen-devel] [PATCH V2] iommu/arm: Don't allow the same micro-TLB to be shared between domains


  • To: Oleksandr Tyshchenko <olekstysh@xxxxxxxxx>
  • From: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Date: Wed, 19 Feb 2020 17:01:58 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.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-SenderADCheck; bh=mS47mx4vuggl0sGLs3KLM9ZZ5vEaDZaXQhshA2tfJC0=; b=T4g2Va8Pa3ABng5IqC6iztBQOvsSYhQoTR0AYwBUQ22XHlyWavR/dDk8ZLNM/mjkd+s3PJx54bdUj/cizMH0Iehz4GRjsYoDT6V0McmsFUzFBCvI9ofqTvjDV5N/h/q19flr3xxYbcaph2f12RCNi1kEt5rTcUehVtUqnKyHsFI55aIFBKn+Z1hKMO4pyjgrw/4Jl/qfSIFC2NCgKyyNS6vDzRJx+tI3P1iqIvagt1zWNtXgTBGfoOvl7bhaU6zgdFHA78kYQQA1+BljdWk5TVza8whLzQVI3cZJWINLWCBxrSb8r1MGJhxRFOE6hFSFD6820+0yeTAmvkTHfihXfQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cYQwQagyzka0HzTJyKROTR/6S8pVsdgSjbxNV/vNlZheX6O4oTI8pcFyPxOo7+bbY8WW85TYJxx/nofG5C3+0KwkijdtD+CeOIrCvf3O/N6qMVEJxOqao4ntg2BbtzmXEco4/QBjBIFgVxvAQjVOCfaoRRm++Q7IVZfS50AZU7LSWFh2Erx1BfaLj9JAa3UDKBSw7J9ibNIPotdV2t5PENw+cPgicAF0Jq+/Jd3BiA4TQg1wWcpwn2aBxzgBr5EBLLYB/NWbaIQd3PLOI1+xs1qX6buVAkQlanl7BWeeUXg6q8x65kBObk8Z010Q9laaRrOy2m/16rxaKwsEG5DfCA==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Volodymyr_Babchuk@xxxxxxxx;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx>, Oleksandr Tyshchenko <Oleksandr_Tyshchenko@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Wed, 19 Feb 2020 17:02:08 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHV5aO7YteUeX2hiEa0D7U9u2DxoqgiwScA
  • Thread-topic: [PATCH V2] iommu/arm: Don't allow the same micro-TLB to be shared between domains

Hello Oleksandr,

Oleksandr Tyshchenko writes:

> From: Oleksandr Tyshchenko <oleksandr_tyshchenko@xxxxxxxx>
>
> For the IPMMU-VMSA we need to prevent the use cases where devices
> which use the same micro-TLB are assigned to different Xen domains
> (micro-TLB cannot be shared between multiple Xen domains, since it
> points to the context bank to use for the page walk).
>
> As each Xen domain uses individual context bank pointed by context_id,
> we can potentially recognize that use case by comparing current and new
> context_id for the already enabled micro-TLB and prevent different
> context bank from being set.
>
> Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@xxxxxxxx>
Reviewed-by: Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>

> ---
>
> CC: Julien Grall <julien@xxxxxxx>
> CC: Stefano Stabellini <sstabellini@xxxxxxxxxx>
> CC: Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>
> CC: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx>
>
> Changes V1 [1] -> V2:
>    - Rename "data" to "imuctr" in ipmmu_utlb_enable()
>    - Disable already enabled uTLBs in ipmmu_attach_device()
>      in case of error

-- 
Volodymyr Babchuk at EPAM
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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