From owner-freebsd-emulation Sun Feb 25 13:21:43 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from smtp10.atl.mindspring.net (smtp10.atl.mindspring.net [207.69.200.246]) by hub.freebsd.org (Postfix) with ESMTP id 0AF2737B491 for ; Sun, 25 Feb 2001 13:21:40 -0800 (PST) (envelope-from vsilyaev@mindspring.com) Received: from delta.rc.ny.us (nyf-ny5-33.ix.netcom.com [198.211.17.33]) by smtp10.atl.mindspring.net (8.9.3/8.8.5) with ESMTP id QAA07711 for ; Sun, 25 Feb 2001 16:21:14 -0500 (EST) Received: (from vsilyaev@localhost) by delta.rc.ny.us (8.11.1/8.9.3) id f1PLKoE00312 for freebsd-emulation@FreeBSD.ORG; Sun, 25 Feb 2001 16:20:50 -0500 (EST) (envelope-from vsilyaev) Date: Sun, 25 Feb 2001 08:58:22 -0500 From: Vladimir Silyaev To: Julian Elischer Cc: Andrew Gallatin , Matt Dillon , freebsd-emulation@FreeBSD."ORG" Subject: Re: Does vmware2 wire pages? Message-ID: <20010225085822.A305@delta.rc.ny.us> References: <3A89B7A0.B47D91E@Lustig.COM> <20010214072943.A365@delta.rc.ny.us> <3A96A29A.3BBF2614@elischer.org> <14998.46507.267723.148767@grasshopper.cs.duke.edu> <3A988DF4.9A1626E0@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A988DF4.9A1626E0@elischer.org>; from julian@elischer.org on Sat, Feb 24, 2001 at 08:45:40PM -0800 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, Feb 24, 2001 at 08:45:40PM -0800, Julian Elischer wrote: > > > > The first part (hacking the Linulator) is unacceptable for general > > consumption & a better way needs to be found. One thing I've thought > > of is adding some functionality to the vmmon kernel module to force > > the vmware app's mmap'ed regions to be MAP_NOSYNC. I don't know > > enough about how vmware works to achieve this & have not had the time > > to look into it further. > > Matt and Vladimir, can the two of you figure out between you > how to do this? Vladimir knows the vmware side and Matt knows the VM options > available. Ok. From vmmon side memory wired in the next way: m = PHYS_TO_VM_PAGE(paddr); vm_page_wire(m); All those pages have a file as backed media (or in another words pages are coming from mmaped file). How file mmaped it's not handled vmmmon - vmmon just making lock/unlock memory and translation between virtual and physical addresses. I hope that my five cents fill be helpful. -- Regards, Vladimir P.S. Do we have any problems to make mmap (at least for linuxalator always MAP_NOSYNC? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message