All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen/mm: Improve message in populate physmap when the domain is direct mapped
@ 2015-10-27 11:33 Julien Grall
  2015-10-27 11:45 ` Andrew Cooper
  0 siblings, 1 reply; 5+ messages in thread
From: Julien Grall @ 2015-10-27 11:33 UTC (permalink / raw)
  To: xen-devel
  Cc: Keir Fraser, ian.campbell, stefano.stabellini, Tim Deegan,
	Julien Grall, Jan Beulich

The current domain and the domain pointed by the variable "d" are not
the same.

However, when it's not possible to get a reference on the page, the
target domain ID is not printed. This makes the message difficult to
understand.

Improve the message by printing the target domain ID.

Signed-off-by: Julien Grall <julien.grall@citrix.com>

---
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Keir Fraser <keir@xen.org>
Cc: Tim Deegan <tim@xen.org>
---
 xen/common/memory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/common/memory.c b/xen/common/memory.c
index f6aed0d..206955f 100644
--- a/xen/common/memory.c
+++ b/xen/common/memory.c
@@ -141,7 +141,7 @@ static void populate_physmap(struct memop_args *a)
                     {
                         gdprintk(XENLOG_INFO,
                                  "mfn %#"PRI_xen_pfn" doesn't belong to the"
-                                 " domain\n", mfn);
+                                 " domain %d\n", mfn, d->domain_id);
                         goto out;
                     }
                     put_page(page);
-- 
2.1.4

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

* Re: [PATCH] xen/mm: Improve message in populate physmap when the domain is direct mapped
  2015-10-27 11:33 [PATCH] xen/mm: Improve message in populate physmap when the domain is direct mapped Julien Grall
@ 2015-10-27 11:45 ` Andrew Cooper
  2015-10-27 11:49   ` Julien Grall
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Cooper @ 2015-10-27 11:45 UTC (permalink / raw)
  To: Julien Grall, xen-devel
  Cc: Tim Deegan, Keir Fraser, ian.campbell, Jan Beulich,
	stefano.stabellini

On 27/10/15 11:33, Julien Grall wrote:
> The current domain and the domain pointed by the variable "d" are not
> the same.
>
> However, when it's not possible to get a reference on the page, the
> target domain ID is not printed. This makes the message difficult to
> understand.
>
> Improve the message by printing the target domain ID.
>
> Signed-off-by: Julien Grall <julien.grall@citrix.com>

Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>, with a
suggestion as well.

>
> ---
> Cc: Ian Campbell <ian.campbell@citrix.com>
> Cc: Jan Beulich <jbeulich@suse.com>
> Cc: Keir Fraser <keir@xen.org>
> Cc: Tim Deegan <tim@xen.org>
> ---
>  xen/common/memory.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/xen/common/memory.c b/xen/common/memory.c
> index f6aed0d..206955f 100644
> --- a/xen/common/memory.c
> +++ b/xen/common/memory.c
> @@ -141,7 +141,7 @@ static void populate_physmap(struct memop_args *a)
>                      {
>                          gdprintk(XENLOG_INFO,
>                                   "mfn %#"PRI_xen_pfn" doesn't belong to the"
> -                                 " domain\n", mfn);
> +                                 " domain %d\n", mfn, d->domain_id);

This could easily be shortened to "doesn't belong to d%d" which matches
our other domain identification.

~Andrew

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

* Re: [PATCH] xen/mm: Improve message in populate physmap when the domain is direct mapped
  2015-10-27 11:45 ` Andrew Cooper
@ 2015-10-27 11:49   ` Julien Grall
  2015-10-27 12:09     ` Andrew Cooper
  2015-10-27 13:09     ` Jan Beulich
  0 siblings, 2 replies; 5+ messages in thread
From: Julien Grall @ 2015-10-27 11:49 UTC (permalink / raw)
  To: Andrew Cooper, xen-devel
  Cc: Keir Fraser, Tim Deegan, ian.campbell, Jan Beulich,
	stefano.stabellini

Hi Andrew,

On 27/10/15 11:45, Andrew Cooper wrote:
> On 27/10/15 11:33, Julien Grall wrote:
>> The current domain and the domain pointed by the variable "d" are not
>> the same.
>>
>> However, when it's not possible to get a reference on the page, the
>> target domain ID is not printed. This makes the message difficult to
>> understand.
>>
>> Improve the message by printing the target domain ID.
>>
>> Signed-off-by: Julien Grall <julien.grall@citrix.com>
> 
> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>, with a
> suggestion as well.
> 
>>
>> ---
>> Cc: Ian Campbell <ian.campbell@citrix.com>
>> Cc: Jan Beulich <jbeulich@suse.com>
>> Cc: Keir Fraser <keir@xen.org>
>> Cc: Tim Deegan <tim@xen.org>
>> ---
>>  xen/common/memory.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/xen/common/memory.c b/xen/common/memory.c
>> index f6aed0d..206955f 100644
>> --- a/xen/common/memory.c
>> +++ b/xen/common/memory.c
>> @@ -141,7 +141,7 @@ static void populate_physmap(struct memop_args *a)
>>                      {
>>                          gdprintk(XENLOG_INFO,
>>                                   "mfn %#"PRI_xen_pfn" doesn't belong to the"
>> -                                 " domain\n", mfn);
>> +                                 " domain %d\n", mfn, d->domain_id);
> 
> This could easily be shortened to "doesn't belong to d%d" which matches
> our other domain identification.

I also just noticed that the message is split between 2 lines. IIRC, we
are trying to avoid that to allow grep working.

I will resend this patch with:

gprintk(XENLOG_INFO,
	"mfn %#"PRI_xen_pfn" doesn't belong to d%d\n",
	mfn, d->domain_id).

Can I keep your reviewed-by with that change?

Regards,

-- 
Julien Grall

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

* Re: [PATCH] xen/mm: Improve message in populate physmap when the domain is direct mapped
  2015-10-27 11:49   ` Julien Grall
@ 2015-10-27 12:09     ` Andrew Cooper
  2015-10-27 13:09     ` Jan Beulich
  1 sibling, 0 replies; 5+ messages in thread
From: Andrew Cooper @ 2015-10-27 12:09 UTC (permalink / raw)
  To: Julien Grall, xen-devel
  Cc: Keir Fraser, Tim Deegan, ian.campbell, Jan Beulich,
	stefano.stabellini

On 27/10/15 11:49, Julien Grall wrote:
> Hi Andrew,
>
> On 27/10/15 11:45, Andrew Cooper wrote:
>> On 27/10/15 11:33, Julien Grall wrote:
>>> The current domain and the domain pointed by the variable "d" are not
>>> the same.
>>>
>>> However, when it's not possible to get a reference on the page, the
>>> target domain ID is not printed. This makes the message difficult to
>>> understand.
>>>
>>> Improve the message by printing the target domain ID.
>>>
>>> Signed-off-by: Julien Grall <julien.grall@citrix.com>
>> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>, with a
>> suggestion as well.
>>
>>> ---
>>> Cc: Ian Campbell <ian.campbell@citrix.com>
>>> Cc: Jan Beulich <jbeulich@suse.com>
>>> Cc: Keir Fraser <keir@xen.org>
>>> Cc: Tim Deegan <tim@xen.org>
>>> ---
>>>  xen/common/memory.c | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/xen/common/memory.c b/xen/common/memory.c
>>> index f6aed0d..206955f 100644
>>> --- a/xen/common/memory.c
>>> +++ b/xen/common/memory.c
>>> @@ -141,7 +141,7 @@ static void populate_physmap(struct memop_args *a)
>>>                      {
>>>                          gdprintk(XENLOG_INFO,
>>>                                   "mfn %#"PRI_xen_pfn" doesn't belong to the"
>>> -                                 " domain\n", mfn);
>>> +                                 " domain %d\n", mfn, d->domain_id);
>> This could easily be shortened to "doesn't belong to d%d" which matches
>> our other domain identification.
> I also just noticed that the message is split between 2 lines. IIRC, we
> are trying to avoid that to allow grep working.
>
> I will resend this patch with:
>
> gprintk(XENLOG_INFO,
> 	"mfn %#"PRI_xen_pfn" doesn't belong to d%d\n",
> 	mfn, d->domain_id).
>
> Can I keep your reviewed-by with that change?

Certainly.

~Andrew

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

* Re: [PATCH] xen/mm: Improve message in populate physmap when the domain is direct mapped
  2015-10-27 11:49   ` Julien Grall
  2015-10-27 12:09     ` Andrew Cooper
@ 2015-10-27 13:09     ` Jan Beulich
  1 sibling, 0 replies; 5+ messages in thread
From: Jan Beulich @ 2015-10-27 13:09 UTC (permalink / raw)
  To: Julien Grall
  Cc: Keir Fraser, ian.campbell, stefano.stabellini, Andrew Cooper,
	Tim Deegan, xen-devel

>>> On 27.10.15 at 12:49, <julien.grall@citrix.com> wrote:
> On 27/10/15 11:45, Andrew Cooper wrote:
>> On 27/10/15 11:33, Julien Grall wrote:
>>> --- a/xen/common/memory.c
>>> +++ b/xen/common/memory.c
>>> @@ -141,7 +141,7 @@ static void populate_physmap(struct memop_args *a)
>>>                      {
>>>                          gdprintk(XENLOG_INFO,
>>>                                   "mfn %#"PRI_xen_pfn" doesn't belong to the"
>>> -                                 " domain\n", mfn);
>>> +                                 " domain %d\n", mfn, d->domain_id);
>> 
>> This could easily be shortened to "doesn't belong to d%d" which matches
>> our other domain identification.
> 
> I also just noticed that the message is split between 2 lines. IIRC, we
> are trying to avoid that to allow grep working.
> 
> I will resend this patch with:
> 
> gprintk(XENLOG_INFO,
> 	"mfn %#"PRI_xen_pfn" doesn't belong to d%d\n",
> 	mfn, d->domain_id).
> 
> Can I keep your reviewed-by with that change?

And no need to resend, btw.

Jan

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

end of thread, other threads:[~2015-10-27 13:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-27 11:33 [PATCH] xen/mm: Improve message in populate physmap when the domain is direct mapped Julien Grall
2015-10-27 11:45 ` Andrew Cooper
2015-10-27 11:49   ` Julien Grall
2015-10-27 12:09     ` Andrew Cooper
2015-10-27 13:09     ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.