Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Dec 2016 12:54:31 -0500
From:      Outback Dingo <outbackdingo@gmail.com>
To:        =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= <roger.pau@citrix.com>
Cc:        Nathan Friess <nathan.friess@gmail.com>, freebsd-xen@freebsd.org
Subject:   Re: 11-RELEASE acting as vbd backend
Message-ID:  <CAKYr3zw90=h_wQ5SWsafmGczBRUS0T-U9Tmy67RY9a20WCR9Mw@mail.gmail.com>
In-Reply-To: <20161215173432.3qjzilzot7lnddhm@dhcp-3-221.uk.xensource.com>
References:  <247e5b6c-2713-27cf-f8fa-61e55c9e2025@gmail.com> <20161206100414.pi7ep2zbkduhuol7@dhcp-3-221.uk.xensource.com> <39e43ae4-6388-c698-c3c2-43cbc1f7b93c@gmail.com> <20161209144630.dfga5mozh72veo4g@dhcp-3-221.uk.xensource.com> <584ADC91.8050909@gmail.com> <20161212103257.tg46q2s3j5riixp5@dhcp-3-221.uk.xensource.com> <20161215173432.3qjzilzot7lnddhm@dhcp-3-221.uk.xensource.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 15, 2016 at 12:34 PM, Roger Pau Monn=C3=A9 <roger.pau@citrix.co=
m> wrote:
> On Mon, Dec 12, 2016 at 10:32:57AM +0000, Roger Pau Monn=C3=A9 wrote:
>> On Fri, Dec 09, 2016 at 09:32:17AM -0700, Nathan Friess wrote:
>> > On 16-12-09 07:46 AM, Roger Pau Monn=C3=A9 wrote:
>> > > Hello,
>> > >
>> > > Sorry for the delay, there was a huge can of worms behind this. I ha=
ve a
>> > > solution, but it requires patching both Xen and the FreeBSD kernel. =
Please bear
>> > > with me, I will send those patches once ready.
>> >
>> > It sounds like you might know this already, but I did some more diggin=
g and
>> > here is what I can see so far...
>> >
>> > The important command is "xl devd".  Running that under truss, it is t=
rying
>> > to open /dev/xen/xenbus and that was the cause of the No such file err=
or.
>> > It looks like the 10.3 tools used to open /dev/xen/xenstore instead.
>> >
>> > I can get around this by exporting XENSTORED_PATH=3D"/dev/xen/xenstore=
".
>> >
>> > Now xl devd is stuck at:
>> >
>> > libxl: error: libxl_event.c:639:libxl__ev_xswatch_register: create wat=
ch for
>> > path /local/domain/7/backend: Invalid argument
>> >
>> > So it seems like an API issue with asking the kernel or dom0 to set a =
watch
>> > for new backend devices.
>>
>> Yes, the current xenstore user-space device on FreeBSD is missing the ab=
ility to
>> register xenstore watches. As said, I will hopefully be able to send the=
 patches
>> soon.
>
> OK, I finally have this ready, you will need the following patches for Fr=
eeBSD,
> which I pushed to my git repo on top of current HEAD:
>
> git://xenbits.xen.org/people/royger/freebsd.git add_watches_xenstore
>
> You can either compile a kernel from this branch or pickup the 4 top patc=
hes
> and apply them to your local tree (I don't think you are going to find an=
y
> conflicts even if the tree is stable/11 or 11.0-RELEASE).
>
> You should also update your xen-tools package to the latest version, I've=
 just
> updated it to contain the xenstore device path fix:
>
> https://svnweb.freebsd.org/ports?view=3Drevision&revision=3D428628
>
> After this is done, it should just be a matter of launching xendriverdoma=
in at
> system boot and it should work out of the box. Let me know how this goes.
>
> Thanks, Roger.

SWEEET.....


> _______________________________________________
> freebsd-xen@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-xen
> To unsubscribe, send any mail to "freebsd-xen-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKYr3zw90=h_wQ5SWsafmGczBRUS0T-U9Tmy67RY9a20WCR9Mw>