All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Cc: kvm-ppc@vger.kernel.org
Subject: Re: [Qemu-devel] [PATCH] Define OS-dependent qemu_getpagesize()
Date: Tue, 11 Nov 2008 22:08:18 +0000	[thread overview]
Message-ID: <491A0252.2050401@codemonkey.ws> (raw)
In-Reply-To: <ca05fc2e0d764bbfd45a.1226352804@localhost.localdomain>

Hollis Blanchard wrote:
> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
>   

This breaks the -linux-user build.

> diff --git a/qemu/exec.c b/qemu/exec.c
> --- a/qemu/exec.c
> +++ b/qemu/exec.c
> @@ -239,16 +239,7 @@ static void page_init(void)
>  {
>      /* NOTE: we can always suppose that qemu_host_page_size >>         TARGET_PAGE_SIZE */
> -#ifdef _WIN32
> -    {
> -        SYSTEM_INFO system_info;
> -
> -        GetSystemInfo(&system_info);
> -        qemu_real_host_page_size = system_info.dwPageSize;
> -    }
> -#else
> -    qemu_real_host_page_size = getpagesize();
> -#endif
> +    qemu_real_host_page_size = qemu_getpagesize();
>      if (qemu_host_page_size = 0)
>          qemu_host_page_size = qemu_real_host_page_size;
>      if (qemu_host_page_size < TARGET_PAGE_SIZE)
>   

This is only used by -linux-user, which does not use osdep.c.

I've reverted this changeset and changed qemu_vmalloc() to just use 
getpagesize().

Regards,

Anthony Liguori


WARNING: multiple messages have this Message-ID (diff)
From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Cc: kvm-ppc@vger.kernel.org
Subject: Re: [Qemu-devel] [PATCH] Define OS-dependent qemu_getpagesize()
Date: Tue, 11 Nov 2008 16:08:18 -0600	[thread overview]
Message-ID: <491A0252.2050401@codemonkey.ws> (raw)
In-Reply-To: <ca05fc2e0d764bbfd45a.1226352804@localhost.localdomain>

Hollis Blanchard wrote:
> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
>   

This breaks the -linux-user build.

> diff --git a/qemu/exec.c b/qemu/exec.c
> --- a/qemu/exec.c
> +++ b/qemu/exec.c
> @@ -239,16 +239,7 @@ static void page_init(void)
>  {
>      /* NOTE: we can always suppose that qemu_host_page_size >=
>         TARGET_PAGE_SIZE */
> -#ifdef _WIN32
> -    {
> -        SYSTEM_INFO system_info;
> -
> -        GetSystemInfo(&system_info);
> -        qemu_real_host_page_size = system_info.dwPageSize;
> -    }
> -#else
> -    qemu_real_host_page_size = getpagesize();
> -#endif
> +    qemu_real_host_page_size = qemu_getpagesize();
>      if (qemu_host_page_size == 0)
>          qemu_host_page_size = qemu_real_host_page_size;
>      if (qemu_host_page_size < TARGET_PAGE_SIZE)
>   

This is only used by -linux-user, which does not use osdep.c.

I've reverted this changeset and changed qemu_vmalloc() to just use 
getpagesize().

Regards,

Anthony Liguori

  parent reply	other threads:[~2008-11-11 22:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-10 21:33 [PATCH] Define OS-dependent qemu_getpagesize() Hollis Blanchard
2008-11-10 21:33 ` [Qemu-devel] " Hollis Blanchard
2008-11-11 21:30 ` Allocate guest memory on host page boundaries Hollis Blanchard
2008-11-11 21:30   ` [Qemu-devel] " Hollis Blanchard
2008-11-11 21:56 ` [Qemu-devel] [PATCH] Define OS-dependent qemu_getpagesize() Anthony Liguori
2008-11-11 21:56   ` Anthony Liguori
2008-11-11 22:08 ` Anthony Liguori [this message]
2008-11-11 22:08   ` Anthony Liguori

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=491A0252.2050401@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=kvm-ppc@vger.kernel.org \
    --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.