xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Ard Biesheuvel <ard.biesheuvel@linaro.org>,
	Jan Beulich <JBeulich@suse.com>
Cc: Mark Rutland <mark.rutland@arm.com>,
	xen-devel@lists.xensource.com,
	Shannon Zhao <shannon.zhao@linaro.org>,
	Christoffer Dall <christoffer.dall@linaro.org>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: Xen, ACPI and Linux
Date: Wed, 23 Sep 2015 09:38:21 +0100	[thread overview]
Message-ID: <1442997501.10338.203.camel@citrix.com> (raw)
In-Reply-To: <CAKv+Gu_Yz=MCchWj-1tVMzLA_Q1qAeSN-B1jyEY26HLY6BCTMQ@mail.gmail.com>

On Wed, 2015-09-23 at 01:18 -0700, Ard Biesheuvel wrote:
> On 23 September 2015 at 01:12, Jan Beulich <JBeulich@suse.com> wrote:
> > > > > On 23.09.15 at 02:49, <stefano.stabellini@eu.citrix.com> wrote:
> > > Regarding Runtime Services, the EFI spec doesn't allow a NULL pointer
> > > to
> > > the Runtime Services table, so Mark would like to see a proper
> > > pointer
> > > being passed there.  The function table could be populated with
> > > hypercall wrappers in assembly, keeping the same interface to Xen
> > > that
> > > we have today in drivers/xen/efi.c. It should be part of the initial
> > > patch series.
> > 
> > I'm confused by the "interface to Xen" part: Aren't we talking about
> > what is being presented to Dom0?
> > 
> 
> Yes we are.
> 
> > In any event, the versioning question that I raised earlier remains:
> > Which version would you intend the Runtime Services table to carry
> > - the host one, or a Xen set one? In the latter case, won't you risk
> > wrong implications from the kernel looking at other version numbers
> > (yes, with proper coding it ought to be possible to avoid such, but
> > the multitude of version numbers in EFI doesn't exactly help to
> > avoid mistakes)? While in the former case you'd have to deal with
> > the table needing entries Xen may not know about.
> > 
> 
> This is simply addressed by populating the fake EFI system table
> according to the UEFI spec version field that you put in the header.
> No reason at all to base this on whatever the host provides, it should
> simply be a version that is supported by arm64 (2.00 or greater)

This doesn't address Jan's concern wrt the multiple other places UEFI
exposes version numbers which may reflect the host and not this fake EFI
table.

Ian.

  reply	other threads:[~2015-09-23  8:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-23  0:49 Xen, ACPI and Linux Stefano Stabellini
2015-09-23  8:12 ` Jan Beulich
2015-09-23  8:18   ` Ard Biesheuvel
2015-09-23  8:38     ` Ian Campbell [this message]
2015-09-23 17:48       ` Stefano Stabellini
2015-09-24 22:13         ` Stefano Stabellini
2015-09-25 20:20           ` Stefano Stabellini
2015-09-28  9:50             ` Ian Campbell
2015-09-28 10:06               ` 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=1442997501.10338.203.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=ard.biesheuvel@linaro.org \
    --cc=christoffer.dall@linaro.org \
    --cc=mark.rutland@arm.com \
    --cc=shannon.zhao@linaro.org \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /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;
as well as URLs for NNTP newsgroup(s).