All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@web.de>
To: Stefan BOSAK <stefan.bosak@feikar.sk>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Fixed bug [Bug 38672] - bugzilla.kernel.org
Date: Tue, 12 Jul 2011 00:05:44 +0200	[thread overview]
Message-ID: <4E1B73B8.9030002@web.de> (raw)
In-Reply-To: <4E1767E8.40803@feikar.sk>

[-- Attachment #1: Type: text/plain, Size: 1007 bytes --]

On 2011-07-08 22:26, Stefan BOSAK wrote:
> Hello.
> 
> Bug is in (xen-mapcache.c):
> 
> Reported-by: Steve <stefan.bosak@gmail.com>
> Signed-off-by: Steve <stefan.bosak@gmail.com>
> 
> diff --git a/xen-mapcache.c b/xen-mapcache.c
> index 57fe24d..1c3b5bf 100644
> --- a/xen-mapcache.c
> +++ b/xen-mapcache.c
> @@ -107,7 +107,7 @@ void qemu_map_cache_init(void)
>      size = mapcache->nr_buckets * sizeof (MapCacheEntry);
>      size = (size + XC_PAGE_SIZE - 1) & ~(XC_PAGE_SIZE - 1);
>      DPRINTF("qemu_map_cache_init, nr_buckets = %lx size %lu\n",
> mapcache->nr_buckets, size);
> -    mapcache->entry = qemu_mallocz(size);
> +    mapcache->entry = qemu_mallocz(size*sizeof(MapCacheEntry));

This is obviously (see a few lines above) already correct and can't be
related to your problems - the Xen bits aren't even executed in KVM mode.

The bug you stumbled over finally cost my nerves today as well. The
regression comes from commit 38bee5dc94. I'll poke the author.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

      reply	other threads:[~2011-07-11 22:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-08 20:26 [Qemu-devel] Fixed bug [Bug 38672] - bugzilla.kernel.org Stefan BOSAK
2011-07-11 22:05 ` Jan Kiszka [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=4E1B73B8.9030002@web.de \
    --to=jan.kiszka@web.de \
    --cc=qemu-devel@nongnu.org \
    --cc=stefan.bosak@feikar.sk \
    /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.