xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@suse.com>
To: "Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
	xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [Xen-devel] Xen 4.12 panic on Thinkpad W540 with UEFI mutiboot2, efi=no-rs workarounds it
Date: Wed, 7 Aug 2019 18:34:09 +0200	[thread overview]
Message-ID: <f8f28f3a-0fad-cbd2-44e0-9a0ecf8ac06d@suse.com> (raw)
In-Reply-To: <20190807160451.GB3257@mail-itl>

On 07.08.2019 18:04, Marek Marczykowski-Górecki  wrote:
> On Wed, Aug 07, 2019 at 05:58:59PM +0200, Jan Beulich wrote:
>> On 07.08.2019 17:51, Marek Marczykowski-Górecki  wrote:
>>> On Wed, Aug 07, 2019 at 05:33:05PM +0200, Jan Beulich wrote:
>>>> On 07.08.2019 17:17, Marek Marczykowski-Górecki  wrote:
>>>>> Actually, I've already tried, but every other build I try, I get even
>>>>> less useful call trace, for example debug unstable build:
>>>>>
>>>>>        Xen call trace:
>>>>>           [<000000007b751c09>] 000000007b751c09
>>>>>           [<8c2b0398e0000daa>] 8c2b0398e0000daa
>>>>> ...
>>>>>        GENERAL PROTECTION FAULT
>>>>>        [error_code=0000]
>>>>
>>>> But this makes reasonable sense: The faulting insn is "call *0x18(%rax)"
>>>> and %rax is 6954b2b0, which points into a block of type
>>>> EfiBootServicesData (and hence likely reused by the time of the crash
>>>> for other purposes). Hence the "/mapbs" option of xen.efi might help
>>>> here too, but iirc there's no equivalent for it in the MB2 case.
>>>
>>> Oh, yes, indeed in Qubes we have /mapbs enabled by default with xen.efi.
>>> I'd like to add it to MB2 case too. Is command line parsed at this point
>>> (efi_exit_boot()) already?
>>
>> I'm struggling a little how to reply, considering that I've already
>> said "iirc there's no equivalent for it in the MB2 case". So I guess
>> I'm simply not understanding your question, or more specifically
>> where you want to get with it.
> 
> /mapbs option is very specific to xen.efi. I'd like to add a means to
> set map_bs variable in MB2 case too. I'm asking whether I can use
> standard command line parser, or do I need something special extracting
> it from MB2 structures directly.

Well, efi_multiboot2() gets called from head.S, even before the
(non-EFI only) cmdline_parse_early. I don't suppose there's a way
to avoid mixing this new option into the "normal" command line,
and hence there's also no way around peeking into the command
line early. Of course there's the option to see whether what
efi_arch_process_memory_map() could be deferred until later. But
likely that would be a far more intrusive change than what you're
considering to carry out.

Jan

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2019-08-07 16:34 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20190807132657.GA2852@mail-itl>
2019-08-07 13:50 ` [Xen-devel] Xen 4.12 panic on Thinkpad W540 with UEFI mutiboot2, efi=no-rs workarounds it Andrew Cooper
2019-08-07 14:45 ` Jan Beulich
     [not found]   ` <20190807151703.GA2659@mail-itl>
2019-08-07 15:33     ` Jan Beulich
2019-08-07 15:51       ` Marek Marczykowski-Górecki
2019-08-07 15:58         ` Jan Beulich
2019-08-07 16:04           ` Marek Marczykowski-Górecki
2019-08-07 16:34             ` Jan Beulich [this message]
     [not found]               ` <20190807192557.GC3257@mail-itl>
2019-08-08  2:53                 ` Marek Marczykowski-Górecki
2019-08-08  6:03                   ` Jan Beulich
2019-10-08 11:50                     ` Marek Marczykowski-Górecki
2019-10-08 13:08                       ` Jan Beulich
2019-10-08 13:52                         ` Marek Marczykowski-Górecki
2019-10-08 14:19                           ` Jan Beulich
2019-10-08 16:29                             ` Marek Marczykowski-Górecki
2019-10-09  0:40                               ` Marek Marczykowski-Górecki
2019-10-09  8:56                               ` Jan Beulich
2019-10-09 10:31                                 ` Marek Marczykowski-Górecki
2019-10-09 10:50                                   ` Jan Beulich
2019-10-09 11:00                                     ` Marek Marczykowski-Górecki
2019-10-09 11:48                                       ` Jan Beulich
2019-10-09 11:52                                         ` Marek Marczykowski-Górecki
2019-10-09 12:07                                           ` Jan Beulich
2019-10-09 12:21                                             ` Marek Marczykowski-Górecki
2019-10-09 12:24                                               ` Jan Beulich
2019-10-09 12:27                                                 ` Marek Marczykowski-Górecki
2019-10-09 13:31                                                   ` Jan Beulich
2019-10-09 23:57                                                     ` Marek Marczykowski-Górecki

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=f8f28f3a-0fad-cbd2-44e0-9a0ecf8ac06d@suse.com \
    --to=jbeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=marmarek@invisiblethingslab.com \
    --cc=xen-devel@lists.xenproject.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).