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

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


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 31 Oct 2023 10:51: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=ugEItJLZv8dVP9C5M+ZUA3UW+W5uh458RgXWaOS3rZk=; b=afQT4Mbjj/xfIMpg4HcFYbto2a7hHD0dqoDW93vfXmqK0dsW9+OF5jtFXXkDxR/voV9S0JUSITgVaqsaYXJ4xaOdsjGbP5PRpLZ9viCVhWXsJc8rcqWHHhN3ehft1d15ozoointNg5kF+csI7lwvL0oBKDIK6dbHlO7YtjEcTwywkgKBFRlhZLzkPrYG4xqb3d+b+Xwquf1rGFmuk0iRrMm3Q/ynPqEEHRp1FwOaP7X1Ze6RfR3PYvunpE0YUCsbLS6+ibPPCs6o4xisOWDnEcesWBBUEw1AQSiYhJMb+Wn6MRUPH0kXFO89ZfvWVwRMj1NvMIR+mJXTwAoWHF7syA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AGtkgaXVYHs1XLhyzGSAN3eMjnQ7bpLjuwlmHBTZwb0iTv44+Jqr3Z34/JTmTSGADgMOP2y4GSwOpDnsjwgItjwxmcuzhR97vRkeANgPOwbRahpYSISwayjLaBnIZlt/J49AefQk9NNnwmj1IHbaidYcW8EuMOJnnPrdv17h6yDKhUNK+BgXnMmtCQmadS0jKqQaH8r2f4UDienprjxD314cg/Jfl5aQAYWe1ako9OSjgfU/6LFzAQnV+rAfse6MLnR83udn4wQVedYVx6m7RJb1PA58MR/W6u7YYIXqUNo1pViXfCxjxINeEVIFFYDxjr2CNdLNKPgaoI8YcJAoXA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Tue, 31 Oct 2023 09:51:59 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 31.10.2023 10:08, Roger Pau Monné wrote:
> On Mon, Oct 30, 2023 at 02:14:44PM +0100, Jan Beulich wrote:
>> 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>
> 
> Acked-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>

Thanks.

> Some of the printed information might not be relevant for PVH mode,
> like the 'ELF: addresses:' virt_* fields.

We may want to conditionalize some of that, but since you mention virt_*:
Just ahead of the printing we forcefully set e.g. virt_entry when hvm is
true. virt_base, otoh, is pretty clearly useless to log, for being set to
zero unconditionally when hvm is true.

In any event, what I was missing was the output from elf_xen_parse_note().
I had mistakenly tried to boot a PV-only kernel as PVH, but it didn't
occur to me to check for a typo in the kernel specification in the grub
entry. It was only the sequence of ELF notes that finally directed me
towards checking that ...

> Note also that in 62ba982424cb opt_dom0_verbose wasn't available yet,
> that option got introduced a couple of years later by 525ef6584f852.

Right; I've set the Fixes: tag solely from the wrong use of VERBOSE.

> Maybe it's 679216943f545 that should have also switched the
> elf_set_verbose() in the PVH dom0 builder to use opt_dom0_verbose, at
> the same time that the PV one was switched?

Perhaps that would have been a good point in time, but here we are.

Jan



 


Rackspace

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