On Do, 2017-02-02 at 16:35 +0100, Andrea Bolognani wrote: > On Thu, 2017-02-02 at 15:55 +0100, Gerd Hoffmann wrote: > > > +++ b/docs/q35-emulated.cfg > > > > > > +# 00:01.0 VGA compatible controller > > > > > > +[device "video"] > > > + driver = "VGA" > > > + bus = "pcie.0" > > > + addr = "02.0" > > > > Here is a address mismatch ;) > > Oh, wait, I realize where the mismatch comes from now: > on real hardware (my laptop) the video card is plugged > into 00:02.0, but the default one you get when you don't > pass -nodefault to QEMU is plugged into 00:01.0!
And that depends on the chipset. On q35 it is 01.0, whereas on pc it is 02.0 because 01.0 is occupied by the piix southbridge. > I think we should use 00:02.0, do you agree? I would > also use the same slot in q35-virtio-graphical.cfg. Matter of taste really. I have some guests where the vga is at 04.0, works fine too. But being consistent across all configurations makes sense. cheers, Gerd