[PATCH RESEND v1] xen: recognize device_model_override

Olaf Hering olaf at aepfle.de
Mon Dec 7 17:15:21 UTC 2020


Am Thu, 19 Nov 2020 16:11:34 -0700
schrieb Jim Fehlig <jfehlig at suse.com>:

> On 11/19/20 12:58 PM, Olaf Hering wrote:
> > Am Mon, 16 Nov 2020 19:48:28 -0700
> > schrieb Jim Fehlig <jfehlig at suse.com>:
> >> Correct. It is selected based on the specified <emulator> and not modeled in
> >> domXML. Does it need to be exposed to the user? AFAIK those are the only two
> >> values we care about, and it is possible to determine which to use based on the
> >> <emulator>.  
> > I think 'device_model_version' can be ignored.  
> I think we need to take a closer look. It is not explicitly set in 
> libxl_domain_build_info_init(), hence would be set to 
> LIBXL_DEVICE_MODEL_VERSION_UNKNOWN.

libxl__domain_build_info_setdefault sets it, if needed.

libxl_domain_create_new
  do_domain_create
    initiate_domain_create
      libxl__domain_config_setdefault
        libxl__domain_build_info_setdefault

Otherwise 'xl create' would fail as well if device_model_version= is missing domU.cfg.

Olaf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20201207/8c85841c/attachment-0001.sig>


More information about the libvir-list mailing list