mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
conf: Add firmware blob configuration
QEMU has -fw_cfg which allows users to tweak how firmware configures itself and/or provide new configuration blobs. Introduce new <sysinfo/> type "fwcfg" that will hold these new blobs. It's possible to either specify new value as a string or provide a filename which contents then serve as the value. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
@@ -479,6 +479,10 @@
|
||||
<entry>otherappname:more arbitrary data</entry>
|
||||
</oemStrings>
|
||||
</sysinfo>
|
||||
<sysinfo type='fwcfg'>
|
||||
<entry name='opt/com.example/name'>example value</entry>
|
||||
<entry name='opt/com.coreos/config' file='/tmp/provision.ign'/>
|
||||
</sysinfo>
|
||||
...</pre>
|
||||
|
||||
<p>
|
||||
@@ -593,6 +597,34 @@
|
||||
</dd>
|
||||
</dl>
|
||||
</dd>
|
||||
|
||||
<dt><code>fwcfg</code></dt>
|
||||
<dd>
|
||||
Some hypervisors provide unified way to tweak how firmware configures
|
||||
itself, or may contain tables to be installed for the guest OS, for
|
||||
instance boot order, ACPI, SMBIOS, etc. It even allows users to define
|
||||
their own config blobs. In case of QEMU, these then appear under domain's
|
||||
sysfs, under <code>/sys/firmware/qemu_fw_cfg</code>. Note, that these
|
||||
values apply regardless the <smbios/> mode under <os/>.
|
||||
<span class="since">Since 6.5.0</span>
|
||||
|
||||
<pre>
|
||||
<smbios type='fwcfg'>
|
||||
<entry name='opt/com.example/name'>example value</entry>
|
||||
<entry name='opt/com.coreos/config' file='/tmp/provision.ign'/>
|
||||
</smbios>
|
||||
</pre>
|
||||
|
||||
The <code>smbios</code> element can have multiple <code>entry</code>
|
||||
child elements. Each element then has mandatory <code>name</code>
|
||||
attribute, which defines the name of the blob and must begin with
|
||||
<code>"opt/"</code> and to avoid clashing with other names is advised to
|
||||
be in form <code>"opt/$RFQDN/$name"</code> where <code>$RFQDN</code> is a
|
||||
reverse fully qualified domain name you control.
|
||||
Then, the element can either contain the value (to set the blob value
|
||||
directly), or <code>file</code> attribute (to set the blob value from
|
||||
the file).
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<h3><a id="elementsCPUAllocation">CPU Allocation</a></h3>
|
||||
|
||||
Reference in New Issue
Block a user