xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iommu/arm: add missing return
@ 2019-05-30 12:02 Andrii Anisov
  2019-05-30 12:02 ` [Xen-devel] " Andrii Anisov
  2019-06-11 14:37 ` Julien Grall
  0 siblings, 2 replies; 5+ messages in thread
From: Andrii Anisov @ 2019-05-30 12:02 UTC (permalink / raw)
  To: xen-devel
  Cc: Oleksandr Tyshchenko, Julien Grall, Stefano Stabellini, Andrii Anisov

From: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>

In case iommu_ops have been already set, we should not update it.

Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Signed-off-by: Andrii Anisov <andrii_anisov@epam.com>
---

This patch is extracted from [1], as agreed here [2].

[1] https://lists.xenproject.org/archives/html/xen-devel/2019-01/msg01658.html
[2] https://lists.xenproject.org/archives/html/xen-devel/2019-01/msg01859.html

---
 xen/drivers/passthrough/arm/iommu.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/xen/drivers/passthrough/arm/iommu.c b/xen/drivers/passthrough/arm/iommu.c
index 325997b..2135233 100644
--- a/xen/drivers/passthrough/arm/iommu.c
+++ b/xen/drivers/passthrough/arm/iommu.c
@@ -32,7 +32,10 @@ void __init iommu_set_ops(const struct iommu_ops *ops)
     BUG_ON(ops == NULL);
 
     if ( iommu_ops && iommu_ops != ops )
+    {
         printk("WARNING: Cannot set IOMMU ops, already set to a different value\n");
+        return;
+    }
 
     iommu_ops = ops;
 }
-- 
2.7.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Xen-devel] [PATCH] iommu/arm: add missing return
  2019-05-30 12:02 [PATCH] iommu/arm: add missing return Andrii Anisov
@ 2019-05-30 12:02 ` Andrii Anisov
  2019-06-11 14:37 ` Julien Grall
  1 sibling, 0 replies; 5+ messages in thread
From: Andrii Anisov @ 2019-05-30 12:02 UTC (permalink / raw)
  To: xen-devel
  Cc: Oleksandr Tyshchenko, Julien Grall, Stefano Stabellini, Andrii Anisov

From: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>

In case iommu_ops have been already set, we should not update it.

Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Signed-off-by: Andrii Anisov <andrii_anisov@epam.com>
---

This patch is extracted from [1], as agreed here [2].

[1] https://lists.xenproject.org/archives/html/xen-devel/2019-01/msg01658.html
[2] https://lists.xenproject.org/archives/html/xen-devel/2019-01/msg01859.html

---
 xen/drivers/passthrough/arm/iommu.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/xen/drivers/passthrough/arm/iommu.c b/xen/drivers/passthrough/arm/iommu.c
index 325997b..2135233 100644
--- a/xen/drivers/passthrough/arm/iommu.c
+++ b/xen/drivers/passthrough/arm/iommu.c
@@ -32,7 +32,10 @@ void __init iommu_set_ops(const struct iommu_ops *ops)
     BUG_ON(ops == NULL);
 
     if ( iommu_ops && iommu_ops != ops )
+    {
         printk("WARNING: Cannot set IOMMU ops, already set to a different value\n");
+        return;
+    }
 
     iommu_ops = ops;
 }
-- 
2.7.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [Xen-devel] [PATCH] iommu/arm: add missing return
  2019-05-30 12:02 [PATCH] iommu/arm: add missing return Andrii Anisov
  2019-05-30 12:02 ` [Xen-devel] " Andrii Anisov
@ 2019-06-11 14:37 ` Julien Grall
  2019-06-11 15:12   ` Julien Grall
  1 sibling, 1 reply; 5+ messages in thread
From: Julien Grall @ 2019-06-11 14:37 UTC (permalink / raw)
  To: Andrii Anisov, xen-devel
  Cc: Oleksandr Tyshchenko, Stefano Stabellini, Andrii Anisov

Hi Andrii,

Sorry for the late answer.

On 5/30/19 1:02 PM, Andrii Anisov wrote:
> From: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
> 
> In case iommu_ops have been already set, we should not update it.
> 
> Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
> Signed-off-by: Andrii Anisov <andrii_anisov@epam.com>

Acked-by: Julien Grall <julien.grall@arm.com>

Cheers,

> ---
> 
> This patch is extracted from [1], as agreed here [2].
> 
> [1] https://lists.xenproject.org/archives/html/xen-devel/2019-01/msg01658.html
> [2] https://lists.xenproject.org/archives/html/xen-devel/2019-01/msg01859.html
> 
> ---
>   xen/drivers/passthrough/arm/iommu.c | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/xen/drivers/passthrough/arm/iommu.c b/xen/drivers/passthrough/arm/iommu.c
> index 325997b..2135233 100644
> --- a/xen/drivers/passthrough/arm/iommu.c
> +++ b/xen/drivers/passthrough/arm/iommu.c
> @@ -32,7 +32,10 @@ void __init iommu_set_ops(const struct iommu_ops *ops)
>       BUG_ON(ops == NULL);
>   
>       if ( iommu_ops && iommu_ops != ops )
> +    {
>           printk("WARNING: Cannot set IOMMU ops, already set to a different value\n");
> +        return;
> +    }
>   
>       iommu_ops = ops;
>   }
> 

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xen-devel] [PATCH] iommu/arm: add missing return
  2019-06-11 14:37 ` Julien Grall
@ 2019-06-11 15:12   ` Julien Grall
  2019-06-11 16:10     ` Andrii Anisov
  0 siblings, 1 reply; 5+ messages in thread
From: Julien Grall @ 2019-06-11 15:12 UTC (permalink / raw)
  To: Andrii Anisov, xen-devel
  Cc: Oleksandr Tyshchenko, Stefano Stabellini, Andrii Anisov



On 11/06/2019 15:37, Julien Grall wrote:
> Hi Andrii,
> 
> Sorry for the late answer.
> 
> On 5/30/19 1:02 PM, Andrii Anisov wrote:
>> From: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
>>
>> In case iommu_ops have been already set, we should not update it.
>>
>> Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
>> Signed-off-by: Andrii Anisov <andrii_anisov@epam.com>
> 
> Acked-by: Julien Grall <julien.grall@arm.com>

Now committed, thank you!

Cheers,

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xen-devel] [PATCH] iommu/arm: add missing return
  2019-06-11 15:12   ` Julien Grall
@ 2019-06-11 16:10     ` Andrii Anisov
  0 siblings, 0 replies; 5+ messages in thread
From: Andrii Anisov @ 2019-06-11 16:10 UTC (permalink / raw)
  To: Julien Grall, xen-devel
  Cc: Oleksandr Tyshchenko, Stefano Stabellini, Andrii Anisov



On 11.06.19 18:12, Julien Grall wrote:
>> Acked-by: Julien Grall <julien.grall@arm.com>
> 
> Now committed, thank you!

Thank you.

-- 
Sincerely,
Andrii Anisov.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-06-11 16:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-30 12:02 [PATCH] iommu/arm: add missing return Andrii Anisov
2019-05-30 12:02 ` [Xen-devel] " Andrii Anisov
2019-06-11 14:37 ` Julien Grall
2019-06-11 15:12   ` Julien Grall
2019-06-11 16:10     ` Andrii Anisov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).