qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] 2 MiB alignment in qemu_vmalloc()
@ 2011-10-12 18:05 Stefan Weil
  2011-10-12 20:02 ` Alexander Graf
  0 siblings, 1 reply; 9+ messages in thread
From: Stefan Weil @ 2011-10-12 18:05 UTC (permalink / raw)
  To: Avi Kivity; +Cc: QEMU Developers

Hello Avi,

commit 36b58628 increased the alignment for some large memory
blocks (typically the system RAM) to 2 MiB (QEMU_VMALLOC_ALIGN)
on x86_64 Linux hosts.

As far as I know, this was only required for KVM.

There is a bad side effect of this increase: the Valgrind tool
only supports an alignment of up to 1 MiB. It aborts execution
with current QEMU for any target (even non-KVM targets).

It might be possible to modify Valgrind (as far as I know this
is already discussed), and of course I can also patch my local
QEMU. Nevertheless, I think the alignment should be reduced
again when there is no KVM support or KVM is disabled.
Maybe the large alignment has other unwanted side effects.

The code is in oslib-posix.c (target independent) and needs
something like kvm_enabled() (currently a macro). What would
you suggest? Maybe you can provide a patch.

Kind regards,
Stefan

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

end of thread, other threads:[~2011-10-16  8:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-12 18:05 [Qemu-devel] 2 MiB alignment in qemu_vmalloc() Stefan Weil
2011-10-12 20:02 ` Alexander Graf
2011-10-12 20:41   ` Stefan Weil
2011-10-12 20:47     ` Alexander Graf
2011-10-12 21:19       ` Stefan Weil
2011-10-12 21:30         ` Alexander Graf
2011-10-13  7:56         ` Gerd Hoffmann
2011-10-13 13:23           ` Paolo Bonzini
2011-10-16  8:41   ` Avi Kivity

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).