summaryrefslogtreecommitdiffstats
path: root/include/hw/i386
diff options
context:
space:
mode:
authorGabriel L. Somlo <gsomlo@gmail.com>2014-04-23 09:42:41 -0400
committerGerd Hoffmann <kraxel@redhat.com>2014-05-05 12:29:39 +0200
commit2e6e8d7a25a6e31dee58226ea7fc374844d69732 (patch)
treeec82b3d1cd045cd033bbce2c30f10313bceea171 /include/hw/i386
parentcb36acb672a380b4ca430e4a12abb3f2186f9f4f (diff)
downloadhqemu-2e6e8d7a25a6e31dee58226ea7fc374844d69732.zip
hqemu-2e6e8d7a25a6e31dee58226ea7fc374844d69732.tar.gz
SMBIOS: Use bitmaps to prevent incompatible comand line options
Replace existing smbios_check_collision() functionality with a pair of bitmaps: have_binfile_bitmap and have_fields_bitmap. Bits corresponding to each smbios type are set by smbios_entry_add(), which also uses the bitmaps to ensure that binary blobs and field values are never accepted for the same type. These bitmaps will also be used in the future to decide whether or not to build a full table for a given smbios type. Signed-off-by: Gabriel Somlo <somlo@cmu.edu> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/hw/i386')
-rw-r--r--include/hw/i386/smbios.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/i386/smbios.h b/include/hw/i386/smbios.h
index 777e025..3a9361d 100644
--- a/include/hw/i386/smbios.h
+++ b/include/hw/i386/smbios.h
@@ -15,6 +15,8 @@
#include "qemu/option.h"
+#define SMBIOS_MAX_TYPE 127
+
void smbios_entry_add(QemuOpts *opts);
void smbios_set_defaults(const char *manufacturer, const char *product,
const char *version);
OpenPOWER on IntegriCloud