hw/arm: Use MachineClass->default_nic in the sbsa-ref machine
authorThomas Huth <thuth@redhat.com>
Tue, 23 May 2023 14:41:56 +0000 (16:41 +0200)
committerThomas Huth <thuth@redhat.com>
Fri, 26 May 2023 07:10:49 +0000 (09:10 +0200)
commit611eda5981c1c07d4f0841f5aca64d26d70da641
tree30c39c5a6fb3b1fa5343e8de38bdde78af2f915b
parent69720ff2286ecd2d1e3dc9100141a1befe726262
hw/arm: Use MachineClass->default_nic in the sbsa-ref machine

Mark the default NIC via the new MachineClass->default_nic setting
so that the machine-defaults code in vl.c can decide whether the
default NIC is usable or not (for example when compiling with the
"--without-default-devices" configure switch).

Message-Id: <20230524082037.1620952-1-thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/arm/sbsa-ref.c