From: Thomas Huth <thuth@redhat.com>
To: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>,
qemu-devel@nongnu.org
Cc: qemu-arm@nongnu.org, Leif Lindholm <quic_llindhol@quicinc.com>,
Peter Maydell <peter.maydell@linaro.org>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [PATCH v4 3/3] hw/arm/sbsa-ref: set default display to Bochs
Date: Wed, 24 May 2023 13:48:06 +0200 [thread overview]
Message-ID: <7cf5bc4f-844d-9dc4-9f85-f136853401e4@redhat.com> (raw)
In-Reply-To: <20230524111413.833912-4-marcin.juszkiewicz@linaro.org>
On 24/05/2023 13.14, Marcin Juszkiewicz wrote:
> This way we can use pci_vga_init() and have Bochs by default while still
> have an option to run with other VGA cards.
>
> Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
> ---
> hw/arm/sbsa-ref.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c
> index 9c3e670ec6..ed7ed00b3d 100644
> --- a/hw/arm/sbsa-ref.c
> +++ b/hw/arm/sbsa-ref.c
> @@ -647,9 +647,9 @@ static void create_pcie(SBSAMachineState *sms)
>
> pci_nic_init_nofail(nd, pci->bus, nd->model, NULL);
> }
> - }
>
> - pci_create_simple(pci->bus, -1, "bochs-display");
> + pci_vga_init(pci->bus);
> + }
>
> create_smmu(sms, pci->bus);
> }
> @@ -863,6 +863,7 @@ static void sbsa_ref_class_init(ObjectClass *oc, void *data)
> mc->default_ram_size = 1 * GiB;
> mc->default_ram_id = "sbsa-ref.ram";
> mc->default_cpus = 4;
> + mc->default_display = "bochs-display";
> mc->possible_cpu_arch_ids = sbsa_ref_possible_cpu_arch_ids;
> mc->cpu_index_to_instance_props = sbsa_ref_cpu_index_to_props;
> mc->get_default_cpu_node_id = sbsa_ref_get_default_cpu_node_id;
Reviewed-by: Thomas Huth <thuth@redhat.com>
prev parent reply other threads:[~2023-05-24 11:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-24 11:14 [PATCH v4 0/3] hw/arm/sbsa-ref: sort out graphics a bit Marcin Juszkiewicz
2023-05-24 11:14 ` [PATCH 1/3] hw/arm: Use MachineClass->default_nic in the sbsa-ref machine Marcin Juszkiewicz
2023-05-24 11:14 ` [PATCH v4 2/3] Add Bochs to list of vga_interfaces Marcin Juszkiewicz
2023-05-24 11:47 ` Thomas Huth
2023-05-25 10:15 ` Peter Maydell
2023-05-24 11:14 ` [PATCH v4 3/3] hw/arm/sbsa-ref: set default display to Bochs Marcin Juszkiewicz
2023-05-24 11:48 ` Thomas Huth [this message]
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=7cf5bc4f-844d-9dc4-9f85-f136853401e4@redhat.com \
--to=thuth@redhat.com \
--cc=marcin.juszkiewicz@linaro.org \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=quic_llindhol@quicinc.com \
/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).