From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fuZFN-0003qD-Mv for qemu-devel@nongnu.org; Tue, 28 Aug 2018 04:21:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fuZDp-0004OG-LC for qemu-devel@nongnu.org; Tue, 28 Aug 2018 04:19:37 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:49572 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fuZDp-0004Nr-Fj for qemu-devel@nongnu.org; Tue, 28 Aug 2018 04:19:33 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A72E440216F5 for ; Tue, 28 Aug 2018 08:19:30 +0000 (UTC) Date: Tue, 28 Aug 2018 09:19:20 +0100 From: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= Message-ID: <20180828081920.GA25114@redhat.com> Reply-To: Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= References: <20180822095421.11765-1-quintela@redhat.com> <20180822095421.11765-8-quintela@redhat.com> <0d3a215b-4916-b0a6-5654-5d64fcf6c996@redhat.com> <87y3cyo4ax.fsf@trasno.org> <20180823074321.wx7wix7jwsfrcbk5@sirius.home.kraxel.org> <9cb5f027-e49c-d943-7ffa-9e744537f174@redhat.com> <20180823094850.zycuwtjndmztgcm4@sirius.home.kraxel.org> <20180823095359.GH23703@redhat.com> <20180827105321.5qeclqhsopqtutjv@sirius.home.kraxel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180827105321.5qeclqhsopqtutjv@sirius.home.kraxel.org> Subject: Re: [Qemu-devel] [PATCH v3 07/10] check: Only test boot-serial when sga is compiled in List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: Thomas Huth , lvivier@redhat.com, Juan Quintela , "Michael S. Tsirkin" , qemu-devel@nongnu.org, peterx@redhat.com, dgilbert@redhat.com, Paolo Bonzini On Mon, Aug 27, 2018 at 12:53:21PM +0200, Gerd Hoffmann wrote: > Hi, > > > The only way we can stop using "-device sga" is if we either have > > something explicit in the XML saying whether to use it or not, or > > alternatively have some indicator associated with the next versioned > > machine type that we can hook off. > > How does libvirt query the machine type properties? libvirt is able to query properties against i440FX-pcihost and q35-pcihost devices - currently we only look for one prop: static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsI440FXPCIHost[] = { { "pci-hole64-size", QEMU_CAPS_I440FX_PCI_HOLE64_SIZE }, }; static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsQ35PCIHost[] = { { "pci-hole64-size", QEMU_CAPS_Q35_PCI_HOLE64_SIZE }, }; Not sure if that's the kind of thing you're looking for ? Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|