[libvirt] [PATCH 1/3] virSysinfoDef: Exempt BIOS variables

John Ferlan jferlan at redhat.com
Mon May 18 18:41:04 UTC 2015



On 05/12/2015 10:56 AM, Michal Privoznik wrote:
> Move all the bios_* fields into a separate struct. Not only this
> simplifies the code a bit it also helps us to identify whether BIOS
> info is present. We don't have to check all the four variables for
> being not-NULL, but we can just check the pointer to the struct.
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
>  src/conf/domain_conf.c   | 109 +++++++++++++++++++++++++++++---------------
>  src/libvirt_private.syms |   1 +
>  src/qemu/qemu_command.c  |  23 +++++-----
>  src/util/virsysinfo.c    | 114 +++++++++++++++++++++++++++++++++++------------
>  src/util/virsysinfo.h    |  15 +++++--
>  5 files changed, 181 insertions(+), 81 deletions(-)
> 

ACK

John




More information about the libvir-list mailing list