Hi, > > > > There is 'stateless' already for 'firmware image in r/o flash'. > > > > > > What's the behaviour of UEFI if build with JSON vars support, but without > > > QEMU providing any JSON vars backend ? > > > > It will panic. > > In that case, we must not reuse 'stateless' with such builds, as that's > quite different semantics & incompatible with current usage. > > We would need a new 'uefi-vars' mode, or just declare that we must > always use 'memory' not 'flash' for such builds.
I don't see how 'flash.stateless' is any different than 'memory' (or 'kernel', or maybe 'igvm' some day). If the 'host-uefi-vars' feature is present '-device uefi-vars-$kind' is required, no matter how you load the firmware. What exactly will an old libvirt which does not know the 'host-uefi-vars' feature do in case it finds a firmware.json file with that feature? Play safe and ignore the file? take care, Gerd