From: Jean Guyader <jean.guyader@citrix.com>
To: "Han, Weidong" <weidong.han@intel.com>
Cc: "'xen-devel@lists.xensource.com'" <xen-devel@lists.xensource.com>,
"Lin, Ben Y" <ben.y.lin@intel.com>,
"Kay, Allen M" <allen.m.kay@intel.com>,
Fraser <Keir.Fraser@eu.citrix.com>Keir,
"'bengheng@eecs.umich.edu'" <bengheng@eecs.umich.edu>
Subject: Re: [PATCH 0/2] graphics passthrough with VT-d
Date: Fri, 28 Aug 2009 09:24:31 +0100 [thread overview]
Message-ID: <20090828082431.GA16003@citrix.com> (raw)
In-Reply-To: <715D42877B251141A38726ABF5CABF2C054B533681@pdsmsx503.ccr.corp.intel.com>
On Fri, Aug 28, 2009 at 03:53:56AM -0400, Han, Weidong wrote:
> Hi all,
>
> Recently, more and more people are interesting in gfx passthrough. But now xen-unstable doesn't support it, although some guys (Jean Guyader, Beng Heng, Ng) posted gfx passthrough patches. If xen-unstable includes gfx passthrough support, people can be easy to try it.
>
> gfx passthrough is more complicated than other PCI device passthrough such as NIC, and is hard to use a generic approach for all gfx passthrough. But there are some necessary changes for gfx passthrough:
> 1. disable emulated VGA adapter, instead use passthroughed gfx
> 2. load VGA bios of the gfx to guest
> 3. passthrough legacy VGA IO ports and MMIOs to guest
>
> This patchset implements above common changes. Based on the common changes, we are investigating to support more gfx cards and guest OSs. We will post the hacks in future.
>
> The patchset supports to passthrough the primary gfx and discrete gfx. With the patchset, virtualization friendly gfx cards can be passthroughed (e.g. Nvidia FX3800), IGD and many discrete gfx cards are not supported yet.
>
> This is easy to use, the only difference from other PCI passthrough is to add following lines to hvm configure file:
>
> #----------------------------------------------------------------------------------------
> # 0: no gfx passthru, 1: IGD passthru, 2: discrete gfx passthru, default is 0
> gfx_passthru=2
>
> and also pls passthrough a USB controller for keyboard/mouse use in guest. (Now there are some issues on USB controller passthrough with pv-ops dom0, so currently prefer to use 2.6.18 dom0.)
>
Once we have those patch inside xen-unstable, I could commit the patch we have for XCI
to share the host keyboard/mouse with multiple vms.
>
> The patchset is as follows:
> 1. PATCH 1/2: changes in xen-unstable
> - retrieves VGA bios from host VGA BIOS address (0xC0000), then load it to guest VGA BIOS address (This is the same with XCI).
> - Enlarge guest MMIO range to contain gfx card's large memory
> - add a config option 'gfx_passthru' for gfx passthrough
>
> 2. PATCH 2/2: changes in QEMU
> - disable emulated VGA adapter
> - register/unregister legacy VGA I/O ports and MMIOs
>
>
Hi,
Has those patch been tested with an intel IGD?
Because I think they are some pieces missing:
- GMCH mapping in the guest.
- VID DID pt for the host bridge (for linux hvm guest).
- TOM pass through for winxp guest.
Jean
next prev parent reply other threads:[~2009-08-28 8:24 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-28 7:53 [PATCH 0/2] graphics passthrough with VT-d Han, Weidong
2009-08-28 8:24 ` Jean Guyader [this message]
2009-08-28 8:32 ` Han, Weidong
2010-03-13 0:37 ` [PATCH 0/2] graphics passthrough with VT-d / keyboard and mouse sharing patch Pasi Kärkkäinen
2010-03-17 15:42 ` Jean Guyader
2010-03-18 16:01 ` Pasi Kärkkäinen
2010-08-15 19:50 ` Pasi Kärkkäinen
2009-08-28 9:04 ` [PATCH 0/2] graphics passthrough with VT-d Andrew Lyon
2009-08-28 9:13 ` Han, Weidong
2009-08-28 10:23 ` Andrew Lyon
2009-09-16 14:23 ` Stefano Stabellini
2009-09-16 23:50 ` Lin, Ben Y
2009-09-21 17:05 ` Jun Koi
2009-09-22 2:17 ` Lin, Ben Y
2009-09-17 1:10 ` Han, Weidong
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=20090828082431.GA16003@citrix.com \
--to=jean.guyader@citrix.com \
--cc=Keir.Fraser@eu.citrix.com \
--cc=allen.m.kay@intel.com \
--cc=ben.y.lin@intel.com \
--cc=weidong.han@intel.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).