[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140326135346.GF24856@console-pimps.org>
Date: Wed, 26 Mar 2014 13:53:46 +0000
From: Matt Fleming <matt@...sole-pimps.org>
To: Jan Beulich <JBeulich@...e.com>
Cc: david.vrabel@...rix.com, ian.campbell@...rix.com,
stefano.stabellini@...citrix.com, jeremy@...p.org,
fenghua.yu@...el.com, matt.fleming@...el.com, tony.luck@...el.com,
x86@...nel.org, tglx@...utronix.de, xen-devel@...ts.xenproject.org,
boris.ostrovsky@...cle.com, Daniel Kiper <daniel.kiper@...cle.com>,
konrad.wilk@...cle.com, Tang Liang <liang.tang@...cle.com>,
eshelton@...ox.com, mingo@...hat.com, linux-efi@...r.kernel.org,
linux-ia64@...r.kernel.org, linux-kernel@...r.kernel.org,
hpa@...or.com
Subject: Re: [PATCH v3 5/5] xen: Put EFI machinery in place
On Wed, 26 Mar, at 01:46:17PM, Matt Fleming wrote:
> On Wed, 26 Mar, at 01:31:04PM, Jan Beulich wrote:
> > >>> On 26.03.14 at 14:12, <matt@...sole-pimps.org> wrote:
> > >
> > > Is there a reason that you can't just populate an efi_system_table_t
> > > object, which could be used by efi_init(), so that we can save you the
> > > trouble of duplicating all of this code?
> >
> > Would the generic function cope with all other fields being NULL (or
> > equivalent)?
>
> I've no idea, but it shouldn't be difficult to make that work. And by
> making it work in the generic code
Guh, hit Send too soon... sorry.
What I was trying to say was that there's a real benefit to keeping all
these idiosyncrasies, such as "This field may be NULL on some platforms,
or this field, or that", in one place, because it gives you an immediate
view of what platforms Linux supports and what assumptions we can make.
It also helps immensely when the time comes to do some refactoring -
because it's all contained in one central place all the use cases are in
front of you.
Obviously this approach doesn't work for super-platform specific stuff,
but it's not clear to me that these patches fall into that category.
--
Matt Fleming, Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists