From: Juergen Gross <jgross@suse.com>
To: Wei Liu <wei.liu2@citrix.com>, Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Roger Pau Monne <roger.pau@citrix.com>,
Jan Beulich <JBeulich@suse.com>,
Xen-devel List <xen-devel@lists.xen.org>
Subject: Re: [Xen 4.12 bug] HVM/PVH boot confusion
Date: Wed, 30 Jan 2019 14:49:52 +0100 [thread overview]
Message-ID: <e5cd6bbb-3462-885b-8b9a-1dbea1f88972@suse.com> (raw)
In-Reply-To: <20190130133817.s2blsfsa7qhh3k6n@zion.uk.xensource.com>
On 30/01/2019 14:38, Wei Liu wrote:
> On Wed, Jan 30, 2019 at 12:46:45PM +0000, Wei Liu wrote:
>> On Wed, Jan 30, 2019 at 12:30:44PM +0000, Andrew Cooper wrote:
>>>>> There are at least two bugs here.
>>>>>
>>>>> 1) RSDP was a late addition to the PVH boot protocol. Xen's PVH
>>>>> entrypoint must not mandate its existence, because there are releases of
>>>>> the domain builder which don't provide it.
>>>> The inner Xen, in this case, can fall back to scanning low 1MB memory
>>>> for RSDP.
>>>
>>> Agreed.
>
> ---8<---
> From 46e3686355da177955ca63ce3e8cf6a80cdb897d Mon Sep 17 00:00:00 2001
> From: Wei Liu <wei.liu2@citrix.com>
> Date: Wed, 30 Jan 2019 13:31:32 +0000
> Subject: [PATCH] x86/pvh: don't mandate presence of RSDP pointer
>
> RSDP hint is not mandatory according to PVH spec. Only set the hint if
> pvh_info contains a valid pointer. The guest (xen) will fall back to
> scanning for RSDP in lower 1MB of memory.
>
> Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>
> ---
> xen/arch/x86/guest/pvh-boot.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/xen/arch/x86/guest/pvh-boot.c b/xen/arch/x86/guest/pvh-boot.c
> index 544775eeb4..c6e21fa83b 100644
> --- a/xen/arch/x86/guest/pvh-boot.c
> +++ b/xen/arch/x86/guest/pvh-boot.c
> @@ -79,8 +79,8 @@ static void __init convert_pvh_info(multiboot_info_t **mbi,
> pvh_mbi_mods[i].string = entry[i].cmdline_paddr;
> }
>
> - BUG_ON(!pvh_info->rsdp_paddr);
> - rsdp_hint = pvh_info->rsdp_paddr;
> + if ( pvh_info->rsdp_paddr )
Why do you need the if here? rsdp_hint is NULL initially.
So just removing the BUG_ON() seems to be required.
Juergen
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2019-01-30 13:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-29 19:49 [Xen 4.12 bug] HVM/PVH boot confusion Andrew Cooper
2019-01-30 11:25 ` Roger Pau Monné
2019-01-30 12:10 ` Anthony PERARD
2019-01-30 12:22 ` Andrew Cooper
2019-01-30 11:59 ` Wei Liu
2019-01-30 12:30 ` Andrew Cooper
2019-01-30 12:46 ` Wei Liu
2019-01-30 13:38 ` Wei Liu
2019-01-30 13:49 ` Juergen Gross [this message]
2019-01-30 13:51 ` Wei Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e5cd6bbb-3462-885b-8b9a-1dbea1f88972@suse.com \
--to=jgross@suse.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=roger.pau@citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.