xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Gordan Bobic <gordan@bobich.net>
To: John Wargo <wargo.john25@gmail.com>
Cc: "Zytaruk, Kelly" <Kelly.Zytaruk@amd.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: Windows 8 VGA Passthrough
Date: Mon, 28 Oct 2013 20:46:16 +0000	[thread overview]
Message-ID: <526ECD18.70403@bobich.net> (raw)
In-Reply-To: <CAKJRth9_g2Y3v8w0g+c5TKxjQ=u=W6gPL0wf5yKKDYLD4Bcmdw@mail.gmail.com>

I'd focus more on why exactly do you think you need primary passthrough. 
Is your requirement for seeing the SeaBIOS POST and the Windows loading 
animation strong enough to bother with the amount of extra pain that it 
is going to require?

On 10/28/2013 08:31 PM, John Wargo wrote:
> This sounds about right, what then is the fix though? How do i get
> qemu/hvm load the right vbios? On a side note, I assume that i need to
> install the mentioned patch, if so, whats the best way to apply it? (It
> seems dated, and i get errors when i try to patch with it)
>
> Sorry for asking such basic questions,
> -John
>
> On Monday, October 28, 2013, Zytaruk, Kelly <Kelly.Zytaruk@amd.com
> <mailto:Kelly.Zytaruk@amd.com>> wrote:
>  > On Sunday, October 27, 2013 1:21 PM, John Wargo wrote:
>  >>I've made quite a bit of changes since my last email, and so far
> here's what I've got:
>  >>
>  >>AMD FX6300
>  >>ASUS M5A99X evo r2.0
>  >>ASUS Radeon 6670 (Dom0)
>  >>XFX Radeon 7850 (Win8)
>  >>
>  >>...
>  >>
>  >>Is there some sort of AMD Radeon patch I need to use (I saw one on
> the wiki, but it appeared to be several years old), or is it a needed
> configuration?
>  >>
>  >>Thanks for your time,
>  >>-John
>  >
>  > Hi John,
>  >
>  > I am using XEN4.2 with QEMU-traditional and I have identified a
> couple of issues in regards to passing through a video adapter as the
> primary (VGA enabled) adapter.
>  >
>  > The patch that you referenced attempts to get around one of the
> issues but it is not complete and doesn't cover all of the cases.  If
> you apply the patch it will definitely help but not guaranteed to fix
> all of your problems.
>  >
>  > The second issue is related to the fact that you are using two
> different graphics adapters.  I am assuming that the Radeon 6670 is the
> primary (boot/VGA) adapter and that the 7850 is the secondary.
>  >
>  > From reading your thread I assume that you want to pass the 7850
> through to the DomU as the primary.  I have been able to do this
> successfully with a few fixes.   The problem is in the way
> QEMU/hvmloader handle the VBios code.  When you boot with the 6670 as
> the primary the VBios code for the graphics adapter is copied to memory
> at address 0xc0000.  When QEMU passes the 7850 through to the DomU it
> copies VBios from 0xc0000 in Dom0 memory space into 0xc0000 in DomU
> memory space.  DomU is effectively executing the VBios for the wrong
> video card.  The correct fix is to have the hvmloader read a fresh copy
> of VBios from the 7850 and copy it into the DomU address space at 0xc0000.
>  >
>  > Sometimes you can get away with executing the wrong VBios, sometimes
> you get stung.
>  >
>  > Hope the explanation helps,
>  > Kelly
>  >
>  >
>  >

  reply	other threads:[~2013-10-28 20:46 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-26 20:58 Windows 8 VGA Passthrough John Wargo
2013-10-27  9:30 ` Gordan Bobic
2013-10-27 14:27   ` John Wargo
2013-10-27 16:21     ` John Wargo
2013-10-27 17:21       ` John Wargo
2013-10-28 17:07         ` Konrad Rzeszutek Wilk
2013-10-28 21:32           ` John Wargo
2013-10-29 13:09             ` Zytaruk, Kelly
2013-10-28 19:30         ` Zytaruk, Kelly
2013-10-28 20:31           ` John Wargo
2013-10-28 20:46             ` Gordan Bobic [this message]
2013-10-28 21:29               ` John Wargo
2013-10-27 19:35       ` Gordan Bobic
2013-10-27 19:45         ` John Wargo
2013-10-27 20:05         ` John Wargo
2013-10-27 21:01         ` John Wargo
2013-10-27 22:51           ` Gordan Bobic
2013-10-28 11:06             ` John Wargo
2013-10-27 19:31     ` Gordan Bobic
     [not found]   ` <526D1FBA.10708@gmail.com>
2013-10-27 19:28     ` Gordan Bobic

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=526ECD18.70403@bobich.net \
    --to=gordan@bobich.net \
    --cc=Kelly.Zytaruk@amd.com \
    --cc=wargo.john25@gmail.com \
    --cc=xen-devel@lists.xen.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).