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

Re: [PATCH 04/12] swiotlb-xen: ensure to issue well-formed XENMEM_exchange requests


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 14 Sep 2021 11:11:06 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.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; bh=lRSbwAvJszhlt1oSYrz+SNQDPj7Z+tBJanyHUCx4ZNo=; b=Np6siSC8NP7aoig05HnzItV2+UttGQ/N3WCuTXyrEx1TY3mgl4BR+4snqqTlNkFbUsa9wbNVmJrBqRHYLv3oEswFu7sbrGYSGqdgMHo1hSktfww5BujwsWkY2o9B6QEb12YcpfMyCuUANdOXw+LyopggN4BtyuEGkEQ4XzIngAnQYtfuc+H0MSp+SLix+DTSfryqw0NNciNxJcgE39Tu7qm2+Xgs4MirLYXCOMJ5BR9YeESH5TpbWmHSPq51CIz3BlCrE2GZcOXYSitCP3UUQQBmT4iABGguDhAN6BudijT2NPHhrZiZ9J8yiO6oAvOTh2koY9dmKk6UCrsn78eqMg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J59eIivuc4qVroPkdUYDq79upH69aDnlR4vVkunpz1oEFMMcPUP0jQtHyfqKId8tZKAElBfkyqPcdV1ACP55XgdBY6Xg2Q9S4Rss/7TZv1L1k8iSxG255U2D//M47nsAqyvHSHx1+/8OYkpe74ZrUGFnlUDv1srkN88mBaMwZlEIlr5Bcvq7wHTLpBiIw5X3fxR8f3/6cYhe20VZEcUlIamSQJyor3pJa+3HHlI/LHozed5uEg4Ab2rcYqLEFGianRIBJ/6m2UZw5PADZaMxFiSgaLO4LXn++wXxLFKvmPH55+PCnoGZS2LRkYEEJ49Ze7d8zg2EbEqWO9Gia7GKzg==
  • Authentication-results: lists.xenproject.org; dkim=none (message not signed) header.d=none;lists.xenproject.org; dmarc=none action=none header.from=suse.com;
  • Cc: Juergen Gross <jgross@xxxxxxxx>, Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>, lkml <linux-kernel@xxxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 14 Sep 2021 09:11:18 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 13.09.2021 22:31, Stefano Stabellini wrote:
> On Mon, 13 Sep 2021, Jan Beulich wrote:
>> On 11.09.2021 01:14, Stefano Stabellini wrote:
>>> On Tue, 7 Sep 2021, Jan Beulich wrote:
>>>> While the hypervisor hasn't been enforcing this, we would still better
>>>> avoid issuing requests with GFNs not aligned to the requested order.
>>>>
>>>> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
>>>> ---
>>>> I wonder how useful it is to include the alignment in the panic()
>>>> message.
>>>
>>> Not very useful given that it is static. I don't mind either way but you
>>> can go ahead and remove it if you prefer (and it would make the line
>>> shorter.)
>>>
>>>
>>>> I further wonder how useful it is to wrap "bytes" in
>>>> PAGE_ALIGN(), when it is a multiple of a segment's size anyway (or at
>>>> least was supposed to be, prior to "swiotlb-xen: maintain slab count
>>>> properly").
>>>
>>> This one I would keep, to make sure to print out the same amount passed
>>> to memblock_alloc.
>>
>> Oh - if I was to drop it from the printk(), I would have been meaning to
>> also drop it there. If it's useless, then it's useless everywhere.
> 
> That's fine too

Thanks, I'll see about dropping that then.

Another Arm-related question has occurred to me: Do you actually
mind the higher-than-necessary alignment there? If so, a per-arch
definition of the needed alignment would need introducing. Maybe
that could default to PAGE_SIZE, allowing Arm and alike to get away
without explicitly specifying a value ...

Jan




 


Rackspace

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