[libvirt] [PATCH 6/7] Add sysinfo/smbios support to the QEmu driver

Daniel Veillard veillard at redhat.com
Fri Nov 5 15:46:37 UTC 2010


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

Signed-off-by: Daniel Veillard <veillard at redhat.com>
---
 src/qemu/qemu_conf.c |  123 ++++++++++++++++++++++++++++++++++++++++++++++++++
 src/qemu/qemu_conf.h |    3 +-
 tests/qemuhelptest.c |   15 ++++--
 3 files changed, 135 insertions(+), 6 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Add-sysinfo-smbios-support-to-the-QEmu-driver.patch
Type: text/x-patch
Size: 7748 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20101105/d19cac6f/attachment-0001.bin>


More information about the libvir-list mailing list