All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: "Søren Sandmann" <sandmann@cs.au.dk>
Cc: "Søren Sandmann Pedersen" <ssp@redhat.com>,
	qemu-devel@nongnu.org, kraxel@redhat.com
Subject: Re: [Qemu-devel] [PATCH] qxl: Default to PCI revision 4 when spice-server is new enough
Date: Thu, 04 Oct 2012 11:44:20 +0200	[thread overview]
Message-ID: <506D5A74.5040904@redhat.com> (raw)
In-Reply-To: <1349287077-10062-1-git-send-email-sandmann@cs.au.dk>

Il 03/10/2012 19:57, Søren Sandmann ha scritto:
> From: Søren Sandmann Pedersen <ssp@redhat.com>
> 
> When spice-server is newer than 0.12.0, the default revision should be
> QXL_REVISION_STABLE_V12.
> 
> Signed-off-by: Soren Sandmann <ssp@redhat.com>
> ---
>  hw/qxl.h |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/qxl.h b/hw/qxl.h
> index 5553824..4460bb2 100644
> --- a/hw/qxl.h
> +++ b/hw/qxl.h
> @@ -129,8 +129,7 @@ typedef struct PCIQXLDevice {
>          }                                                               \
>      } while (0)
>  
> -#if 0
> -/* spice-server 0.12 is still in development */
> +#if SPICE_SERVER_VERSION >= 0x000c00 /* 0x000c00 == 0.12.0 */
>  #define QXL_DEFAULT_REVISION QXL_REVISION_STABLE_V12
>  #else
>  #define QXL_DEFAULT_REVISION QXL_REVISION_STABLE_V10
> 

No, that's not possible.  The revision must be the same for all machines
started with the same "-M" argument.  So your only choice is to make
0.12 a requirement for QEMU 1.3.  Then you can use compatibility
properties (see the long list of strings in hw/pc_piix.c) to ensure that
pc-1.2 and earlier machines use the previous revision.

If you cannot release 0.12 in time for QEMU 1.3, your only choice is to
wait for 1.4.  In the meanwhile, use "-global qxl.revision=4 -global
qxl-vga.revision=4" to create a machine with revision 4.

Paolo

  reply	other threads:[~2012-10-04  9:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-03 17:57 [Qemu-devel] [PATCH] qxl: Default to PCI revision 4 when spice-server is new enough Søren Sandmann
2012-10-04  9:44 ` Paolo Bonzini [this message]
2012-10-04 17:31   ` Søren Sandmann
2012-10-04 17:37     ` [Qemu-devel] [PATCH] Require spice-server 0.12.0 and spice-protocol 0.12.2 Søren Sandmann
2012-10-05  7:25       ` Paolo Bonzini
2012-10-05 14:02         ` Søren Sandmann
2012-10-08  7:33       ` Gerd Hoffmann
2012-10-05  7:21     ` [Qemu-devel] [PATCH] qxl: Default to PCI revision 4 when spice-server is new enough Paolo Bonzini

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=506D5A74.5040904@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=sandmann@cs.au.dk \
    --cc=ssp@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.