qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Alex Williamson <alex.williamson@redhat.com>
Cc: seabios@seabios.org, kvm@vger.kernel.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [SeaBIOS] [PATCH v5] fw/pci: Add support for mapping Intel IGD via QEMU
Date: Wed, 01 Jun 2016 11:26:54 +0200	[thread overview]
Message-ID: <1464773214.8823.16.camel@redhat.com> (raw)
In-Reply-To: <20160517203151.6996.95545.stgit@gimli.home>

On Di, 2016-05-17 at 14:44 -0600, Alex Williamson wrote:
> QEMU provides two fw_cfg files to support IGD.  The first holds the
> OpRegion data which holds the Video BIOS Table (VBT).  This needs to
> be copied into reserved memory and the address stored in the ASL
> Storage register of the device at 0xFC offset in PCI config space.
> The OpRegion is generally 8KB.  This file is named "etc/igd-opregion".
> 
> The second file tells us the required size of the stolen memory space
> for the device.  This space requires 1MB alignment and is generally
> either 1MB to 8MB depending on hardware config, but may be hundreds of
> MB for user specified stolen memory.  The base address of the reserved
> memory allocated for this is written back to the Base Data of Stolen
> Memory register (BDSM) at PCI config offset 0x5C on the device.  This
> file is named "etc/igd-bdsm-size".
> 
> QEMU documents these fw_cfg entries in docs/igd-assign.txt.
> 
> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
> ---
> 
> v6: fw_cfg BDSM entry now holds an 8-byte size integer as suggested
>     by Gerd.  Also renamed to etc/igd-bdsm-size.  Filter based on bdf
>     to only make use of this for the Intel VGA device at address
>     00:02.0, not that QEMU should attach this to anything else.
> 
> As always, comments appreciated.  I expect this will be on hold
> pending the QEMU support:
> 
> http://thread.gmane.org/gmane.comp.emulators.kvm.devel/152123

qemu patches are merged meanwhile.

Patch applied to master and cherry-picked into 1.9-stable.

thanks,
  Gerd

  reply	other threads:[~2016-06-01  9:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-17 20:44 [Qemu-devel] [PATCH v5] fw/pci: Add support for mapping Intel IGD via QEMU Alex Williamson
2016-06-01  9:26 ` Gerd Hoffmann [this message]
2016-06-01 14:19   ` [Qemu-devel] [SeaBIOS] " Alex Williamson

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=1464773214.8823.16.camel@redhat.com \
    --to=kraxel@redhat.com \
    --cc=alex.williamson@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=qemu-devel@nongnu.org \
    --cc=seabios@seabios.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;
as well as URLs for NNTP newsgroup(s).