From: Igor Mammedov <imammedo@redhat.com>
To: qemu-devel@nongnu.org
Cc: jusual@redhat.com, laine@redhat.com, mst@redhat.com
Subject: [PATCH 0/6] pc: support user provided NIC naming/indexing
Date: Mon, 15 Mar 2021 14:00:56 -0400 [thread overview]
Message-ID: <20210315180102.3008391-1-imammedo@redhat.com> (raw)
Changes since rfc:
* make sure that acpi-index unique
* use dedicated MMIO register for it
* drop syntetic acpi-label field in _DSM
* add more comments
Series implements support for 'onboard' naming scheme for network
interfaces (1), which is based on PCI firmware spec and lets user
to explicitly specify index that will be used by guest to name
network interface, ex:
-device e1000,acpi-index=33
should make guest rename NIC name to 'eno33' where 'eno' is default
prefix for this scheme.
Hope is that it will allow to simplify launching VMs from
template disk images with different set VM configurations
without need to reconfigure guest network intrfaces or
risk of loosing network connectivity.
For more detailed description/examples see patches [3-4/5]
1)
https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
Git repo for testing:
https://github.com/imammedo/qemu/branches acpi-index-v1
CC: laine@redhat.com
CC: mst@redhat.com
CC: jusual@redhat.com
Igor Mammedov (6):
tests: acpi: temporary whitelist DSDT changes
pci: introduce apci-index property for PCI device
pci: acpi: ensure that acpi-index is unique
acpi: add aml_to_decimalstring() and aml_call6() helpers
pci: acpi: add _DSM method to PCI devices
tests: acpi: update expected blobs
include/hw/acpi/aml-build.h | 3 +
include/hw/acpi/pci.h | 1 +
include/hw/acpi/pcihp.h | 9 ++-
include/hw/pci/pci.h | 1 +
hw/acpi/aml-build.c | 28 ++++++++
hw/acpi/pci.c | 1 -
hw/acpi/pcihp.c | 104 ++++++++++++++++++++++++++-
hw/acpi/piix4.c | 3 +-
hw/acpi/trace-events | 2 +
hw/i386/acpi-build.c | 118 +++++++++++++++++++++++++++++--
hw/pci/pci.c | 1 +
tests/data/acpi/pc/DSDT | Bin 5065 -> 6002 bytes
tests/data/acpi/pc/DSDT.acpihmat | Bin 6390 -> 7327 bytes
tests/data/acpi/pc/DSDT.bridge | Bin 6924 -> 8668 bytes
tests/data/acpi/pc/DSDT.cphp | Bin 5529 -> 6466 bytes
tests/data/acpi/pc/DSDT.dimmpxm | Bin 6719 -> 7656 bytes
tests/data/acpi/pc/DSDT.hpbridge | Bin 5026 -> 5969 bytes
tests/data/acpi/pc/DSDT.ipmikcs | Bin 5137 -> 6074 bytes
tests/data/acpi/pc/DSDT.memhp | Bin 6424 -> 7361 bytes
tests/data/acpi/pc/DSDT.nohpet | Bin 4923 -> 5860 bytes
tests/data/acpi/pc/DSDT.numamem | Bin 5071 -> 6008 bytes
tests/data/acpi/pc/DSDT.roothp | Bin 5261 -> 6210 bytes
22 files changed, 261 insertions(+), 10 deletions(-)
--
2.27.0
next reply other threads:[~2021-03-15 18:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-15 18:00 Igor Mammedov [this message]
2021-03-15 18:00 ` [PATCH 1/6] tests: acpi: temporary whitelist DSDT changes Igor Mammedov
2021-03-15 18:00 ` [PATCH 2/6] pci: introduce apci-index property for PCI device Igor Mammedov
2021-04-06 9:47 ` Daniel P. Berrangé
2021-04-06 17:38 ` Igor Mammedov
2021-05-14 13:37 ` Michael S. Tsirkin
2021-03-15 18:00 ` [PATCH 3/6] pci: acpi: ensure that acpi-index is unique Igor Mammedov
2021-03-15 18:01 ` [PATCH 4/6] acpi: add aml_to_decimalstring() and aml_call6() helpers Igor Mammedov
2021-03-15 18:01 ` [PATCH 5/6] pci: acpi: add _DSM method to PCI devices Igor Mammedov
2021-03-15 18:01 ` [PATCH 6/6] tests: acpi: update expected blobs Igor Mammedov
2021-03-15 18:36 ` [PATCH 0/6] pc: support user provided NIC naming/indexing no-reply
2021-03-15 20:21 ` Igor Mammedov
2021-05-14 13:32 ` Michael S. Tsirkin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210315180102.3008391-1-imammedo@redhat.com \
--to=imammedo@redhat.com \
--cc=jusual@redhat.com \
--cc=laine@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).