From: David Vrabel <david.vrabel@citrix.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: James Bromberger <james@rcpt.to>,
Stefano Stabellini <stefano.stabellini@citrix.com>,
debian-kernel@lists.debian.org,
xen-devel <xen-devel@lists.xen.org>,
Ian Campbell <ijc@hellion.org.uk>
Subject: Re: Debian Kernel: Xen-fb-frontend as a module?
Date: Wed, 24 Sep 2014 11:28:27 +0100 [thread overview]
Message-ID: <54229CCB.5000903@citrix.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1409241106450.22344@kaball.uk.xensource.com>
On 24/09/14 11:23, Stefano Stabellini wrote:
> On Tue, 23 Sep 2014, Konrad Rzeszutek Wilk wrote:
>> On Tue, Sep 23, 2014 at 04:57:26PM +0100, Ian Campbell wrote:
>>> On Tue, 2014-09-23 at 16:43 +0100, David Vrabel wrote:
>>>> On 23/09/14 15:30, Ian Campbell wrote:
>>>>> create !
>>>>> title it "30s delay loading xenfb driver on some systems"
>>>>> owner it Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
>>>>> thanks
>>>>>
>>>>> Hi James,
>>>>>
>>>>> Some of the other Xen devs were discussing an issue which sounded
>>>>> awfully similar to this one, so I am copying the xen-devel list and
>>>>> creating a Xen bug to track the issue, please CC xen-devel (no need to
>>>>> subscribe but you may be moderated the first time), since the tracker
>>>>> slurps mails from the list.
>>>>>
>>>>> I'm not sure of the details of the other issue but it involved
>>>>> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=b1a3b1c8a8d963424c4699efa64dd8986b2f76d7 hopefully Konrad or one of the others will follow up.
>>
>> That was with an HVM guest running under Xen 4.1 in which this
>> guest config was used:
>>
>> vfb = ['type=vnc,vncunused=1,vnclisten=0.0.0.0']
>>
>> Xend would create an XenStore keys for the PV framebuffer and also making
>> sure that QEMU VGA driver was running. The end result was that the guest
>> would boot up to Xorg VGA driver, but the frame buffer console (so from
>> the moment GRUB2 started Linux up to Xorg) would try to use the xen-fbfront.
>>
>> And since this is HVM guest and VNCviewer was slurping contents from the
>> VGA buffer - which was not used at all - we wouldn't get anything.
>>
>> Reverting the above patch fixed the issue.
>
> If you have a vfb line in your config file, aren't you actually
> explicitly requesting a vfb frontend/backend pair?
> XenD is just doing what the user asked him to do, I wouldn't call this a
> bug.
>
> What is strange is that given that there is no running vfb backend for
> HVM guests in a regular Xen 4.1 installation, xen-fbfront could never
> reach the "connected" state ("4" on xenstore): so why is Linux trying to
> use vfb when the frontend is not even connected?
>
> The reason is that xenfb_probe calls register_framebuffer and
> xenfb_make_preferred_console too early, before even knowing if the
> backend is alive.
>
> I would move the register_framebuffer and xenfb_make_preferred_console
> calls in xenfb_backend_changed, case XenbusStateConnected. That should
> fix it.
I don't think that will help. Registering the frontend driver will
still wait for CONNECTED, regardless of whether the frame buffer will
actually be used.
David
next prev parent reply other threads:[~2014-09-24 10:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <54217076.9030508@rcpt.to>
2014-09-23 14:30 ` Debian Kernel: Xen-fb-frontend as a module? Ian Campbell
[not found] ` <1411482601.1781.56.camel@kazak.uk.xensource.com>
2014-09-23 14:44 ` Ian Campbell
2014-09-23 15:00 ` Processed: " xen
2014-09-23 15:43 ` David Vrabel
2014-09-23 15:57 ` Ian Campbell
[not found] ` <1411487846.1781.83.camel@kazak.uk.xensource.com>
2014-09-23 19:14 ` Konrad Rzeszutek Wilk
2014-09-24 10:23 ` Stefano Stabellini
2014-09-24 10:28 ` David Vrabel [this message]
2014-09-24 10:36 ` Stefano Stabellini
2014-09-24 10:43 ` Ian Campbell
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=54229CCB.5000903@citrix.com \
--to=david.vrabel@citrix.com \
--cc=debian-kernel@lists.debian.org \
--cc=ijc@hellion.org.uk \
--cc=james@rcpt.to \
--cc=konrad.wilk@oracle.com \
--cc=stefano.stabellini@citrix.com \
--cc=stefano.stabellini@eu.citrix.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 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.