Re: [PATCH 2/2] xen/swiotlb: check if the swiotlb has already been initialized

From: Stefano Stabellini
Date: Wed May 12 2021 - 16:35:39 EST


On Tue, 11 May 2021, Boris Ostrovsky wrote:
> On 5/11/21 1:41 PM, Stefano Stabellini wrote:
> > --- a/drivers/xen/swiotlb-xen.c
> > +++ b/drivers/xen/swiotlb-xen.c
> > @@ -164,6 +164,11 @@ int __ref xen_swiotlb_init(void)
> > int rc = -ENOMEM;
> > char *start;
> >
> > + if (io_tlb_default_mem != NULL) {
> > + printk(KERN_WARNING "Xen-SWIOTLB: swiotlb buffer already initialized\n");
>
>
> pr_warn().
>
>
> Reviewed-by: Boris Ostrovsky <boris.ostrvsky@xxxxxxxxxx>

Thank you! I'll send a v2 shortly with the change to pr_warn and your
reviewed-by.