Skip to contentSkip to conversation

x86/boot: Make the "Building Dom0" messages consistent

PATCH In review Andrew Cooper 4 participants 6 messages Jan 26, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/boot: Make the "Building Dom0" messages consistent

Switch the PV message to match the wording of the PVH side, use the same number of ***'s, explicitly identify PV vs PVH, and set the log level at INFO.

---
CC: Jan Beulich <[email protected]>
CC: Wei Liu <[email protected]>
CC: Roger Pau Monné <[email protected]>

---
 xen/arch/x86/hvm/dom0_build.c | 2 +-
 xen/arch/x86/pv/dom0_build.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
xen/arch/x86/hvm/dom0_build.c +1 -1
index 962dc14..bf7baa8 100644
@@ -1064,7 +1064,7 @@ int __init dom0_construct_pvh(struct domain *d, const module_t *image,
     paddr_t entry, start_info;
     int rc;
 
-    printk("** Building a PVH Dom0 **\n");
+    printk(XENLOG_INFO "*** Building a PVH Dom0 ***\n");
 
     iommu_hwdom_init(d);
 
xen/arch/x86/pv/dom0_build.c +1 -1
index e7065bf..87b325c 100644
@@ -328,7 +328,7 @@ int __init dom0_construct_pv(struct domain *d,
     /* Machine address of next candidate page-table page. */
     paddr_t mpt_alloc;
 
-    printk("*** LOADING DOMAIN 0 ***\n");
+    printk(XENLOG_INFO "*** Building a PV Dom0 ***\n");
 
     d->max_pages = ~0U;
 
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Reviewed-by on v1 1/1
#2 lore raw
In reply to Andrew Cooper
Quoted 4 lines · Andrew Cooper

Switch the PV message to match the wording of the PVH side, use the same number of ***'s, explicitly identify PV vs PVH, and set the log level at INFO.

Quoted 27 lines

---
CC: Jan Beulich <[email protected]>
CC: Wei Liu <[email protected]>
CC: Roger Pau Monné <[email protected]>

---
 xen/arch/x86/hvm/dom0_build.c | 2 +-
 xen/arch/x86/pv/dom0_build.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
xen/arch/x86/hvm/dom0_build.c +1 -1
index 962dc14..bf7baa8 100644
@@ -1064,7 +1064,7 @@ int __init dom0_construct_pvh(struct domain *d, const module_t *image,
     paddr_t entry, start_info;
     int rc;
 
-    printk("** Building a PVH Dom0 **\n");
+    printk(XENLOG_INFO "*** Building a PVH Dom0 ***\n");
 
     iommu_hwdom_init(d);
 
xen/arch/x86/pv/dom0_build.c +0 -0
index e7065bf..87b325c 100644

xen/arch/x86/pv/dom0_build.c int __init dom0_construct_pv(struct domain *d, · line 331

Quoted 5 lines
xen/arch/x86/pv/dom0_build.c +1 -1
@@ -328,7 +328,7 @@ int __init dom0_construct_pv(struct domain *d,
     /* Machine address of next candidate page-table page. */
     paddr_t mpt_alloc;
 
-    printk("*** LOADING DOMAIN 0 ***\n");
+    printk(XENLOG_INFO "*** Building a PV Dom0 ***\n");

Now that we have the shim this should probably be:

"*** Building a PV Dom%c ***\n", pv_shim ? 'U' : '0'

But in any case can be fixed in a subsequent commit.

Thanks, Roger.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#3 lore raw
Quoted 37 lines · Roger Pau Monné
Quoted 4 lines · Andrew Cooper

Switch the PV message to match the wording of the PVH side, use the same number of ***'s, explicitly identify PV vs PVH, and set the log level at INFO.

Quoted 30 lines

---
CC: Jan Beulich <[email protected]>
CC: Wei Liu <[email protected]>
CC: Roger Pau Monné <[email protected]>

---
 xen/arch/x86/hvm/dom0_build.c | 2 +-
 xen/arch/x86/pv/dom0_build.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
xen/arch/x86/hvm/dom0_build.c +1 -1
index 962dc14..bf7baa8 100644
@@ -1064,7 +1064,7 @@ int __init dom0_construct_pvh(struct domain *d, const module_t *image,
     paddr_t entry, start_info;
     int rc;
 
-    printk("** Building a PVH Dom0 **\n");
+    printk(XENLOG_INFO "*** Building a PVH Dom0 ***\n");
 
     iommu_hwdom_init(d);
 
xen/arch/x86/pv/dom0_build.c +0 -0
index e7065bf..87b325c 100644
@@ -328,7 +328,7 @@ int __init dom0_construct_pv(struct domain *d,
     /* Machine address of next candidate page-table page. */
     paddr_t mpt_alloc;
 
Quoted 7 lines

xen/arch/x86/pv/dom0_build.c int __init dom0_construct_pv(struct domain *d, · line 331

Quoted 2 lines
xen/arch/x86/pv/dom0_build.c +1 -1
-    printk("*** LOADING DOMAIN 0 ***\n");
+    printk(XENLOG_INFO "*** Building a PV Dom0 ***\n");

Now that we have the shim this should probably be:

"*** Building a PV Dom%c ***\n", pv_shim ? 'U' : '0'

But in any case can be fixed in a subsequent commit.

Good point. I'll fold that in, if there are no objections.

~Andrew

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

Acked-by
#4 lore raw
Quoted 13 lines
Quoted 1 line
Quoted 1 line · On 26.01.18 at 17:28, <[email protected]> wrote:
Quoted 11 lines · Roger Pau Monné

xen/arch/x86/pv/dom0_build.c int __init dom0_construct_pv(struct domain *d, · line 331

Quoted 8 lines · Andrew Cooper
xen/arch/x86/pv/dom0_build.c +1 -1
@@ -328,7 +328,7 @@ int __init dom0_construct_pv(struct domain *d,
     /* Machine address of next candidate page-table page. */
     paddr_t mpt_alloc;
 
-    printk("*** LOADING DOMAIN 0 ***\n");
+    printk(XENLOG_INFO "*** Building a PV Dom0 ***\n");

Now that we have the shim this should probably be:

Quoted 5 lines
Quoted 3 lines

"*** Building a PV Dom%c ***\n", pv_shim ? 'U' : '0'

But in any case can be fixed in a subsequent commit.

Good point. I'll fold that in, if there are no objections.

With that (preferably using Dom%d as just mentioned in anyother reply)

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel

#5 lore raw
In reply to Roger Pau Monné
Quoted 8 lines
Quoted 1 line
Quoted 1 line · On 26.01.18 at 17:20, <[email protected]> wrote:
Quoted 6 lines · Andrew Cooper
xen/arch/x86/pv/dom0_build.c +0 -0
@@ -328,7 +328,7 @@ int __init dom0_construct_pv(struct domain *d,
     /* Machine address of next candidate page-table page. */
     paddr_t mpt_alloc;
 
Quoted 6 lines

xen/arch/x86/pv/dom0_build.c int __init dom0_construct_pv(struct domain *d, · line 331

Quoted 2 lines
xen/arch/x86/pv/dom0_build.c +1 -1
-    printk("*** LOADING DOMAIN 0 ***\n");
+    printk(XENLOG_INFO "*** Building a PV Dom0 ***\n");

Now that we have the shim this should probably be:

"*** Building a PV Dom%c ***\n", pv_shim ? 'U' : '0'

Or, as you had suggested elsewhere in a similar case, Dom%d with the actual domain ID.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel