summary refs log tree commit diff stats
path: root/include
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2023-05-10 20:46:21 +0200
committerThomas Huth <thuth@redhat.com>2023-05-22 09:39:15 +0200
commit01ecdaa40e0c14b99ae7e81b5bfce9b6bd6e167c (patch)
treec7fdaf6ddc72505ff7641970b31076ce5c737270 /include
parentd563cc84cdc599c3fbd40b36d6b71411e008b039 (diff)
downloadfocaccia-qemu-01ecdaa40e0c14b99ae7e81b5bfce9b6bd6e167c.tar.gz
focaccia-qemu-01ecdaa40e0c14b99ae7e81b5bfce9b6bd6e167c.zip
hw: Move the default NIC machine class setting from the x86 to the generic one
We are going to re-use this setting for other targets, so let's
move this to the main MachineClass.

Message-Id: <20230512124033.502654-4-thuth@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/boards.h1
-rw-r--r--include/hw/i386/pc.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/boards.h b/include/hw/boards.h
index f4117fdb9a..a385010909 100644
--- a/include/hw/boards.h
+++ b/include/hw/boards.h
@@ -253,6 +253,7 @@ struct MachineClass {
     const char *default_machine_opts;
     const char *default_boot_order;
     const char *default_display;
+    const char *default_nic;
     GPtrArray *compat_props;
     const char *hw_version;
     ram_addr_t default_ram_size;
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h
index 79e755879d..c661e9cc80 100644
--- a/include/hw/i386/pc.h
+++ b/include/hw/i386/pc.h
@@ -93,7 +93,6 @@ struct PCMachineClass {
     /* Device configuration: */
     bool pci_enabled;
     bool kvmclock_enabled;
-    const char *default_nic_model;
 
     /* Compat options: */