xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH RFC 3/9] console: add EHCI debug port based serial console
Date: Tue, 31 Jul 2012 13:21:14 -0400	[thread overview]
Message-ID: <20120731172114.GB29533@phenom.dumpdata.com> (raw)
In-Reply-To: <5017A101020000780009174E@nat28.tlf.novell.com>

On Tue, Jul 31, 2012 at 08:10:25AM +0100, Jan Beulich wrote:
> >>> On 30.07.12 at 22:51, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
> >> +    set_fixmap_nocache(FIX_EHCI_DBGP, dbgp->bar_val);
> > 
> > Should this have dbgp->bar_val & PAGE_MASK ?
> 
> No, the set_fixmap_nocache() implementation shifts out the low
> bits.
> 
> >> +    case PHYSDEVOP_DBGP_RESET_PREPARE:
> > 
> > Oh, you have a handoff protocol!
> > 
> > So how does this work without using this? Meaning if one uses Xen hypervisor
> > EHCI with a pvops kernel that does not implement this?
> 
> The hypervisor will lose access to its console (and the next console
> access will cause a brief hang that does no other harm). That's the
> same behavior as for native Linux if you ripped out the handoff
> protocol (and the effect is even specified that way by the
> specification). Plus - no-one is required to use the new functionality
> when (s)he's aware that Dom0 doesn't cope.

Sure.
> 
> >> +        return ehci_dbgp_external_startup(&ehci_dbgp) ?: 1;
> > 
> > Oh, this is new. With the ?: it just passes on the return value from
> > ehci_dbgp_external_startup?
> 
> Yes, but it's not new. Just grep for the construct in Xen or Linux -
> it's being used in a number of places, and has been supported by
> gcc virtually forever.

Ok, never hit upon it until now. Either way, you can tag on Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
if you would like.

Thanks!
> 
> Jan

      reply	other threads:[~2012-07-31 17:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-24 13:03 [PATCH RFC 3/9] console: add EHCI debug port based serial console Jan Beulich
2012-07-30 20:51 ` Konrad Rzeszutek Wilk
2012-07-31  7:10   ` Jan Beulich
2012-07-31 17:21     ` Konrad Rzeszutek Wilk [this message]

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=20120731172114.GB29533@phenom.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=JBeulich@suse.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 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).