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

Re: [PATCH v12 09/15] vpci/header: program p2m with guest BAR view


  • To: Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
  • Date: Mon, 15 Jan 2024 14:03:26 -0500
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=suse.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • 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:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9VV713wtEQl2T2nzjh+f3k8gUYFwCuB+tqUdroNeowc=; b=fscSGl4jet4YajLnjdX57pQxfMNTgjSWrY7t+JCoMq6aYPmX8IbF5bOIeOit6f6/uyjIQ7M5NoR5CdT3q9FNjIhYUVlctCUpihIEqd5AXwQVMHm7J50ZD9pLTz9OBQ/VFsqO/PX1fAElwigzDrTonvKNfX4EsFpxvzvrsHxJW1pRdS19kp96GxBtOn+G2vxnY4YKM1kZJOYjZ4go/Ku1FkBr+X3cxooDumaRXCWBD8Ou1Ybz8C3Fi2PyaVjvc4mhsDgcxn+WW9fR2TzqiumxRyt1ctan1LYKnNI/K0aFZzDMVlZvjoayThbcpwQf8jzeznauYURwDBIywmSXM7pZUw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CoW7iQz50aF9HRTfYwANYoPTFuJhchdv8GzXL3Kx33aXMvL3dqsOD+3QfpLsUdwXrE9Om5jwj/9wg/DobvaosvE7jkInPCEW7z0zgft4XzKaH5ztMPfAExL9cGR7hI8XswB7C19T1C1s9d6KwIAtaSgjlriNh2qeD8GYp1VDxsETmjXt5jVom6yEJCUS7eo5oQMC1weR5a1VdJ/3OPMAaWDaIgjkWMtHVYb9aaNJN6NeRw7I7Eswcxsm8flCweGRXA3aMqwZxezWoPE0UjWJfjy5cHxXWoVjp2ueHdlcEaJEU9Tq2ThV650GUcA7oPUIbK4JDkN3hTYVV1wIo1f4BA==
  • Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>
  • Delivery-date: Mon, 15 Jan 2024 19:03:43 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 1/15/24 04:07, Jan Beulich wrote:
> On 12.01.2024 16:06, Roger Pau Monné wrote:
>> On Tue, Jan 09, 2024 at 04:51:24PM -0500, Stewart Hildebrand wrote:
>>> From: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>
>>> +        /*
>>> +         * Make sure that the guest set address has the same page offset
>>> +         * as the physical address on the host or otherwise things won't 
>>> work as
>>> +         * expected.
>>> +         */
>>> +        if ( PAGE_OFFSET(bar->guest_addr) != PAGE_OFFSET(bar->addr) )
>>> +        {
>>> +            gprintk(XENLOG_G_WARNING,
>>> +                    "%pp: Can't map BAR%d because of page offset mismatch: 
>>> %lx vs %lx\n",
>>                                            ^u
>>
>> Also when using the x modifier it's better to also use # to print the
>> 0x prefix.  You can also reduce the length of the message using
>> s/because of/due to/ IMO:
>>
>> %pp: Can't map BAR%u due to offset mismatch: %lx vs %lx
> 
> Or even
> 
> %pp: can't map BAR%u - offset mismatch: %lx vs %lx
> 
> ? 

Using # that becomes:

"%pp: can't map BAR%u - offset mismatch: %#lx vs %#lx\n"

I'll send v12.2.

> Note also my use of lower-case 'c', which brings this log message in
> line with all pre-existing (prior to the whole series) vPCI log messages
> starting with "%pp: " (when not limiting to thus-prefixed there are a
> couple of "Failed to ..." outliers).
> 
> Jan



 


Rackspace

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