From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: ajax@redhat.com, qemu-devel@nongnu.org,
Anthony Liguori <aliguori@amazon.com>,
"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 2/2] vga: flip qemu 2.2 pc machine types from cirrus to stdvga
Date: Tue, 28 Oct 2014 10:37:10 +0000 [thread overview]
Message-ID: <20141028103709.GB2544@work-vm> (raw)
In-Reply-To: <1414487352-6027-3-git-send-email-kraxel@redhat.com>
* Gerd Hoffmann (kraxel@redhat.com) wrote:
> This patch switches the default display from cirrus to vga
> for the new (qemu 2.2+) machine types. Old machines types
> stay as-is for compatibility reasons.
>
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> ---
> hw/i386/pc_piix.c | 7 +++++--
> hw/i386/pc_q35.c | 7 +++++--
> 2 files changed, 10 insertions(+), 4 deletions(-)
>
> diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
> index 91a20cb..8637246 100644
> --- a/hw/i386/pc_piix.c
> +++ b/hw/i386/pc_piix.c
> @@ -456,7 +456,8 @@ static void pc_xen_hvm_init(MachineState *machine)
>
> #define PC_I440FX_2_2_MACHINE_OPTIONS \
> PC_I440FX_MACHINE_OPTIONS, \
> - .default_machine_opts = "firmware=bios-256k.bin"
> + .default_machine_opts = "firmware=bios-256k.bin", \
> + .default_display = "std"
>
> static QEMUMachine pc_i440fx_machine_v2_2 = {
> PC_I440FX_2_2_MACHINE_OPTIONS,
> @@ -466,7 +467,9 @@ static QEMUMachine pc_i440fx_machine_v2_2 = {
> .is_default = 1,
> };
>
> -#define PC_I440FX_2_1_MACHINE_OPTIONS PC_I440FX_2_2_MACHINE_OPTIONS
> +#define PC_I440FX_2_1_MACHINE_OPTIONS \
> + PC_I440FX_MACHINE_OPTIONS, \
> + .default_machine_opts = "firmware=bios-256k.bin"
I think the normal way to do this is the opposite of this; i.e.
make the display defaults be the new behaviour, then add the .default_display = "cirrus"
to the v2_1 machine type, and everything below it will automatically inherit
it, and everything newer will just use the new default.
Dave
>
> static QEMUMachine pc_i440fx_machine_v2_1 = {
> PC_I440FX_2_1_MACHINE_OPTIONS,
> diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c
> index e225c6d..9fdb3fa 100644
> --- a/hw/i386/pc_q35.c
> +++ b/hw/i386/pc_q35.c
> @@ -353,7 +353,8 @@ static void pc_q35_init_1_4(MachineState *machine)
>
> #define PC_Q35_2_2_MACHINE_OPTIONS \
> PC_Q35_MACHINE_OPTIONS, \
> - .default_machine_opts = "firmware=bios-256k.bin"
> + .default_machine_opts = "firmware=bios-256k.bin", \
> + .default_display = "std"
>
> static QEMUMachine pc_q35_machine_v2_2 = {
> PC_Q35_2_2_MACHINE_OPTIONS,
> @@ -362,7 +363,9 @@ static QEMUMachine pc_q35_machine_v2_2 = {
> .init = pc_q35_init,
> };
>
> -#define PC_Q35_2_1_MACHINE_OPTIONS PC_Q35_2_2_MACHINE_OPTIONS
> +#define PC_Q35_2_1_MACHINE_OPTIONS \
> + PC_Q35_MACHINE_OPTIONS, \
> + .default_machine_opts = "firmware=bios-256k.bin"
>
> static QEMUMachine pc_q35_machine_v2_1 = {
> PC_Q35_2_1_MACHINE_OPTIONS,
> --
> 1.8.3.1
>
>
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
next prev parent reply other threads:[~2014-10-28 10:37 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-28 9:09 [Qemu-devel] [PATCH 0/2] vga: demote cirrus Gerd Hoffmann
2014-10-28 9:09 ` [Qemu-devel] [PATCH 1/2] vga: add default display to machine class Gerd Hoffmann
2014-10-28 9:09 ` [Qemu-devel] [PATCH 2/2] vga: flip qemu 2.2 pc machine types from cirrus to stdvga Gerd Hoffmann
2014-10-28 10:37 ` Dr. David Alan Gilbert [this message]
2014-10-28 10:48 ` Gerd Hoffmann
2014-11-23 12:11 ` Michael S. Tsirkin
2014-11-24 8:55 ` Gerd Hoffmann
2014-11-24 11:50 ` Michael S. Tsirkin
2014-11-24 12:18 ` Gerd Hoffmann
2014-11-25 10:35 ` Michael S. Tsirkin
2014-11-25 15:05 ` Gerd Hoffmann
2014-11-02 11:14 ` [Qemu-devel] [PATCH 0/2] vga: demote cirrus Michael S. Tsirkin
2014-11-03 7:10 ` Gerd Hoffmann
2014-11-03 7:43 ` Markus Armbruster
2014-11-03 10:29 ` Michael S. Tsirkin
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=20141028103709.GB2544@work-vm \
--to=dgilbert@redhat.com \
--cc=ajax@redhat.com \
--cc=aliguori@amazon.com \
--cc=kraxel@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
/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).