qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@web.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH] linux-user: Fix target_statfs[64] on 64-bit hosts
Date: Mon, 14 Jul 2008 09:28:26 +0200	[thread overview]
Message-ID: <487B001A.70706@web.de> (raw)
In-Reply-To: <487A6593.5020508@web.de>

Jan Kiszka wrote:
> Testing qemu-x86_64, I happen to run df and came across these mistakes
> in the target_statfs/target_statfs64 structure definitions (reference:
> linux/include/asm-x86/statfs.h).

Forget this, broke 32-bit guest. The trick is to enable the last but one
#if block also for x86_64 on x86_64. I've nothing to test here, but my
strong feeling is that SPARC64 needs an according fix as well.

--------

Use correct target_statfs[_64] definitions for x86/sparc64 on 64-bit.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
---
 linux-user/syscall_defs.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: b/linux-user/syscall_defs.h
===================================================================
--- a/linux-user/syscall_defs.h
+++ b/linux-user/syscall_defs.h
@@ -1570,7 +1570,7 @@ struct target_statfs64 {
 	uint32_t	f_namelen;
 	uint32_t	f_spare[6];
 };
-#elif defined(TARGET_PPC64) && !defined(TARGET_ABI32)
+#elif (defined(TARGET_PPC64) || defined(TARGET_X86_64) || defined(TARGET_SPARC64)) && !defined(TARGET_ABI32)
 struct target_statfs {
 	abi_long f_type;
 	abi_long f_bsize;

      reply	other threads:[~2008-07-14  7:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-13 20:29 [Qemu-devel] [PATCH] linux-user: Fix target_statfs[64] on 64-bit hosts Jan Kiszka
2008-07-14  7:28 ` 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=487B001A.70706@web.de \
    --to=jan.kiszka@web.de \
    --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 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).