* [Qemu-devel] [BUG] syscall mmap broken @ 2007-01-08 8:11 Kirill A. Shutemov 2007-01-08 16:21 ` Paul Brook 0 siblings, 1 reply; 3+ messages in thread From: Kirill A. Shutemov @ 2007-01-08 8:11 UTC (permalink / raw) To: qemu-devel [-- Attachment #1: Type: text/plain, Size: 180 bytes --] On a 64-bit host system mmap sometimes(quite rarely on x86_64) return address above 0xffffffff. If target system is a 32-bit system then mojor 32-bit will be dropped due to h2g(). [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [BUG] syscall mmap broken 2007-01-08 8:11 [Qemu-devel] [BUG] syscall mmap broken Kirill A. Shutemov @ 2007-01-08 16:21 ` Paul Brook 2007-01-10 13:06 ` Kirill A. Shutemov 0 siblings, 1 reply; 3+ messages in thread From: Paul Brook @ 2007-01-08 16:21 UTC (permalink / raw) To: qemu-devel; +Cc: Kirill A. Shutemov On Monday 08 January 2007 08:11, Kirill A. Shutemov wrote: > On a 64-bit host system mmap sometimes(quite rarely on x86_64) return > address above 0xffffffff. If target system is a 32-bit system then mojor > 32-bit will be dropped due to h2g(). We should be using MAP_32BIT or MAP_FIXED. Paul ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [BUG] syscall mmap broken 2007-01-08 16:21 ` Paul Brook @ 2007-01-10 13:06 ` Kirill A. Shutemov 0 siblings, 0 replies; 3+ messages in thread From: Kirill A. Shutemov @ 2007-01-10 13:06 UTC (permalink / raw) To: qemu-devel; +Cc: Paul Brook [-- Attachment #1: Type: text/plain, Size: 498 bytes --] On [Mon, 08.01.2007 16:21], Paul Brook wrote: > On Monday 08 January 2007 08:11, Kirill A. Shutemov wrote: > > On a 64-bit host system mmap sometimes(quite rarely on x86_64) return > > address above 0xffffffff. If target system is a 32-bit system then mojor > > 32-bit will be dropped due to h2g(). > > We should be using MAP_32BIT or MAP_FIXED. But MAP_32BIT can be only used for x86_64. What about other 64-bit host system? It seems that right way to write VM for linux-user emulators. [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-01-10 13:06 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-01-08 8:11 [Qemu-devel] [BUG] syscall mmap broken Kirill A. Shutemov 2007-01-08 16:21 ` Paul Brook 2007-01-10 13:06 ` Kirill A. Shutemov
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).