Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp265478pxb; Mon, 13 Sep 2021 18:50:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJze4b7EecClMdQqtuMzxvLuy9YD0vJh+7tW33/EFK10SG8Idug3Cz9VPyEBUnPavZsSm5tY X-Received: by 2002:a17:906:1e97:: with SMTP id e23mr14615845ejj.320.1631584229452; Mon, 13 Sep 2021 18:50:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631584229; cv=none; d=google.com; s=arc-20160816; b=I+mM6xCAo7q6TFUM8A+iglr+UjjEVlvNuJ8N30IR74Ih/EnqHVkCf1RxXMrBhqtzyM yaxoQurOgxnJNm3fwehwN0sV73cjf8rUCW3zYKwR5NCozGqL5gXJSdIiHi/T15txJwRE /l3MXLxzEthFfe5axD8C4C+68KEdxnl4Qw+XBqymIqZOUuqXrWKUYgZCd2iN29n01sNc lj7EedbOT/soDjbzP/uYV/B57lQHMjOcqIb2oPAlxk9xqu6I5oEt80OLDYb5AYkFiiy4 KKdirSCUITsf6ynvTO9j/bqDOCp1B6Adpa9pFkHUvm80L8ioFPE4L7u6SkN9DARrQdTH qgRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=EcaOnAJUgh4m8yCgz+ALSkdiNke4gOojjC5VxMhuWfI=; b=llh37ZYXQ4Fu+R5l/Bku4OKCogRUNuFlrO6VFXQzQcrq7KlsgbyynMqfKX0rcu0nl3 tDW0l1ZJgdQiOMzVbMHaDZ1MWB6e/8NtVkdbD+EpCxEhY0aELa5VoDHt9OvCf8UxhSdi 4s0z+KlFUe6EMY8EPOj0/FnFXpW6+oEBH1SSKX0+U78pTa4Di0e64uM/gGcofZ5Foje3 yXSezuZKrtj5Azz7Jiv7Q+wGxlJA5s94mUTtK4sJRrEYn01lwu+/YnM8v7Sa3TSFysiw IyxXnNImRreUsanr5IO8XqCu0kk0LviiVGvT/bMIptUnf2gymO/jaynAaPP9QZEjA+zN QI3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NkMwMKqz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d23si8400670eds.175.2021.09.13.18.50.06; Mon, 13 Sep 2021 18:50:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NkMwMKqz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242984AbhIMUcY (ORCPT + 99 others); Mon, 13 Sep 2021 16:32:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:34064 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230404AbhIMUcX (ORCPT ); Mon, 13 Sep 2021 16:32:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9048C6108B; Mon, 13 Sep 2021 20:31:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631565067; bh=I1luLBrQT2QS6nSSKLDDdX9lKRGVXUWe967myVRKHq8=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=NkMwMKqzji1BQ9efEE20R8HGJLZmk2XracuUWD04u26bu5/zQYoT51EuIpnj8a98Y XBMpos47u9CxnpLg4uCQ1HZ1GdVhmR/KIqMQQhR6m/MhF5B6JxbD5eKcm9DRBW7Iht jxPJOcjcvS4UU3Saa6uy6ggSVWWJxZxuUplqTAyMol9C0a1Zkx5dlBJwdYYs09wp/x Ax6gcedHW/T+qr+IViyy00YeVYY1+za2CK6cRf6KI+9CHS+FoPkhMM58+fDGeNGNPm Pui7DgrkZnxXiaK6qWwnHK4FtowGTMImhm8nMMhb2AfgMe5+6ZtgegMOrY2Rvx8xuZ 9n+jW82xbiLwA== Date: Mon, 13 Sep 2021 13:31:06 -0700 (PDT) From: Stefano Stabellini X-X-Sender: sstabellini@sstabellini-ThinkPad-T480s To: Jan Beulich cc: Stefano Stabellini , Juergen Gross , Boris Ostrovsky , lkml , "xen-devel@lists.xenproject.org" Subject: Re: [PATCH 04/12] swiotlb-xen: ensure to issue well-formed XENMEM_exchange requests In-Reply-To: Message-ID: References: <588b3e6d-2682-160c-468e-44ca4867a570@suse.com> <397bf325-f81e-e104-6142-e8c9c4955475@suse.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > >> --- > >> 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