Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HKh5z-0004dP-M2 for qemu-devel@nongnu.org; Fri, 23 Feb 2007 15:32:47 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HKh5w-0004cE-7z for qemu-devel@nongnu.org; Fri, 23 Feb 2007 15:32:46 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKh5v-0004c1-Vv for qemu-devel@nongnu.org; Fri, 23 Feb 2007 15:32:44 -0500 Received: from web62002.mail.re1.yahoo.com ([69.147.74.225]) by monty-python.gnu.org with smtp (Exim 4.52) id 1HKh5v-0006Oe-LQ for qemu-devel@nongnu.org; Fri, 23 Feb 2007 15:32:43 -0500 Date: Fri, 23 Feb 2007 12:32:21 -0800 (PST) From: Ilya Shar MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <29734.32395.qm@web62002.mail.re1.yahoo.com> Subject: [Qemu-devel] Page protection and i386 cmpxchg8b Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, I'm running i386-darwin-usrer on i386 and some apps (Safari browser) crash because cmpxchg8b attempts to wrie to a qemu-allocated page which is readable but write-protected. When I comment out mprotect in exec.c // mprotect(g2h(page_addr), qemu_host_page_size, // (prot & PAGE_BITS) & ~PAGE_WRITE); I can proceed further. I would guess mprotect is there for a reason so it doesn't seem like a good solution, besides the runs get substantially slower without mprotect. Is there a solution to this problem or a way to better understand what is going on? Thanks, Ilya ____________________________________________________________________________________ Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A. http://answers.yahoo.com/dir/?link=list&sid=396545367