On Tue, Dec 10, 2019 at 11:32:18AM -0500, Cole Robinson wrote: > On 12/10/19 5:57 AM, Daniel P. Berrangé wrote: > > > >> Another issue: other drivers use the machine= setting too, libxl at > >> least. This appears to drop filling in a default machine type for them, > >> at least at XML parse time. > > > > I thought that was the case too, but I couln't find any functional use > > of def->os.machine in any of the other drivers: > > > > $ git grep os.machine | grep -v -E '(qemu|conf)/' > > libvirt-domain.c: * "os.machine" - the machine hardware name as a string > > libxl/libxl_conf.c: def->os.machine); > > libxl/xen_common.c: def->os.machine = g_strdup(capsdata->machinetype); > > vbox/vbox_common.c: VIR_DEBUG("def->os.machine %s", def->os.machine); > > vz/vz_sdk.c: if (def->os.machine != NULL || def->os.bootmenu != 0 || > > > > > > that libxl_conf.c usage is just an error message > > > > The xen_common.c usage is just when parsing XM/XL config files, > > so output only. > > > > The vz_sdk.c usage reports error for any non-NULL machine > > > > > > I guess there is a difference in that if the user does dumpxml for a > > libxl guest we've no longer filled in the machine. I can fix that, > > but it doesn't look like it'll have a functional effect. > > Check grep for 'xenfv' and 'xenpv', domaincapabilities does some machine > value handling, and virt-manager will use the reported VM machine value > and feed it back to domaincapabilities, so it could be used in a round > about way. Yes, I can see the dom capabilities reports them, and apps can of coure put them in the XML they feed in, but AFAICT the libxl driver will not do anything with the values provided when defining/starting a guest 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 :| -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list