[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/2] docs: sbsa: correct graphics card name
|
From: |
Thomas Huth |
|
Subject: |
Re: [PATCH 1/2] docs: sbsa: correct graphics card name |
|
Date: |
Tue, 23 May 2023 20:41:44 +0200 |
|
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 |
On 23/05/2023 19.30, Marcin Juszkiewicz wrote:
...
(is there a reason why it can't be disabled with "-vga none" or
"-nodefaults"?)
That's something I need to check how it should be done.
Other boards set mc->default_display in their ...class_init
function and then use pci_vga_init() (or vga_interface_type)
to instantiate their default display adapter ... however, that
does not seem to support the bochs adapter yet (see
vga_interfaces[] in softmmu/vl.c).
Not sure whether it's worth the effort to extend vga_interfaces[]
in vl.c, but you could at least check whether vga_interface_type
is VGA_NONE and skip the creation of the bochs adapter in that
case?
Should it also drop default_nic?
Seems like sbsa-ref already uses nd_table[], so "-net none" should
already work. For "configure --without-default-devices" builds, we
still need a patch like this on top, though:
diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c
--- a/hw/arm/sbsa-ref.c
+++ b/hw/arm/sbsa-ref.c
@@ -596,6 +596,7 @@ static void create_pcie(SBSAMachineState *sms)
hwaddr size_mmio_high = sbsa_ref_memmap[SBSA_PCIE_MMIO_HIGH].size;
hwaddr base_pio = sbsa_ref_memmap[SBSA_PCIE_PIO].base;
int irq = sbsa_ref_irqmap[SBSA_PCIE];
+ MachineClass *mc = MACHINE_GET_CLASS(sms);
MemoryRegion *mmio_alias, *mmio_alias_high, *mmio_reg;
MemoryRegion *ecam_alias, *ecam_reg;
DeviceState *dev;
@@ -641,7 +642,7 @@ static void create_pcie(SBSAMachineState *sms)
NICInfo *nd = &nd_table[i];
if (!nd->model) {
- nd->model = g_strdup("e1000e");
+ nd->model = g_strdup(mc->default_nic);
}
pci_nic_init_nofail(nd, pci->bus, nd->model, NULL);
@@ -858,6 +859,7 @@ static void sbsa_ref_class_init(ObjectClass *oc, void *data)
mc->minimum_page_bits = 12;
mc->block_default_type = IF_IDE;
mc->no_cdrom = 1;
+ mc->default_nic = "e1000e";
mc->default_ram_size = 1 * GiB;
mc->default_ram_id = "sbsa-ref.ram";
mc->default_cpus = 4;
(I'm doing that default_nic change for a lot of other boards
currently, so I can send a proper patch for this later)
Thomas
- Re: [PATCH v2] hw/arm/sbsa-ref: add GIC node into DT, (continued)
- Re: [PATCH v2] hw/arm/sbsa-ref: add GIC node into DT, Peter Maydell, 2023/05/23
- [PATCH 1/2] docs: sbsa: correct graphics card name, Marcin Juszkiewicz, 2023/05/23
- [PATCH 2/2] docs: sbsa: document platform version changes, Marcin Juszkiewicz, 2023/05/23
- Re: [PATCH 1/2] docs: sbsa: correct graphics card name, Thomas Huth, 2023/05/23
- [PATCH v2 1/3] docs: sbsa: correct graphics card name, Marcin Juszkiewicz, 2023/05/23
- [PATCH v2 3/3] hw/arm/Kconfig: sbsa-ref uses Bochs display, Marcin Juszkiewicz, 2023/05/23
- Re: [PATCH v2 3/3] hw/arm/Kconfig: sbsa-ref uses Bochs display, Thomas Huth, 2023/05/23
- [PATCH v2 2/3] docs: sbsa: document platform version changes, Marcin Juszkiewicz, 2023/05/23
- Re: [PATCH v2 1/3] docs: sbsa: correct graphics card name, Thomas Huth, 2023/05/23
- Re: [PATCH 1/2] docs: sbsa: correct graphics card name, Marcin Juszkiewicz, 2023/05/23
- Re: [PATCH 1/2] docs: sbsa: correct graphics card name,
Thomas Huth <=
- Re: [PATCH 1/2] docs: sbsa: correct graphics card name, Peter Maydell, 2023/05/25
- Re: [PATCH 1/2] docs: sbsa: correct graphics card name, Thomas Huth, 2023/05/25
- Re: [PATCH 1/2] docs: sbsa: correct graphics card name, Peter Maydell, 2023/05/25
- Re: [PATCH 1/2] docs: sbsa: correct graphics card name, Thomas Huth, 2023/05/25
- Re: [PATCH 1/2] docs: sbsa: correct graphics card name, Mark Cave-Ayland, 2023/05/25
- Re: [PATCH 1/2] docs: sbsa: correct graphics card name, Peter Maydell, 2023/05/25
- Re: [PATCH 1/2] docs: sbsa: correct graphics card name, Thomas Huth, 2023/05/25
- [PATCH 1/3] hw/arm/sbsa-ref: honor "-vga none" argument, Marcin Juszkiewicz, 2023/05/24
- [PATCH 2/3] hw/arm/sbsa-ref: add gfx card only if we have pci, Marcin Juszkiewicz, 2023/05/24
- Re: [PATCH 2/3] hw/arm/sbsa-ref: add gfx card only if we have pci, Thomas Huth, 2023/05/24