From: Matt Fleming <matt-mF/unelCI9GS6iBeEJttW/XRex20P6io@public.gmane.org>
To: Daniel Kiper <daniel.kiper-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
Julien Grall <julien.grall-5wv7dgnIgG8@public.gmane.org>,
Juergen Gross <jgross-IBi9RG/b67k@public.gmane.org>,
Boris Ostrovsky
<boris.ostrovsky-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>,
sstabellini-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
xen-devel-GuqFBffKawuEi8DpZVb4nw@public.gmane.org,
Ard Biesheuvel
<ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] arm64: xen: Implement EFI reset_system callback
Date: Wed, 19 Apr 2017 20:37:38 +0100 [thread overview]
Message-ID: <20170419193738.GM24360@codeblueprint.co.uk> (raw)
In-Reply-To: <20170419192906.GO16658-fJNZiO034lp9pOct4yEdx/3oZC3j2Omk@public.gmane.org>
On Wed, 19 Apr, at 09:29:06PM, Daniel Kiper wrote:
> On Tue, Apr 18, 2017 at 02:46:50PM +0100, Matt Fleming wrote:
> > On Thu, 06 Apr, at 04:55:11PM, Mark Rutland wrote:
> > >
> > > Please, let's keep the Xen knowledge constrained to the Xen EFI wrapper,
> > > rather than spreading it further.
> > >
> > > IMO, given reset_system is a *mandatory* function, the Xen wrapper
> > > should provide an implementation.
> > >
> > > I don't see why you can't implement a wrapper that calls the usual Xen
> > > poweroff/reset functions.
> >
> > I realise I'm making a sweeping generalisation, but adding
> > EFI_PARAVIRT is almost always the wrong thing to do.
>
> Why?
Because it makes paravirt a special case, and there's usually very
little reason to make it special in the EFI code. Special-casing means
more branches, more code paths, a bigger testing matrix and more
complex code.
EFI_PARAVIRT does have its uses, like for those scenarios where we
don't have a table of function pointers that can be overidden for
paravirt.
But we do have such a table for ->reset_system().
next prev parent reply other threads:[~2017-04-19 19:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20170405181417.15985-1-julien.grall@arm.com>
[not found] ` <e5b548be-2ec3-9b4f-a456-929d5fb881ab@oracle.com>
[not found] ` <b8c9c6cd-906a-2360-ca9f-d34a45258567@suse.com>
[not found] ` <3f6f5853-cd08-8afc-f71a-b0c1545c7564@arm.com>
[not found] ` <20170406142710.GE4372@olila.local.net-space.pl>
[not found] ` <ed7f64f4-17db-e2a5-f362-b382666cbc36@suse.com>
[not found] ` <20170406152040.GH4372@olila.local.net-space.pl>
[not found] ` <e449f220-8db7-d58c-bdbf-47ccd6dd014b@arm.com>
[not found] ` <e449f220-8db7-d58c-bdbf-47ccd6dd014b-5wv7dgnIgG8@public.gmane.org>
2017-04-06 15:55 ` [PATCH] arm64: xen: Implement EFI reset_system callback Mark Rutland
2017-04-18 13:46 ` Matt Fleming
[not found] ` <20170418134650.GL24360-mF/unelCI9GS6iBeEJttW/XRex20P6io@public.gmane.org>
2017-04-19 19:29 ` Daniel Kiper
[not found] ` <20170419192906.GO16658-fJNZiO034lp9pOct4yEdx/3oZC3j2Omk@public.gmane.org>
2017-04-19 19:37 ` Matt Fleming [this message]
2017-04-19 19:43 ` Daniel Kiper
[not found] ` <20170406160653.GJ4372@olila.local.net-space.pl>
[not found] ` <c23a6d11-cde8-7690-9676-537b5f17b967@suse.com>
[not found] ` <20170406164309.GM4372@olila.local.net-space.pl>
[not found] ` <b6cd0d59-9569-2958-9cc7-c971139881f4@suse.com>
[not found] ` <alpine.DEB.2.10.1704181135580.31486@sstabellini-ThinkPad-X260>
[not found] ` <fcc5ac4b-ed82-b5dd-a848-9ac9a3572853@suse.com>
[not found] ` <alpine.DEB.2.10.1704181145420.31486@sstabellini-ThinkPad-X260>
[not found] ` <b9238471-6957-8720-9c98-37a5a32776d2@suse.com>
[not found] ` <b9238471-6957-8720-9c98-37a5a32776d2-IBi9RG/b67k@public.gmane.org>
2017-04-20 18:09 ` Julien Grall
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=20170419193738.GM24360@codeblueprint.co.uk \
--to=matt-mf/unelci9gs6ibeejttw/xrex20p6io@public.gmane.org \
--cc=ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=boris.ostrovsky-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org \
--cc=daniel.kiper-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org \
--cc=jgross-IBi9RG/b67k@public.gmane.org \
--cc=julien.grall-5wv7dgnIgG8@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=sstabellini-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=xen-devel-GuqFBffKawuEi8DpZVb4nw@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox