All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@eu.citrix.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Dave Scott <Dave.Scott@eu.citrix.com>,
	David Vrabel <david.vrabel@citrix.com>,
	Stefano Stabellini <stefano.stabellini@citrix.com>,
	Ian Campbell <ian.campbell@citrix.com>,
	xen-devel@lists.xen.org
Subject: Re: [PATCH 8/8] raisin: RFC Add blktap2 as an external tree
Date: Tue, 21 Apr 2015 11:30:28 +0100	[thread overview]
Message-ID: <553626C4.4010308@eu.citrix.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1504211106190.3112@kaball.uk.xensource.com>

On 04/21/2015 11:09 AM, Stefano Stabellini wrote:
> On Tue, 21 Apr 2015, George Dunlap wrote:
>> On 04/21/2015 10:25 AM, Ian Campbell wrote:
>>> On Mon, 2015-04-20 at 18:05 +0100, Stefano Stabellini wrote:
>>>>>> I think we need to disable the build on architectures other than x86,
>>>>>> see grub for example
>>>
>>> Eventually we might want to build our own grub on ARM in order to pick
>>> up Fu Wei's multiboot for arm64 patches, until they enter distros?
>>>
>>> Or maybe Raisin on UEFI should be calling efibootmgr to register Xen
>>> directly with the BIOS, and creating a xen.cfg in /boot, i.e. the way it
>>> currently works even on x86.
>>>
>>>>> Do we?  There's no reason a blktap2 kernel module couldn't be built on
>>>>> ARM, is there?
>>>>
>>>> Maybe not, but I am pretty sure that it doesn't work at the moment. I
>>>> don't think that the userspace stuff even compiles on ARM.
>>>> Eventually we might have blktap on ARM, but I don't want to enable
>>>> stuff in Raisin that we know it does not work.
>>>
>>> Especially if it is already to a greater or lesser extent deprecated (in
>>> favour of eventual blktap3) even on x86.
>>
>> So from my discussions w/ the XenServer guys, it seems that:
>>
>> 1. The "master" branch of the blktap.git repo contains support for
>> *both* blktap3 and blktap2.5 (with a kernel module)
>>
>> 2. XenServer uses blktap3 for guest access, but still use the blktap2.5
>> w/ kernel module for dom0 access to guest disks, to avoid the
>> possibility of hitting a scalability limit due to grant references.
>>
>> So from raisin's perspective, the only difference between blktap2.5 and
>> blktap3 is using the "master" branch rather than the "blktap2" branch of
>> the repo.
> 
> That is not entirely true: compiling and installing a kernel module is
> quite different from userspace stuff, at least in terms of dependencies
> and installation paths.

The blktap.git repo doesn't compile a kernel module; it's only building
userspace binaries and libraries.  Libxl already knows how to detect the
presence or absence of the kernel module and behave accordingly.

>> Whether we maintain support for blktap2.5 in libxl is a matter for the
>> Xen maintainers; but if xapi is ever going to start using libxl, it will
>> certainly need to be able to do so.
>>
>> (Dave / David, please correct me if I'm wrong.)
>>
>> That said, there's no harm in disabling it on ARM to begin with, and
>> enabling it once blktap3 works.
> 
> Yes, I would the code in Raisin to actually work :-)

The code should work just fine.  When run on an ARM system without a
blktap2 kernel module, libxl should detect that blktap2 is not available
and not use it.  If someone builds their own ARM kernel with blktap2
enabled, it will use it.

The only reason to disable this on ARM at the minute is because you
*believe* that nobody will ever want to build the blktap2 kernel module
on ARM, and so you want to avoid the build overhead and space overhead
of compiling and using dead code.  If that's your goal, you might get
more mileage out of disabling stuff like xenmon or the paging code. :-)

There's already an ARM Server SIG for CentOS; once that gets completed,
Xen4CentOS project will probably also do an ARM server port, at which
point it will almost certainly attempt to port over the blktap2 kernel
modules.

Enabling blktap.git on ARM by default means a bit of extra compilation
time and code in the resulting binary (though not much at all).
Disabling it on ARM means that we'll have to enable it again once either
1) we get blktap3 working, or 2) someone shows an interest in using
blktap2 on ARM.

Both costs are so low as to make it a bike-shed issue in my mind.  I'd
paint the bike shed "Enable it by arm on default", but repainting the
shed when the time comes will be easy, so I don't care that much.  I
just want to make it clear that it *is* a bike-shed issue. :-)

 -George

  reply	other threads:[~2015-04-21 10:30 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-16 16:19 [PATCH 1/8] raisin: Fix non-verbose case George Dunlap
2015-04-16 16:19 ` [PATCH 2/8] Include actual config in package, not defconfig George Dunlap
2015-04-17 10:10   ` Stefano Stabellini
2015-04-16 16:19 ` [PATCH 3/8] raisin: Use fakeroot for mkdeb so we can build the package as non-root George Dunlap
2015-04-17  8:43   ` Ian Campbell
2015-04-17  9:39     ` Stefano Stabellini
2015-04-20 17:08       ` Stefano Stabellini
2015-04-20  8:57     ` George Dunlap
2015-04-20  9:09       ` Ian Campbell
2015-04-16 16:19 ` [PATCH 4/8] raisin: Use PKGTYPE rather than DISTRO to determine how to build a package George Dunlap
2015-04-17 10:10   ` Stefano Stabellini
2015-04-20 17:08     ` Stefano Stabellini
2015-04-16 16:19 ` [PATCH 5/8] raisin: Fix CentOS build George Dunlap
2015-04-16 16:23   ` George Dunlap
2015-04-17 10:14   ` Stefano Stabellini
2015-04-20  9:04     ` George Dunlap
2015-04-20 10:29       ` Stefano Stabellini
2015-04-20 17:08         ` Stefano Stabellini
2015-04-16 16:19 ` [PATCH 6/8] raisin: Break build into components and allow the sub-steps to be called individually George Dunlap
2015-04-17 10:18   ` Stefano Stabellini
2015-04-20  9:05     ` George Dunlap
2015-04-16 16:19 ` [PATCH 7/8] raisin: Rework component specification George Dunlap
2015-04-17 10:37   ` Stefano Stabellini
2015-04-20  9:17     ` George Dunlap
2015-04-20 10:26       ` Stefano Stabellini
2015-04-17 10:40   ` Stefano Stabellini
2015-04-20  9:19     ` George Dunlap
2015-04-20 17:08       ` Stefano Stabellini
2015-04-16 16:19 ` [PATCH 8/8] raisin: RFC Add blktap2 as an external tree George Dunlap
2015-04-17 10:50   ` Stefano Stabellini
2015-04-17 11:04     ` Ian Campbell
2015-04-20  9:38     ` George Dunlap
2015-04-20 10:08       ` Stefano Stabellini
2015-04-17 10:58   ` Stefano Stabellini
2015-04-20 10:59     ` George Dunlap
2015-04-20 17:05       ` Stefano Stabellini
2015-04-21  9:25         ` Ian Campbell
2015-04-21  9:49           ` George Dunlap
2015-04-21 10:09             ` Stefano Stabellini
2015-04-21 10:30               ` George Dunlap [this message]
2015-04-21 10:42                 ` Stefano Stabellini
2015-04-21 10:47                   ` George Dunlap
2015-04-21 11:01                   ` Dave Scott
2015-04-21 11:04                     ` Dave Scott
2015-04-21 11:06                       ` George Dunlap
2015-04-21 11:20                         ` Dave Scott
2015-04-21 10:06           ` Stefano Stabellini
2015-04-17 10:06 ` [PATCH 1/8] raisin: Fix non-verbose case Stefano Stabellini
2015-04-20  8:49   ` George Dunlap
2015-04-20 10:01     ` Stefano Stabellini
2015-04-20 17:07       ` Stefano Stabellini

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=553626C4.4010308@eu.citrix.com \
    --to=george.dunlap@eu.citrix.com \
    --cc=Dave.Scott@eu.citrix.com \
    --cc=david.vrabel@citrix.com \
    --cc=ian.campbell@citrix.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.