All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Fixed bug [Bug 38672] - bugzilla.kernel.org
@ 2011-07-08 20:26 Stefan BOSAK
  2011-07-11 22:05 ` Jan Kiszka
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan BOSAK @ 2011-07-08 20:26 UTC (permalink / raw)
  To: qemu-devel

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));
  }

static void qemu_remap_bucket(MapCacheEntry *entry,

Should somebody commit this fix ?

Thank you for your time.

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] Fixed bug [Bug 38672] - bugzilla.kernel.org
  2011-07-08 20:26 [Qemu-devel] Fixed bug [Bug 38672] - bugzilla.kernel.org Stefan BOSAK
@ 2011-07-11 22:05 ` Jan Kiszka
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kiszka @ 2011-07-11 22:05 UTC (permalink / raw)
  To: Stefan BOSAK; +Cc: qemu-devel

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-11 22:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-08 20:26 [Qemu-devel] Fixed bug [Bug 38672] - bugzilla.kernel.org Stefan BOSAK
2011-07-11 22:05 ` Jan Kiszka

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.