From owner-freebsd-xen@freebsd.org Thu Dec 15 17:55:12 2016 Return-Path: Delivered-To: freebsd-xen@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DA05AC819D9 for ; Thu, 15 Dec 2016 17:55:12 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: from mail-vk0-x22c.google.com (mail-vk0-x22c.google.com [IPv6:2607:f8b0:400c:c05::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 836CD15BB for ; Thu, 15 Dec 2016 17:55:12 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: by mail-vk0-x22c.google.com with SMTP id w194so75548310vkw.2 for ; Thu, 15 Dec 2016 09:55:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=HEo840y8QlsJsqhjOQFKyDnBHMtO/uHnWAoHRsj/N1c=; b=fcuLNVtW5M4aGhgFPGr7dbaNbc7kJIy3wWfDb80JqAAFZHorF0j+8auPFZxHWDZe5g +EHhjL7484uMdcRYCyqPzm5FFdvXTOrb9JrTV8UBsVrscopYFjc7eX2ldN7vUDr6aZVm ZiQSgsNTp7Zp2is2cqmPalcTIM8f+7PdrONR3ZC4bmuRHexXD+roofF3YQ8E/0hP6V07 E7jjlmHb8Ju4qM5aM3yc3UjWKT6iDkQminr7mL7xJK6DAcz8PzGL+Q4g+OoHuQBFPoRp yd3JcmguNMMBnFWzRq1C7OgHFXsqXv+njOi+yMj78HBppQecLsVpeZk0MXBgJwarOEHV 40xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=HEo840y8QlsJsqhjOQFKyDnBHMtO/uHnWAoHRsj/N1c=; b=qXX5cuWxzg5oGp6f6aH/gyBVukPeO8Um2aCdUPxmGtzain5pNrzafdulOZeKToHXa4 lVfkkRdPmIB+TxbS6nc50ehXTvqPIr459dy6n55GK91PsfD7diy83geNnpPrFvrzYxZ8 FgfGB1fnDYCX+iSZLIZlgxwYMf2rdpOxGX5DUTdvC5+BEt6OaxVP4fSFwTl0Fd0yWp7K tvI+3LjqUlIgBD5ous9w/zjCyeDiHEsd5CDcQKECKw5kCPaRrg7fUUEQdJRfh5DE9CEq n/KS+eyFJtZf1plWzR4cCTygOb2/Sr+7PogeZHvBlQbu/19cl8tomklEuZrKOj9FEFP+ linw== X-Gm-Message-State: AKaTC01EVckDtfG7U7hNU8ivqxurN8zdqYhve3ZjrkGIvzdZg2GPdNQ4Q7er9i4sNxZCTJ5fl8W1uuS8zSdzCA== X-Received: by 10.31.174.2 with SMTP id x2mr2179904vke.40.1481824511572; Thu, 15 Dec 2016 09:55:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.20.3 with HTTP; Thu, 15 Dec 2016 09:54:31 -0800 (PST) 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> From: Outback Dingo Date: Thu, 15 Dec 2016 12:54:31 -0500 Message-ID: Subject: Re: 11-RELEASE acting as vbd backend To: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= Cc: Nathan Friess , freebsd-xen@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-xen@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussion of the freebsd port to xen - implementation and usage List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2016 17:55:13 -0000 On Thu, Dec 15, 2016 at 12:34 PM, Roger Pau Monn=C3=A9 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"