From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: David Woodhouse <dwmw2@infradead.org>,
xen-devel@lists.xenproject.org,
George Dunlap <george.dunlap@citrix.com>,
Jan Beulich <jbeulich@suse.com>, Julien Grall <julien@xen.org>,
Stefano Stabellini <sstabellini@kernel.org>, Wei Liu <wl@xen.org>
Subject: Re: [PATCH] ns16550c: avoid crash in ns16550_endboot in PV shim mode
Date: Fri, 20 Oct 2023 15:29:12 +0200 [thread overview]
Message-ID: <ZTKAqBILUBNelYCS@macbook> (raw)
In-Reply-To: <f5603457-8bee-40b9-9ea2-d604abe4ee53@citrix.com>
On Fri, Oct 20, 2023 at 02:25:35PM +0100, Andrew Cooper wrote:
> On 20/10/2023 11:29 am, David Woodhouse wrote:
> > On Fri, 2023-10-20 at 11:14 +0100, Andrew Cooper wrote:
> >> On 19/10/2023 5:21 pm, David Woodhouse wrote:
> >>> From: David Woodhouse <dwmw@amazon.co.uk>
> >>>
> >>> In shim mode there is no hardware_domain. Dereferencing the pointer
> >>> doesn't end well.
> >>>
> >>> Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
> >>> ---
> >>> This is about as far as I got in my abortive attempt to use the PV shim
> >>> without an actual PV console being provided by the HVM hosting
> >>> environment. It still doesn't pass the guest's console through to
> >>> serial; that only seems to shim to an actual PV console.
> >> There's no such thing as a Xen VM without a PV console.
> > Huh? There are literally millions of them.
>
> I'm very prepared to believe there are millions which don't overtly
> malfunction when you don't fill in the HVM Params.
>
> Which is very different from saying "there's a way in the Xen guest ABI
> to express 'you don't have a PV console' ".
FWIW, Linux assumes that either the console page or the event channel
being 0 implies no console available [0], so I guess that's the ABI
now.
Roger.
[0] https://elixir.bootlin.com/linux/latest/source/drivers/tty/hvc/hvc_xen.c#L258
next prev parent reply other threads:[~2023-10-20 13:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-19 16:21 [PATCH] ns16550c: avoid crash in ns16550_endboot in PV shim mode David Woodhouse
2023-10-20 6:17 ` Jan Beulich
2023-10-20 10:14 ` Andrew Cooper
2023-10-20 10:29 ` David Woodhouse
2023-10-20 13:25 ` Andrew Cooper
2023-10-20 13:29 ` Roger Pau Monné [this message]
2023-10-20 13:37 ` David Woodhouse
2023-10-20 14:50 ` Durrant, Paul
2023-10-20 15:16 ` Andrew Cooper
2023-10-23 7:52 ` Roger Pau Monné
2023-10-23 8:05 ` Jan Beulich
2023-10-23 8:17 ` Roger Pau Monné
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=ZTKAqBILUBNelYCS@macbook \
--to=roger.pau@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=dwmw2@infradead.org \
--cc=george.dunlap@citrix.com \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=sstabellini@kernel.org \
--cc=wl@xen.org \
--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 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.