Hello! These patches adds support for providing SMBIOS "Onboard Devices Extended Information" fields to the guest i386/x86_64 system. This could be used in conjunction with biosdevname to provide "consistent network device naming" inside VM.
I will also send corresponding patches to seab...@seabios.org and linux-powere...@dell.com (for biosdevname). Changes since previous version: * Fixed bug in ./hw/i386/smbios.c: @@ -357,7 +357,7 @@ static void save_opt(const char **dest, QemuOpts *opts, const char *name) static void smbios_check_onboard_device_instance(int type, int instance) { static uint8_t instances[ONBOARD_DEV_TYPE_NUM][UINT8_MAX / 8]; - uint8_t *type_instances = instances[type]; + uint8_t *type_instances = instances[type - ONBOARD_DEV_TYPE_MIN]; if (type_instances[instance / 8] & (1 << (instance % 8))) { error_report("instance %d is not unique within device-type %d",