qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: "Søren Sandmann" <sandmann@cs.au.dk>
Cc: "Juan Quintela" <quintela@redhat.com>,
	qemu-devel@nongnu.org, "Søren Sandmann Pedersen" <ssp@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 1/2] spice: Change NUM_SURFACES to 4096
Date: Tue, 28 Aug 2012 08:32:17 +0200	[thread overview]
Message-ID: <503C65F1.5040704@redhat.com> (raw)
In-Reply-To: <1346084480-7994-1-git-send-email-sandmann@cs.au.dk>

On 08/27/12 18:21, Søren Sandmann wrote:
> From: Søren Sandmann Pedersen <ssp@redhat.com>
> 
> It's not uncommon for an X workload to have more than 1024 pixmaps
> live at the same time. Ideally, there wouldn't be any fixed limit like
> this, but since we have one, increase it to 4096.
> ---
>  ui/spice-display.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/ui/spice-display.h b/ui/spice-display.h
> index 12e50b6..e8d01a5 100644
> --- a/ui/spice-display.h
> +++ b/ui/spice-display.h
> @@ -32,7 +32,7 @@
>  #define MEMSLOT_GROUP_GUEST 1
>  #define NUM_MEMSLOTS_GROUPS 2
>  
> -#define NUM_SURFACES 1024
> +#define NUM_SURFACES 4096

Breaks live migration.

First, we must make this runtime-configurable.  rev3 qxl devices should
continue to operate with 1024 surfaces for compatibility with older qemu
versions.

Second the vmstate must be adapted to handle this.  The number of
surfaces is in the migration data stream, so this should be doable
without too much trouble.  Right now it looks like this:

        [ ... ]
        VMSTATE_INT32_EQUAL(num_surfaces, PCIQXLDevice),
        VMSTATE_ARRAY(guest_surfaces.cmds, PCIQXLDevice, NUM_SURFACES, 0,
                      vmstate_info_uint64, uint64_t),
        [ ... ]

Juan?  Suggestions how to handle this?  There seems to be no direct way
to make the array size depend on num_surfaces.  I think we could have
two VMSTATE_ARRAY_TEST() entries, one for 1024 and one for 4096.

Better ideas?

cheers,
  Gerd

  reply	other threads:[~2012-08-28  6:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-27 16:21 [Qemu-devel] [PATCH 1/2] spice: Change NUM_SURFACES to 4096 Søren Sandmann
2012-08-28  6:32 ` Gerd Hoffmann [this message]
2012-08-28 12:20   ` Juan Quintela
2012-08-28 12:37     ` Gerd Hoffmann

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=503C65F1.5040704@redhat.com \
    --to=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    --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 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).