Message ID | 20230524083913.696175-1-marcin.juszkiewicz@linaro.org |
---|---|
State | Superseded |
Headers | show |
Series | [1/3] hw/arm/sbsa-ref: honor "-vga none" argument | expand |
On 24/05/2023 10.39, Marcin Juszkiewicz wrote: > In case someone wants to run without graphics card. > > Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> > --- > hw/arm/sbsa-ref.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c > index 9c3e670ec6..c540b2f1ba 100644 > --- a/hw/arm/sbsa-ref.c > +++ b/hw/arm/sbsa-ref.c > @@ -649,7 +649,9 @@ static void create_pcie(SBSAMachineState *sms) > } > } > > - pci_create_simple(pci->bus, -1, "bochs-display"); > + if (vga_interface_type != VGA_NONE) { > + pci_create_simple(pci->bus, -1, "bochs-display"); > + } > > create_smmu(sms, pci->bus); > } Reviewed-by: Thomas Huth <thuth@redhat.com>
On 24/05/2023 10.39, Marcin Juszkiewicz wrote: > In case someone wants to run without graphics card. > > Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> > --- > hw/arm/sbsa-ref.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c > index 9c3e670ec6..c540b2f1ba 100644 > --- a/hw/arm/sbsa-ref.c > +++ b/hw/arm/sbsa-ref.c > @@ -649,7 +649,9 @@ static void create_pcie(SBSAMachineState *sms) > } > } > > - pci_create_simple(pci->bus, -1, "bochs-display"); > + if (vga_interface_type != VGA_NONE) { > + pci_create_simple(pci->bus, -1, "bochs-display"); > + } > > create_smmu(sms, pci->bus); > } Reviewed-by: Thomas Huth <thuth@redhat.com>
diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c index 9c3e670ec6..c540b2f1ba 100644 --- a/hw/arm/sbsa-ref.c +++ b/hw/arm/sbsa-ref.c @@ -649,7 +649,9 @@ static void create_pcie(SBSAMachineState *sms) } } - pci_create_simple(pci->bus, -1, "bochs-display"); + if (vga_interface_type != VGA_NONE) { + pci_create_simple(pci->bus, -1, "bochs-display"); + } create_smmu(sms, pci->bus); }
In case someone wants to run without graphics card. Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> --- hw/arm/sbsa-ref.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)