xen/mm: Improve message in populate physmap when the domain is direct mapped
PATCH 1/1 xen/mm: Improve message in populate physmap when the domain is direct mapped
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.
---
Cc: Ian Campbell <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Keir Fraser <[email protected]>
Cc: Tim Deegan <[email protected]>
--- xen/common/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/common/memory.c +1 -1
@@ -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);
Signature · 1 line
2.1.4
Quoted 10 lines · Julien Grall
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 <[email protected]>
suggestion as well.
Quoted 15 lines
---
Cc: Ian Campbell <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Keir Fraser <[email protected]>
Cc: Tim Deegan <[email protected]>--- xen/common/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)xen/common/memory.c +0
-0
xen/common/memory.c static void populate_physmap(struct memop_args *a) · line 144
Quoted 5 lines
xen/common/memory.c +1
-1@@ -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
Hi Andrew,
Quoted 25 lines · Andrew Cooper
Quoted 10 lines · Julien Grall
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 <[email protected]>Reviewed-by Andrew Cooper <[email protected]>, with asuggestion as well.
Quoted 10 lines
---
Cc: Ian Campbell <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Keir Fraser <[email protected]>
Cc: Tim Deegan <[email protected]>--- xen/common/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 13 lines
xen/common/memory.c static void populate_physmap(struct memop_args *a) · line 144
Quoted 10 lines
xen/common/memory.c +1
-1@@ -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,
Signature · 1 line
Julien Grall
Quoted 41 lines · Julien Grall
Hi Andrew,
Quoted 23 lines · Andrew Cooper
Quoted 10 lines · Julien Grall
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 <[email protected]>Reviewed-by Andrew Cooper <[email protected]>, with asuggestion as well.
Quoted 9 lines
---
Cc: Ian Campbell <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Keir Fraser <[email protected]>
Cc: Tim Deegan <[email protected]>--- xen/common/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Quoted 12 lines
xen/common/memory.c static void populate_physmap(struct memop_args *a) · line 144
Quoted 10 lines
xen/common/memory.c +1
-1@@ -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.
Quoted 7 lines
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
Quoted 18 lines
Quoted 1 line
Quoted 1 line · On 27.10.15 at 12:49, <[email protected]> wrote:
Quoted 12 lines · Andrew Cooper
xen/common/memory.c static void populate_physmap(struct memop_args *a) · line 144
Quoted 8 lines · Julien Grall
xen/common/memory.c +1
-1@@ -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.
Quoted 7 lines
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