Skip to content

Add support for biosdevname inside VM

Ivan Mironov qemu-devel 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 0 repliesSuperseded

Changes since previous version from the cover letter

* Fixed bug in ./hw/i386/smbios.c:

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2smbios: Add type 41 structure (Onboard Devices Extended Information).hw/i386/smbios.c include/hw/i386/smbios.h qemu-options.hx+268 -40 replies
2/2smbios: Allow device ID instead of PCI address for type 41.hw/i386/pc.c hw/i386/smbios.c include/hw/i386/smbios.h +1 more+128 -220 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/2] Add support for biosdevname inside VM

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 [email protected] and [email protected] (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",