qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Laine Stump <laine@redhat.com>
Cc: Libvirt <libvir-list@redhat.com>, Guannan Ren <gren@redhat.com>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] default slot used for vga device on q35 machines
Date: Mon, 05 Aug 2013 08:31:11 +0200	[thread overview]
Message-ID: <51FF46AF.50404@redhat.com> (raw)
In-Reply-To: <51FD5AE9.8090406@redhat.com>

  Hi,

>>> 1) Is this difference intentional, or a bug?
>> The vga simply goes into the first free slot.  That happens to be #2
>> with i440fx and #1 with q35.
> 
> It sounds like it's a safe bet to assume that -vga will put the device
> on slot 2 for pc machinetypes and slot 1 for q35, no matter what other
> devices there are, since -vga is always initialized first. Correct?

Yes.

> Do
> you see any chance that might change in the future? (e.g. due to some
> other new device that needs to be initialized even before vga)

Highly unlikely.  Also libvirt will switch over to use -device for vga
cards, which will make this a moot point.

>>> 3) Does the qxl multihead support really require that the device be at
>>> slot 2 (as stated in the above bugzilla commend)? Or is that just a
>>> misunderstanding/overstatement?
>> It's not required at all.  The problem is that on older qemu versions
>> (pre-memory-api basically) it was impossible to create functional vga
>> devices via -device due to an initialization order issue.  Which implies
>> you have to use -vga instead, which in turn implies the vga ends up in
>> slot #2.  On i440fx, but q35 didn't exist yet back then ;)
> 
> Are you saying that it's still required to use -vga instead of -device
> qxl-vga for pc machinetype? Or that it was needed at one time, but that
> is no longer the case? If the latter, is there a reliable way to make
> the decision whether or not we need to use -vga?

libvirt has started using -device for vga cards, to be able to place
them in any pci slot.  IIRC it's used for qemu 1.1+ or 1.2+.  That works
fine for all vga cards except qxl.  The bug which broke it for qxl will
be fixed in 1.6 (and probably 1.5.3 too).

cheers,
  Gerd

  reply	other threads:[~2013-08-05  6:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-01 19:37 [Qemu-devel] default slot used for vga device on q35 machines Laine Stump
2013-08-02  6:49 ` Gerd Hoffmann
2013-08-02  7:23   ` Markus Armbruster
2013-08-02 16:46     ` Laine Stump
2013-08-02 17:30       ` Markus Armbruster
2013-08-03 19:32   ` Laine Stump
2013-08-05  6:31     ` Gerd Hoffmann [this message]
2013-08-05 15:04     ` Eric Blake

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=51FF46AF.50404@redhat.com \
    --to=kraxel@redhat.com \
    --cc=gren@redhat.com \
    --cc=laine@redhat.com \
    --cc=libvir-list@redhat.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).