All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Alon Levy <alevy@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/3] qxl: add fb_size_mb and fb_size
Date: Mon, 11 Jun 2012 09:42:28 +0200	[thread overview]
Message-ID: <4FD5A164.6060403@redhat.com> (raw)
In-Reply-To: <1339395841-31413-2-git-send-email-alevy@redhat.com>

  Hi,

> +        if (d->fb_size < fb) {
> +            d->fb_size = fb;
> +        }
> +        if (fb <= d->fb_size) {

This check doesn't make sense, it will always be true.

> +    if (qxl->fb_size_mb != -1 &&
> +        qxl->fb_size_mb * 1024 * 1024 < qxl->vga.vram_size) {
> +        qxl->fb_size = qxl->fb_size_mb * 1024 * 1024;
> +    } else {
> +        qxl->fb_size = VGA_RAM_SIZE;
> +    }

Reminds me that I have some pending work to make vga ram size
configurable which I should finish and repost ...

Current state pushed to http://www.kraxel.org/cgit/qemu/log/?h=vga.1

It probably makes sense to base this on top.

> +        DEFINE_PROP_UINT32("fb_size_mb", PCIQXLDevice, fb_size_mb, -1),

Maybe also rename this to vgamem_mb for consistency with standard vga.

cheers,
  Gerd

  reply	other threads:[~2012-06-11  7:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-11  6:23 [Qemu-devel] [PATCH 0/3] qxl fb size and async fix Alon Levy
2012-06-11  6:23 ` [Qemu-devel] [PATCH 1/3] qxl: add fb_size_mb and fb_size Alon Levy
2012-06-11  7:42   ` Gerd Hoffmann [this message]
2012-06-11  8:26     ` Alon Levy
2012-06-11  8:29       ` Gerd Hoffmann
2012-06-11  8:35         ` Alon Levy
2012-06-11  9:33         ` Alon Levy
2012-06-11 10:18           ` Gerd Hoffmann
2012-06-11 10:23             ` Alon Levy
2012-06-11  6:24 ` [Qemu-devel] [PATCH 2/3] qxl: refuse to create primary larger then fb size Alon Levy
2012-06-11  6:24 ` [Qemu-devel] [PATCH 3/3] qxl: reset current_async on qxl_soft_reset Alon Levy

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=4FD5A164.6060403@redhat.com \
    --to=kraxel@redhat.com \
    --cc=alevy@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 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.