xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] kernel-parameters: document earlycon=xenboot
       [not found] <1459824491-15716-1-git-send-email-cjp256@gmail.com>
@ 2016-04-05 13:49 ` Konrad Rzeszutek Wilk
  2016-04-05 15:43   ` Chris Patterson
       [not found]   ` <CABZSBQdyVhaDS+Ry0hWbj0ZDn1tH_Wm-NoCs-oPGy0TTzgXtXA@mail.gmail.com>
  0 siblings, 2 replies; 7+ messages in thread
From: Konrad Rzeszutek Wilk @ 2016-04-05 13:49 UTC (permalink / raw)
  To: Chris Patterson
  Cc: xen-devel, stefano.stabellini, linux-doc, linux-kernel, corbet

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

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] kernel-parameters: document earlycon=xenboot
  2016-04-05 13:49 ` [PATCH] kernel-parameters: document earlycon=xenboot Konrad Rzeszutek Wilk
@ 2016-04-05 15:43   ` Chris Patterson
       [not found]   ` <CABZSBQdyVhaDS+Ry0hWbj0ZDn1tH_Wm-NoCs-oPGy0TTzgXtXA@mail.gmail.com>
  1 sibling, 0 replies; 7+ messages in thread
From: Chris Patterson @ 2016-04-05 15:43 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk
  Cc: xen-devel, Stefano Stabellini, linux-doc, linux-kernel, Jonathan Corbet

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.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] kernel-parameters: document earlycon=xenboot
       [not found]   ` <CABZSBQdyVhaDS+Ry0hWbj0ZDn1tH_Wm-NoCs-oPGy0TTzgXtXA@mail.gmail.com>
@ 2016-04-05 16:42     ` Konrad Rzeszutek Wilk
  2016-04-05 21:22       ` Chris Patterson
                         ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Konrad Rzeszutek Wilk @ 2016-04-05 16:42 UTC (permalink / raw)
  To: Chris Patterson
  Cc: xen-devel, Stefano Stabellini, linux-doc, linux-kernel, Jonathan Corbet

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?

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] kernel-parameters: document earlycon=xenboot
  2016-04-05 16:42     ` Konrad Rzeszutek Wilk
@ 2016-04-05 21:22       ` Chris Patterson
  2016-04-06  1:16       ` Stefano Stabellini
       [not found]       ` <alpine.DEB.2.10.1604051812350.31453@sstabellini-ThinkPad-X230>
  2 siblings, 0 replies; 7+ messages in thread
From: Chris Patterson @ 2016-04-05 21:22 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk
  Cc: xen-devel, Stefano Stabellini, linux-doc, linux-kernel, Jonathan Corbet

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

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] kernel-parameters: document earlycon=xenboot
  2016-04-05 16:42     ` Konrad Rzeszutek Wilk
  2016-04-05 21:22       ` Chris Patterson
@ 2016-04-06  1:16       ` Stefano Stabellini
       [not found]       ` <alpine.DEB.2.10.1604051812350.31453@sstabellini-ThinkPad-X230>
  2 siblings, 0 replies; 7+ messages in thread
From: Stefano Stabellini @ 2016-04-06  1:16 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk
  Cc: Jonathan Corbet, Chris Patterson, linux-doc, linux-kernel,
	xen-devel, Stefano Stabellini

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.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] kernel-parameters: document earlycon=xenboot
       [not found]       ` <alpine.DEB.2.10.1604051812350.31453@sstabellini-ThinkPad-X230>
@ 2016-04-08 14:41         ` Konrad Rzeszutek Wilk
  0 siblings, 0 replies; 7+ messages in thread
From: Konrad Rzeszutek Wilk @ 2016-04-08 14:41 UTC (permalink / raw)
  To: Stefano Stabellini
  Cc: Jonathan Corbet, Chris Patterson, linux-doc, linux-kernel,
	xen-devel, Stefano Stabellini

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.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH] kernel-parameters: document earlycon=xenboot
@ 2016-04-05  2:48 Chris Patterson
  0 siblings, 0 replies; 7+ messages in thread
From: Chris Patterson @ 2016-04-05  2:48 UTC (permalink / raw)
  To: corbet
  Cc: Chris Patterson, xen-devel, stefano.stabellini, linux-kernel, linux-doc

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(+)

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-04-08 14:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1459824491-15716-1-git-send-email-cjp256@gmail.com>
2016-04-05 13:49 ` [PATCH] kernel-parameters: document earlycon=xenboot Konrad Rzeszutek Wilk
2016-04-05 15:43   ` Chris Patterson
     [not found]   ` <CABZSBQdyVhaDS+Ry0hWbj0ZDn1tH_Wm-NoCs-oPGy0TTzgXtXA@mail.gmail.com>
2016-04-05 16:42     ` Konrad Rzeszutek Wilk
2016-04-05 21:22       ` Chris Patterson
2016-04-06  1:16       ` Stefano Stabellini
     [not found]       ` <alpine.DEB.2.10.1604051812350.31453@sstabellini-ThinkPad-X230>
2016-04-08 14:41         ` Konrad Rzeszutek Wilk
2016-04-05  2:48 Chris Patterson

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).