All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir.xen@gmail.com>
To: Jean Guyader <jean.guyader@eu.citrix.com>, xen-devel@lists.xensource.com
Cc: allen.m.kay@intel.com
Subject: Re: [PATCH] hvmloader: Intel GPU passthrough, reverse OpRegion
Date: Wed, 23 Nov 2011 17:20:18 +0000	[thread overview]
Message-ID: <CAF2DBD2.256F3%keir.xen@gmail.com> (raw)
In-Reply-To: <1322064460-22248-1-git-send-email-jean.guyader@eu.citrix.com>

On 23/11/2011 16:07, "Jean Guyader" <jean.guyader@eu.citrix.com> wrote:

> 
> The Intel GPU uses a two pages NVS region called OpRegion.
> In order to get full support for the driver in the guest
> we need to map this region.
> 
> This patch reserves 2 pages on the top of the RAM and
> mark this region as NVS in the e820. Then we write the
> address to the config space (offset 0xfc) so the device
> model can map the OpRegion at this address in the guest.

Please use mem_hole_alloc() rather than adjusting {low,high}_mem_pgend.

Is it correct to do this for *all* gfx devices with Intel vendor id?

 -- Keir

> Signed-off-by: Jean Guyader <jean.guyader@eu.citrix.com>
> ---
>  tools/firmware/hvmloader/config.h   |    1 +
>  tools/firmware/hvmloader/e820.c     |    8 ++++++++
>  tools/firmware/hvmloader/pci.c      |   28 ++++++++++++++++++++++++++++
>  tools/firmware/hvmloader/pci_regs.h |    2 ++
>  4 files changed, 39 insertions(+), 0 deletions(-)
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

  reply	other threads:[~2011-11-23 17:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-23 16:07 [PATCH] hvmloader: Intel GPU passthrough, reverse OpRegion Jean Guyader
2011-11-23 17:20 ` Keir Fraser [this message]
2011-11-23 17:28   ` Jean Guyader
2011-11-23 17:37     ` Jean Guyader
2011-11-24 11:18       ` Stefano Stabellini
2011-11-24 11:19         ` Jean Guyader
2011-11-24 11:25           ` Stefano Stabellini
2011-11-24  9:35   ` Jean Guyader
2011-11-24  9:56     ` Keir Fraser
  -- strict thread matches above, loose matches on Subject: below --
2011-11-24 14:53 Jean Guyader
2011-11-24 15:00 ` Jean Guyader

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=CAF2DBD2.256F3%keir.xen@gmail.com \
    --to=keir.xen@gmail.com \
    --cc=allen.m.kay@intel.com \
    --cc=jean.guyader@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 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.