Hello Oleksandr,

Oleksandr Tyshchenko writes:

> From: Oleksandr Tyshchenko <[email protected]>
>
> 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 <[email protected]>
Reviewed-by: Volodymyr Babchuk <[email protected]>

> ---
>
> CC: Julien Grall <[email protected]>
> CC: Stefano Stabellini <[email protected]>
> CC: Volodymyr Babchuk <[email protected]>
> CC: Yoshihiro Shimoda <[email protected]>
>
> 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
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to