All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Kiper <daniel.kiper@oracle.com>
To: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Mark Rutland <mark.rutland@arm.com>,
	Juergen Gross <jgross@suse.com>,
	sstabellini@kernel.org,
	Ard Biesheuvel <ard.biesheuvel@linaro.org>,
	linux-kernel@vger.kernel.org, xen-devel@lists.xen.org,
	Julien Grall <julien.grall@arm.com>,
	linux-efi@vger.kernel.org,
	Boris Ostrovsky <boris.ostrovsky@oracle.com>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] arm64: xen: Implement EFI reset_system callback
Date: Wed, 19 Apr 2017 21:43:29 +0200	[thread overview]
Message-ID: <20170419194329.GP16658__43554.3970008895$1492631108$gmane$org@olila.local.net-space.pl> (raw)
In-Reply-To: <20170419193738.GM24360@codeblueprint.co.uk>

On Wed, Apr 19, 2017 at 08:37:38PM +0100, Matt Fleming wrote:
> 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().

This is more or less what I expected. Thanks a lot for explanation.

Daniel

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2017-04-19 19:43 UTC|newest]

Thread overview: 84+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-05 18:14 [PATCH] arm64: xen: Implement EFI reset_system callback Julien Grall
2017-04-05 18:14 ` Julien Grall
2017-04-05 19:49 ` Boris Ostrovsky
2017-04-05 19:49 ` Boris Ostrovsky
2017-04-05 19:49   ` Boris Ostrovsky
2017-04-06  6:23   ` Juergen Gross
2017-04-06  6:23   ` Juergen Gross
2017-04-06  6:23     ` Juergen Gross
2017-04-06  8:32     ` Julien Grall
2017-04-06  8:32     ` Julien Grall
2017-04-06  8:32       ` Julien Grall
2017-04-06  8:37       ` Juergen Gross
2017-04-06  8:37         ` Juergen Gross
2017-04-06  8:37       ` Juergen Gross
2017-04-06 14:27       ` Daniel Kiper
2017-04-06 14:27         ` Daniel Kiper
2017-04-06 14:32         ` Julien Grall
2017-04-06 14:32           ` Julien Grall
2017-04-06 14:37           ` Boris Ostrovsky
2017-04-06 14:37           ` Boris Ostrovsky
2017-04-06 14:37             ` Boris Ostrovsky
2017-04-06 14:32         ` Julien Grall
2017-04-06 14:38         ` Juergen Gross
2017-04-06 14:38           ` Juergen Gross
2017-04-06 15:20           ` Daniel Kiper
2017-04-06 15:20             ` Daniel Kiper
2017-04-06 15:39             ` Julien Grall
2017-04-06 15:39               ` Julien Grall
2017-04-06 15:55               ` Mark Rutland
2017-04-06 15:55               ` Mark Rutland
2017-04-06 15:55                 ` Mark Rutland
2017-04-06 15:55                 ` Mark Rutland
2017-04-18 13:46                 ` Matt Fleming
2017-04-18 13:46                 ` Matt Fleming
2017-04-18 13:46                   ` Matt Fleming
2017-04-18 13:46                   ` Matt Fleming
2017-04-19 19:29                   ` Daniel Kiper
2017-04-19 19:29                   ` Daniel Kiper
2017-04-19 19:29                     ` Daniel Kiper
2017-04-19 19:29                     ` Daniel Kiper
2017-04-19 19:37                     ` Matt Fleming
2017-04-19 19:37                       ` Matt Fleming
2017-04-19 19:37                       ` Matt Fleming
2017-04-19 19:43                       ` Daniel Kiper [this message]
2017-04-19 19:43                       ` Daniel Kiper
2017-04-19 19:43                         ` Daniel Kiper
2017-04-19 19:43                         ` Daniel Kiper
2017-04-19 19:37                     ` Matt Fleming
2017-04-06 16:06               ` Daniel Kiper
2017-04-06 16:06               ` Daniel Kiper
2017-04-06 16:06                 ` Daniel Kiper
2017-04-06 16:22                 ` Juergen Gross
2017-04-06 16:22                 ` Juergen Gross
2017-04-06 16:22                   ` Juergen Gross
2017-04-06 16:43                   ` Daniel Kiper
2017-04-06 16:43                   ` Daniel Kiper
2017-04-06 16:43                     ` Daniel Kiper
2017-04-06 17:39                     ` Juergen Gross
2017-04-06 17:39                       ` Juergen Gross
2017-04-18 18:37                       ` Stefano Stabellini
2017-04-18 18:37                       ` Stefano Stabellini
2017-04-18 18:37                         ` Stefano Stabellini
2017-04-18 18:43                         ` Juergen Gross
2017-04-18 18:43                         ` Juergen Gross
2017-04-18 18:43                           ` Juergen Gross
2017-04-18 18:46                           ` Stefano Stabellini
2017-04-18 18:46                             ` Stefano Stabellini
2017-04-18 18:51                             ` Juergen Gross
2017-04-18 18:51                               ` Juergen Gross
2017-04-20 18:09                               ` Julien Grall
2017-04-20 18:09                                 ` Julien Grall
2017-04-20 18:09                                 ` Julien Grall
2017-04-20 18:09                               ` Julien Grall
2017-04-18 18:51                             ` Juergen Gross
2017-04-18 18:46                           ` Stefano Stabellini
2017-04-06 17:39                     ` Juergen Gross
2017-04-06 15:39             ` Julien Grall
2017-04-06 15:20           ` Daniel Kiper
2017-04-06 14:38         ` Juergen Gross
2017-04-06 14:27       ` Daniel Kiper
2017-04-05 21:26 ` Stefano Stabellini
2017-04-05 21:26 ` Stefano Stabellini
2017-04-05 21:26   ` Stefano Stabellini
  -- strict thread matches above, loose matches on Subject: below --
2017-04-05 18:14 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='20170419194329.GP16658__43554.3970008895$1492631108$gmane$org@olila.local.net-space.pl' \
    --to=daniel.kiper@oracle.com \
    --cc=ard.biesheuvel@linaro.org \
    --cc=boris.ostrovsky@oracle.com \
    --cc=jgross@suse.com \
    --cc=julien.grall@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-efi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=matt@codeblueprint.co.uk \
    --cc=sstabellini@kernel.org \
    --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.