]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add sysinfo/smbios support to the QEmu driver
authorDaniel Veillard <veillard@redhat.com>
Fri, 5 Nov 2010 14:44:57 +0000 (15:44 +0100)
committerDaniel Veillard <veillard@redhat.com>
Mon, 8 Nov 2010 14:14:50 +0000 (15:14 +0100)
commit54c0237ccb95b164741c57c5c00eed95d116edf1
treeee150b0acd7efc70933b62e2420d41b577fcb342
parent1e4c45999e8c9f9013f39adb419dd9160e30bccc
Add sysinfo/smbios support to the QEmu driver

The patch is based on the possiblity in the QEmu command line to
add -smbios options allowing to override the default values picked
by QEmu. We need to detect this first from QEmu help output.
If the domain is defined with smbios to be inherited from host
then we pass the values coming from the Host own SMBIOS, but
if the domain is defined with smbios to come from sysinfo, we
use the ones coming from the domain definition.

* src/qemu/qemu_conf.h: add the QEMUD_CMD_FLAG_SMBIOS_TYPE enum
  value
* src/qemu/qemu_conf.c: scan the help output for the smbios support,
  and if available add support based on the domain definitions,
  and host data
* tests/qemuhelptest.c: add the new enum in the outputs
src/qemu/qemu_conf.c
src/qemu/qemu_conf.h
tests/qemuhelptest.c