All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gordan Bobic <gordan@bobich.net>
To: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: vga passthrough with qemu-xen (or qemu upstream)
Date: Mon, 20 Jan 2014 21:22:46 +0000	[thread overview]
Message-ID: <52DD93A6.30100@bobich.net> (raw)
In-Reply-To: <CAGj-7pV77ou=qQ4J_qT4yakSaOGJPDU0RjH54EP=EmcDYv3VBw@mail.gmail.com>

On 01/20/2014 09:15 PM, Shakeel Butt wrote:
> On Mon, Jan 20, 2014 at 7:29 AM, Gordan Bobic <gordan@bobich.net> wrote:
>> On 2014-01-20 15:19, Shakeel Butt wrote:
>>>
>>> On Mon, Jan 20, 2014 at 5:31 AM, Gordan Bobic <gordan@bobich.net> wrote:
>>>>
>>>> On 2014-01-20 13:24, Wu, Feng wrote:
>>>>>>
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: xen-devel-bounces@lists.xen.org
>>>>>> [mailto:xen-devel-bounces@lists.xen.org] On Behalf Of Gordan Bobic
>>>>>> Sent: Monday, January 20, 2014 8:50 PM
>>>>>> To: xen-devel@lists.xen.org
>>>>>> Subject: Re: [Xen-devel] vga passthrough with qemu-xen (or qemu
>>>>>> upstream)
>>>>>>
>>>>>> On 2014-01-20 12:31, Shakeel Butt wrote:
>>>>>>> On Mon, Jan 20, 2014 at 4:09 AM, Stefano Stabellini
>>>>>>> <stefano.stabellini@eu.citrix.com> wrote:
>>>>>>>> On Mon, 20 Jan 2014, Wu, Feng wrote:
>>>>>>>>>> -----Original Message-----
>>>>>>>>>> From: xen-devel-bounces@lists.xen.org
>>>>>>>>>> [mailto:xen-devel-bounces@lists.xen.org] On Behalf Of Shakeel
>>>>>>>>>> Butt
>>>>>>>>>> Sent: Monday, January 20, 2014 1:48 PM
>>>>>>>>>> To: xen-devel@lists.xen.org
>>>>>>>>>> Subject: [Xen-devel] vga passthrough with qemu-xen (or qemu
>>>>>>>>>> upstream)
>>>>>>>>>>
>>>>>>>>>> Hi all,
>>>>>>>>>>
>>>>>>>>>> Is it possible to do vga passthrough on xen-unstable with
>>>>>>>>>> qemu-xen
>>>>>>>>>> as
>>>>>>>>>> device model? I tried but I am getting error 'gfx_passthru'
>>>>>>>>>> invalid
>>>>>>>>>> parameter for qemu-xen. I am able to do passthrough with qemu
>>>>>>>>>> traditional i.e. qemu-dm.
>>>>>>>>>
>>>>>>>>> As far as I know, only qemu-traditional supports vga pass-through
>>>>>>>>> right now.
>>>>>>>>
>>>>>>>> Right.
>>>>>>>> It is not possible to assign your primary VGA card to a VM with
>>>>>>>> qemu-xen. You should be able to assign your secondary VGA card
>>>>>>>> though.
>>>>>>>
>>>>>>> Let me understand this correctly. If I have two VGA cards then I can
>>>>>>> passthrough
>>>>>>> secondary VGA card (in Dom0) to HVM as its primary VGA card. Is this
>>>>>>> right and
>>>>>>> if yes how can I do it?
>>>>>>
>>>>>> Passing any VGA card as a primary-in-domU has always been problematic.
>>>>>
>>>>>
>>>>>
>>>>> I think passing VGA card as a primary-in-domU works well in
>>>>> Qemu-traditional, right?
>>>>
>>>>
>>>>
>>>> I never managed to get it working - it certainly isn't just a matter of
>>>> enabling the option. There is at least the matter of also side-loading
>>>> the VGA BIOS, and IIRC that was limited to 64KB in size, which rules
>>>> out all ATI and Nvidia GPUs of the past 2-3 generations.
>>>>
>>>> Having said that - I never found a particularly good use-case for
>>>> primary passthrough. Once the GPU driver loads it works just the
>>>> same for all intents and purposes.
>>>>
>>>
>>> I have successfully managed to passthrough VGA card as primary to DomU
>>> with qemu traditional. I am trying to do the same with upstream qemu
>>> because
>>>   I need some new features of the upstream qemu which are not available
>>> in qemu traditional.
>>>
>>> With qemu upstream I can passthrough as secondary VGA card to DomU
>>> and able to see it in device manager in DomU (Windows 7) but Windows
>>> couldn't use it and display some error that another card is being used as
>>> display. I want Windows to use the passthroughed vga card  as its display.
>>
>>
>> Disable the other (emulated) card in device manager and reboot
>> the domU. That should fix it.
>
> This is not working for me. I am disabling the device and even uninstalling the
> driver but on reboot Windows 7 install the driver for the emulated vga and
> make it primary vga.

Don't uninstall the driver, just disable the device. If you uninstall 
it, it will get re-detected. If you disable it, it should show up with a 
red cross next to it, and your secondary GPU will start working the way 
you want it to.

  reply	other threads:[~2014-01-20 21:22 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-20  5:48 vga passthrough with qemu-xen (or qemu upstream) Shakeel Butt
2014-01-20  7:04 ` Wu, Feng
2014-01-20 12:09   ` Stefano Stabellini
2014-01-20 12:31     ` Shakeel Butt
2014-01-20 12:50       ` Gordan Bobic
2014-01-20 13:24         ` Wu, Feng
2014-01-20 13:31           ` Gordan Bobic
2014-01-20 15:19             ` Shakeel Butt
2014-01-20 15:29               ` Gordan Bobic
2014-01-20 21:15                 ` Shakeel Butt
2014-01-20 21:22                   ` Gordan Bobic [this message]
2014-01-20 21:23                   ` Fabio Fantoni
2014-01-21 12:55           ` Pasi Kärkkäinen
2014-01-21 17:36             ` Shakeel Butt
2014-01-21 17:52               ` Gordan Bobic
2014-01-22  0:49               ` Wu, Feng
2014-01-20 14:45       ` Stefano Stabellini
2014-01-20 14:49         ` Stefano Stabellini

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=52DD93A6.30100@bobich.net \
    --to=gordan@bobich.net \
    --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 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.