xen-devel
Re: [Xen-devel] [PATCH][VTD] enable integrated graphics passthrough for
To: |
Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> |
Subject: |
Re: [Xen-devel] [PATCH][VTD] enable integrated graphics passthrough for Calpella and Sandybridge |
From: |
Jean Guyader <jean.guyader@xxxxxxxxx> |
Date: |
Thu, 10 Jun 2010 15:17:20 +0100 |
Cc: |
"xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Kay, Allen M" <allen.m.kay@xxxxxxxxx>, "Han, Weidong" <weidong.han@xxxxxxxxx>, Jean Guyader <Jean.Guyader@xxxxxxxxxx>, Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>, Philipson <Ross.Philipson@xxxxxxxxxx> |
Delivery-date: |
Thu, 10 Jun 2010 07:19:07 -0700 |
Dkim-signature: |
v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=QyugDBDVazGBxjNXKlurjLS2/WIERf/62rGur6od1gs=; b=w+WDtZZoB9aBUJTiEHGKVxgG/DHYOmOs4UHVEAydHHiAaJu0FlxUFRRj0pv5OPtp5F F65R4k9hBb0sdsPvJpa4FzQWjFC/TWclEC5mwHRvIlHQ1zRTXiicgL5YhVHfgJ7VYXIV tGa62u4NexIa5SWchU4dLSl1WaeDtT7ejgstQ= |
Domainkey-signature: |
a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=MFAe+eXU7eYTuggQl+dkJF399jVEh9XGe54ZCaePwb81wfCqaC/nxsvoWKAhchzZFq lIUz8VxgIEuabkGtu1IA87koL6AfiajwbekhCgDLPLDktUu56rhuBPScWlKmDT+SycZA Hg0Cw+CaQr2dYlCKR4lrXvOSiNmc3SVami/zI= |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxxx |
In-reply-to: |
<alpine.DEB.2.00.1006091647430.3401@kaball-desktop> |
List-help: |
<mailto:xen-devel-request@lists.xensource.com?subject=help> |
List-id: |
Xen developer discussion <xen-devel.lists.xensource.com> |
List-post: |
<mailto:xen-devel@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
References: |
<987664A83D2D224EAE907B061CE93D530114C3D62D@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <alpine.DEB.2.00.1006041616070.3401@kaball-desktop> <987664A83D2D224EAE907B061CE93D5301150AC211@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <alpine.DEB.2.00.1006091647430.3401@kaball-desktop> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
On 9 June 2010 16:57, Stefano Stabellini
<stefano.stabellini@xxxxxxxxxxxxx> wrote:
> On Tue, 8 Jun 2010, Kay, Allen M wrote:
>> Stephano,
>>
>> Thanks for your feedback. I add "#ifdef CONFIG_PASSTHROUGH" in the next
>> version of the patch.
>>
>> I have tested the patch on a Intel Montevina software development platform
>> and found it has the same behavior as current xen qemu upstream.
>>
>> Can others who have been playing with IGD passthrough give the patch a try
>> on older platforms?
>>
>
> Are there any older platforms without opregion support?
> If that is the case what is the result of executing this code on such a
> platform?
>
> + /* 1:1 map ASL Storage register value */
> + igd_opregion = pt_pci_host_read(0, 2, 0, 0xfc, 4);
> + PT_LOG("register_vga: igd_opregion = %x\n", igd_opregion);
> + ret |= xc_domain_memory_mapping(xc_handle, domid,
> + igd_opregion >> XC_PAGE_SHIFT,
> + igd_opregion >> XC_PAGE_SHIFT,
> + 2,
> + DPCI_ADD_MAPPING);
>
>
We are using a fixed and reserved address in the guest to map this
region, 0xfed00000.
You need to add that in the e820 table as ACPI_NVS so the guest won't
try to use it for
something else. You also have to trap the pci_config space read for
0xfc and give 0xfed00000
back to the guest.
We've notice that on some system the value at 0xfc wasn't align on a
page, so make sure
you do that first.
Jean
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH][VTD] enable integrated graphics passthrough for Calpella and Sandybridge, Kay, Allen M
- Re: [Xen-devel] [PATCH][VTD] enable integrated graphics passthrough for Calpella and Sandybridge, Isaku Yamahata
- RE: [Xen-devel] [PATCH][VTD] enable integrated graphics passthrough for Calpella and Sandybridge, Kay, Allen M
- RE: [Xen-devel] [PATCH][VTD] enable integrated graphics passthrough for Calpella and Sandybridge, Stefano Stabellini
- Re: [Xen-devel] [PATCH][VTD] enable integrated graphics passthrough for Calpella and Sandybridge, Isaku Yamahata
- Re: [Xen-devel] [PATCH][VTD] enable integrated graphics passthrough for Calpella and Sandybridge, Stefano Stabellini
- RE: [Xen-devel] [PATCH][VTD] enable integrated graphics passthrough for Calpella and Sandybridge, Kay, Allen M
- Re: [Xen-devel] [PATCH][VTD] enable integrated graphics passthrough for Calpella and Sandybridge, Isaku Yamahata
- RE: [Xen-devel] [PATCH][VTD] enable integrated graphics passthrough for Calpella and Sandybridge, Kay, Allen M
|
|
|