From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Viuc4-000302-A6 for qemu-devel@nongnu.org; Tue, 19 Nov 2013 18:21:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Viubz-0002wy-4X for qemu-devel@nongnu.org; Tue, 19 Nov 2013 18:21:44 -0500 Received: from mail-ee0-x233.google.com ([2a00:1450:4013:c00::233]:57615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Viuby-0002wq-Sp for qemu-devel@nongnu.org; Tue, 19 Nov 2013 18:21:39 -0500 Received: by mail-ee0-f51.google.com with SMTP id d41so2882432eek.38 for ; Tue, 19 Nov 2013 15:21:38 -0800 (PST) From: Ivan Mironov Date: Wed, 20 Nov 2013 03:21:20 +0400 Message-Id: <1384903282-8211-1-git-send-email-mironov.ivan@gmail.com> Subject: [Qemu-devel] [PATCH v2 0/2] Add support for biosdevname inside VM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: armbru@redhat.com, aliguori@amazon.com 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 seabios@seabios.org and linux-poweredge@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",