[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH] linux-user: Fix target_statfs[64] on 64-bit hos
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] Re: [PATCH] linux-user: Fix target_statfs[64] on 64-bit hosts |
Date: |
Mon, 14 Jul 2008 09:28:26 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
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 <address@hidden>
---
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;