[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen staging] x86/boot: Link opt_dom0_verbose to CONFIG_VERBOSE_DEBUG
commit 679216943f545cad8ab0fa32763dd5b9efc44d5f Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Mon May 20 10:14:05 2019 +0000 Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CommitDate: Thu May 23 15:59:00 2019 +0100 x86/boot: Link opt_dom0_verbose to CONFIG_VERBOSE_DEBUG We currently have an asymmetric setup where CONFIG_VERBOSE_DEBUG controls extra diagnostics for a PV dom0, and opt_dom0_verbose controls extra diagnostics for a PVH dom0. Default opt_dom0_verbose to CONFIG_VERBOSE_DEBUG and use opt_dom0_verbose consistently. Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx> --- docs/misc/xen-command-line.pandoc | 3 ++- xen/arch/x86/dom0_build.c | 2 +- xen/arch/x86/pv/dom0_build.c | 7 ++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/misc/xen-command-line.pandoc b/docs/misc/xen-command-line.pandoc index f53d5afb92..25c910b232 100644 --- a/docs/misc/xen-command-line.pandoc +++ b/docs/misc/xen-command-line.pandoc @@ -687,7 +687,8 @@ Controls for how dom0 is constructed on x86 systems. guests do no require any paging support by default. * The `verbose` boolean is intended for diagnostics, and prints out extra - information during the dom0 build. It defaults to false. + information during the dom0 build. It defaults to the compile time choice + of `CONFIG_VERBOSE_DEBUG`. ### dom0-iommu = List of [ passthrough=<bool>, strict=<bool>, map-inclusive=<bool>, diff --git a/xen/arch/x86/dom0_build.c b/xen/arch/x86/dom0_build.c index 93e5531b8a..9b063639c9 100644 --- a/xen/arch/x86/dom0_build.c +++ b/xen/arch/x86/dom0_build.c @@ -281,7 +281,7 @@ struct vcpu *__init alloc_dom0_vcpu0(struct domain *dom0) bool __initdata opt_dom0_shadow; #endif bool __initdata opt_dom0_pvh = !IS_ENABLED(CONFIG_PV); -bool __initdata opt_dom0_verbose; +bool __initdata opt_dom0_verbose = IS_ENABLED(CONFIG_VERBOSE_DEBUG); static int __init parse_dom0_param(const char *s) { diff --git a/xen/arch/x86/pv/dom0_build.c b/xen/arch/x86/pv/dom0_build.c index 4a1526ab2a..903611fb0d 100644 --- a/xen/arch/x86/pv/dom0_build.c +++ b/xen/arch/x86/pv/dom0_build.c @@ -345,9 +345,10 @@ int __init dom0_construct_pv(struct domain *d, if ( (rc = elf_init(&elf, image_start, image_len)) != 0 ) return rc; -#ifdef CONFIG_VERBOSE_DEBUG - elf_set_verbose(&elf); -#endif + + if ( opt_dom0_verbose ) + elf_set_verbose(&elf); + elf_parse_binary(&elf); if ( (rc = elf_xen_parse(&elf, &parms)) != 0 ) goto out; -- generated by git-patchbot for /home/xen/git/xen.git#staging _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |