qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Dave Airlie <airlied@gmail.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] updated virtio-gpu code
Date: Tue, 25 Mar 2014 09:05:59 +0100	[thread overview]
Message-ID: <1395734759.1585.12.camel@nilsson.home.kraxel.org> (raw)
In-Reply-To: <CAPM=9tyiR_u2GO7sS6Swi_obnKo2LE1YNvQqn2KjygnVLB9yuQ@mail.gmail.com>

On Di, 2014-03-25 at 16:58 +1000, Dave Airlie wrote:
> Hey,
> 
> I've pushed a new version of the unaccelerated virtio-gpu code to my repo
> 
> git://git.freedesktop.org/~airlied/qemu virtio-gpu
> 
> this is Gerd vga-wip branch, with the virtgpu_hw file moved, removing
> the event queue and a config space added with a events_read,
> events_clear u32.
> 
> I've also pushed the changes to the kms driver to use this,
> http://cgit.freedesktop.org/~airlied/linux/log/?h=virtio-vga-3d
> 
> Gerd, I've also dropped my experimental config space hacks and pushed
> the two pci/vga fixes into that branch as well.

Great, I'll have a detailed look later today.

> Just out of interest, with sdl and remote-viewer I seem to get 2
> displays, one for the VGA time, and a separate one for the driver
> loaded, any ideas why?

Saw your self-reply this is a libvirt vga artefact.
On dealing with libvirt, here is how I do it:

<domain type='kvm'
xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>

[ xmlxs:qemu=.. is  needed for the <qemu:...> stuff below ]

  <name>fedora-org-virtio-vga</name>
  [ ... ]
  <devices>
  [ ... ]
    <video>
      <model type='vga' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02'
function='0x0'/>
    </video>

[ Adding stdvga here ... ]

  [ ... ]
  </devices>
  <qemu:commandline>
    <qemu:arg value='-set'/>
    <qemu:arg value='device.video0.driver=virtio-vga'/>

[ ... then using custom cmd line hack to changes the
  video device from stdvga to virtio-vga behind libvirt's back ;) ]

    <qemu:arg value='-L'/>
    <qemu:arg value='/usr/share/seavgabios.git'/>

[ Cutting edge seavgabios with virtio support,
  add http://www.kraxel.org/repos/firmware.repo to /etc/yum.repos.d
  and 'yum install seavgabios.git' to get it. ]

  </qemu:commandline>
</domain>

HTH,
  Gerd

      parent reply	other threads:[~2014-03-25  8:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-25  6:58 [Qemu-devel] updated virtio-gpu code Dave Airlie
2014-03-25  7:06 ` Dave Airlie
2014-03-25  8:05 ` Gerd Hoffmann [this message]

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=1395734759.1585.12.camel@nilsson.home.kraxel.org \
    --to=kraxel@redhat.com \
    --cc=airlied@gmail.com \
    --cc=qemu-devel@nongnu.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).