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

[PATCH] x86/PVH: allow Dom0 ELF parsing to be verbose


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 30 Oct 2023 14:14:44 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • 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=3Q4mQqnMvveaYTXc/q/QyyNJWrBwCyPsV63BAEhdJmM=; b=hdhR/Oyr8+PKTeY7+dgT9umluxZhmOvcJIxObP0t2m4JQKtgmscQQ6sU/MS9eOIcrgKqhi4sfxEjA5EWTPHCR/uYyTWey55e8j8noO5SAuGbRHNGzIK6s8i2+t95S8i7lHDCG7JtbgbPhQPKqvGaV2/TjP06i1lMMwqS/vtpckuxfUrFxo27C486pn1rVPgGFUrpi9NEUfF/yPSEP2fw7b0uF3cWMN/5GOklLHNGGBXGf9tfCZvZOJZzFRvIr5L7d/3yf/ojZOtzyx5wQ5tOdp+UUkGv8hWcpqdFu1egMsR+vfpp+qH20FYCzFq5YqC1bOROWFKCtkhtDFi6WYP7pA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JM7AhipIM/gAKD6N379Ecjai+UVnZkt9CCjrKR4qdVZnRRHJWHQcCCa3K3WRLR0QFBhsDGFYXKWfjfhb+aJl9nR/YrBQxSUkbt6qGp+EmDywgcNVsGjprHdxAVd9CH+FXFXLXjqkvkzpaAE5IkXv0Ndxv0bt6FLUTha48QW+Qh7DNxZwI2APyBg2+ZXxFcdyJ0vIpKkg/iWee8+KlOFQyQk2qgjwEIc4XV98x/rBwWjIDAjNtEzFacj513RZDE3j6hb3kC7n/jwzcOiluj8idAOgZ0DUutoP/GK23Lp0gK6sKpvysAWGpkvOE2UHQnsarNAQqtEqwbXtd+mq/K+1ig==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Mon, 30 Oct 2023 13:14:59 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

VERBOSE had ceased to exist already before the introduction of this ELF
parsing code.

Fixes: 62ba982424cb ("x86: parse Dom0 kernel for PVHv2")
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

--- a/xen/arch/x86/hvm/dom0_build.c
+++ b/xen/arch/x86/hvm/dom0_build.c
@@ -557,9 +557,8 @@ static int __init pvh_load_kernel(struct
         printk("Unable to init ELF\n");
         return rc;
     }
-#ifdef VERBOSE
-    elf_set_verbose(&elf);
-#endif
+    if ( opt_dom0_verbose )
+        elf_set_verbose(&elf);
     elf_parse_binary(&elf);
     if ( (rc = elf_xen_parse(&elf, &parms, true)) != 0 )
     {



 


Rackspace

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