diff mbox

kernel-parameters: document earlycon=xenboot

Message ID 1459824491-15716-1-git-send-email-cjp256@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Chris Patterson April 5, 2016, 2:48 a.m. UTC
Add earlycon=xenboot option to Documentation/kernel-parameters.txt.

Signed-off-by: Chris Patterson <cjp256@gmail.com>
---
 Documentation/kernel-parameters.txt | 2 ++
 1 file changed, 2 insertions(+)

Comments

Konrad Rzeszutek Wilk April 5, 2016, 1:49 p.m. UTC | #1
On Mon, Apr 04, 2016 at 10:48:11PM -0400, Chris Patterson wrote:
> Add earlycon=xenboot option to Documentation/kernel-parameters.txt.
> 

But it is not true.

I tried this on x86: "earlycon=xenboot console=tty0"

And nothing from Linux came during earlyboot to the Xen console?

> Signed-off-by: Chris Patterson <cjp256@gmail.com>
> ---
>  Documentation/kernel-parameters.txt | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
> index ecc74fa..e01ec39 100644
> --- a/Documentation/kernel-parameters.txt
> +++ b/Documentation/kernel-parameters.txt
> @@ -1078,6 +1078,8 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
>  			address. The serial port must already be setup
>  			and configured. Options are not yet supported.
>  
> +		xenboot	Use Xen hypervisor console for early console.
> +
>  	earlyprintk=	[X86,SH,BLACKFIN,ARM,M68k]
>  			earlyprintk=vga
>  			earlyprintk=efi
> -- 
> 2.1.4
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
Chris Patterson April 5, 2016, 3:43 p.m. UTC | #2
On Tue, Apr 5, 2016 at 9:49 AM, Konrad Rzeszutek Wilk
<konrad.wilk@oracle.com> wrote:
> On Mon, Apr 04, 2016 at 10:48:11PM -0400, Chris Patterson wrote:
>> Add earlycon=xenboot option to Documentation/kernel-parameters.txt.
>>
>
> But it is not true.
>
> I tried this on x86: "earlycon=xenboot console=tty0"
>

I can investigate further, but hopefully Stefano can chime in more
definitively on what is supported.

I used "earlycon=xenboot console=hvc0" with success for dom0 on my
ARM64 platform.
Konrad Rzeszutek Wilk April 5, 2016, 4:42 p.m. UTC | #3
On Tue, Apr 05, 2016 at 11:43:36AM -0400, Chris Patterson wrote:
> On Tue, Apr 5, 2016 at 9:49 AM, Konrad Rzeszutek Wilk
> <konrad.wilk@oracle.com> wrote:
> > On Mon, Apr 04, 2016 at 10:48:11PM -0400, Chris Patterson wrote:
> >> Add earlycon=xenboot option to Documentation/kernel-parameters.txt.
> >>
> >
> > But it is not true.
> >
> > I tried this on x86: "earlycon=xenboot console=tty0"
> >
> 
> I can investigate further, but hopefully Stefano can chime in more
> definitively on what is supported.
> 
> I used "earlycon=xenboot console=hvc0" with success for dom0 on my
> ARM64 platform.

Perhaps the documentation should also have [ARM], like some of the
other ones?
Chris Patterson April 5, 2016, 9:22 p.m. UTC | #4
On Tue, Apr 5, 2016 at 12:42 PM, Konrad Rzeszutek Wilk
<konrad.wilk@oracle.com> wrote:
> On Tue, Apr 05, 2016 at 11:43:36AM -0400, Chris Patterson wrote:
>> On Tue, Apr 5, 2016 at 9:49 AM, Konrad Rzeszutek Wilk
>> <konrad.wilk@oracle.com> wrote:
>> > On Mon, Apr 04, 2016 at 10:48:11PM -0400, Chris Patterson wrote:
>> >> Add earlycon=xenboot option to Documentation/kernel-parameters.txt.
>> >>
>> >
>> > But it is not true.
>> >
>> > I tried this on x86: "earlycon=xenboot console=tty0"
>> >
>>
>> I can investigate further, but hopefully Stefano can chime in more
>> definitively on what is supported.
>>
>> I used "earlycon=xenboot console=hvc0" with success for dom0 on my
>> ARM64 platform.
>
> Perhaps the documentation should also have [ARM], like some of the
> other ones?

Absolutely.  I will test some combinations and be explicit about what
should work in v2.  Thanks for the feedback.

Cheers,
-Chris
Stefano Stabellini April 6, 2016, 1:16 a.m. UTC | #5
On Tue, 5 Apr 2016, Konrad Rzeszutek Wilk wrote:
> On Tue, Apr 05, 2016 at 11:43:36AM -0400, Chris Patterson wrote:
> > On Tue, Apr 5, 2016 at 9:49 AM, Konrad Rzeszutek Wilk
> > <konrad.wilk@oracle.com> wrote:
> > > On Mon, Apr 04, 2016 at 10:48:11PM -0400, Chris Patterson wrote:
> > >> Add earlycon=xenboot option to Documentation/kernel-parameters.txt.
> > >>
> > >
> > > But it is not true.
> > >
> > > I tried this on x86: "earlycon=xenboot console=tty0"

Was it a PV guest? Do you have SERIAL_EARLYCON enabled in your kconfig?
Does Xen allow DomU debug output via HYPERVISOR_console_io in your config?


> > I can investigate further, but hopefully Stefano can chime in more
> > definitively on what is supported.
> > 
> > I used "earlycon=xenboot console=hvc0" with success for dom0 on my
> > ARM64 platform.
> 
> Perhaps the documentation should also have [ARM], like some of the
> other ones?
> 

I don't recall whether I actually tested earlycon on x86, but looking at
the code it should work, at least for PV guests (you need to be able to
issue hypercalls and HVM guests cannot do that until they map the
hypercall page). 

In any case given that x86 has earlyprintk, specifying
xenboot as only available for ARM and ARM64 is also OK for me, but I
would prefer to keep it arch-independent given that earlycon is.
Konrad Rzeszutek Wilk April 8, 2016, 2:41 p.m. UTC | #6
On Tue, Apr 05, 2016 at 06:16:35PM -0700, Stefano Stabellini wrote:
> On Tue, 5 Apr 2016, Konrad Rzeszutek Wilk wrote:
> > On Tue, Apr 05, 2016 at 11:43:36AM -0400, Chris Patterson wrote:
> > > On Tue, Apr 5, 2016 at 9:49 AM, Konrad Rzeszutek Wilk
> > > <konrad.wilk@oracle.com> wrote:
> > > > On Mon, Apr 04, 2016 at 10:48:11PM -0400, Chris Patterson wrote:
> > > >> Add earlycon=xenboot option to Documentation/kernel-parameters.txt.
> > > >>
> > > >
> > > > But it is not true.
> > > >
> > > > I tried this on x86: "earlycon=xenboot console=tty0"
> 
> Was it a PV guest? Do you have SERIAL_EARLYCON enabled in your kconfig?

Yes, dom0 in fact.
> Does Xen allow DomU debug output via HYPERVISOR_console_io in your config?

Yes. That works.
> 
> 
> > > I can investigate further, but hopefully Stefano can chime in more
> > > definitively on what is supported.
> > > 
> > > I used "earlycon=xenboot console=hvc0" with success for dom0 on my
> > > ARM64 platform.
> > 
> > Perhaps the documentation should also have [ARM], like some of the
> > other ones?
> > 
> 
> I don't recall whether I actually tested earlycon on x86, but looking at
> the code it should work, at least for PV guests (you need to be able to
> issue hypercalls and HVM guests cannot do that until they map the
> hypercall page). 
> 
> In any case given that x86 has earlyprintk, specifying
> xenboot as only available for ARM and ARM64 is also OK for me, but I
> would prefer to keep it arch-independent given that earlycon is.

/me nods.
diff mbox

Patch

diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
index ecc74fa..e01ec39 100644
--- a/Documentation/kernel-parameters.txt
+++ b/Documentation/kernel-parameters.txt
@@ -1078,6 +1078,8 @@  bytes respectively. Such letter suffixes can also be entirely omitted.
 			address. The serial port must already be setup
 			and configured. Options are not yet supported.
 
+		xenboot	Use Xen hypervisor console for early console.
+
 	earlyprintk=	[X86,SH,BLACKFIN,ARM,M68k]
 			earlyprintk=vga
 			earlyprintk=efi