linux-um archives
 help / color / mirror / Atom feed
From: BlaisorBlade <blaisorblade_spam@yahoo.it>
To: Jeff Dike <jdike@addtoit.com>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Re: [uml-user] /dev/anon available
Date: Sun, 18 Jan 2004 17:13:38 +0100	[thread overview]
Message-ID: <200401181637.35418.blaisorblade_spam@yahoo.it> (raw)
In-Reply-To: <20040118045439.GE8571@ccure.user-mode-linux.org>

Alle 05:54, domenica 18 gennaio 2004, Jeff Dike ha scritto:
> On Sat, Jan 17, 2004 at 08:48:47PM +0100, BlaisorBlade wrote:
> > I've given a look to the page, but yet I cannot see (this can be for my
> > fault, but I'd really like an explaination of this) why you couldn't just
> > mmap /dev/zero with MAP_PRIVATE to get the behaviour you want to get from
> > /dev/anon (or maybe using MAP_ANONYMOUS).
>
> Because when you map a /dev/zero page, modify it, then map it (i.e. the
> same offset and the same fd) again someplace else, you don't get the
> modifications. You get a page full of zeros.   This obviously breaks the
> UML VM system.

Yes, that's obvious with MAP_PRIVATE (and using MAP_SHARED would be 
meaningless, if at all worked). But I wasn't aware you needed to map the same 
region twice; I guess this is done for pages shared (even with copy on write) 
between different processes inside UML, right? Also, since with skas the 
mm_struct's of the virtual processes have nothing in common, they cannot

However, have you asked to Linus if he likes /dev/anon? Maybe he'll suggest 
another interface for the same need (like when you two discussed skas4).

-- 
cat <<EOSIGN
Paolo Giarrusso, aka Blaisorblade
Linux Kernel 2.4.23/2.6.0 on an i686; Linux registered user n. 292729
EOSIGN




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2004-01-18 18:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200401130510.i0D5AlS4026784@ccure.user-mode-linux.org>
2004-01-17 19:48 ` [uml-devel] Re: [uml-user] /dev/anon available BlaisorBlade
2004-01-18  4:54   ` Jeff Dike
2004-01-18 16:13     ` BlaisorBlade [this message]
2004-01-18 23:53       ` Jeff Dike
2004-01-20 19:32         ` BlaisorBlade

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=200401181637.35418.blaisorblade_spam@yahoo.it \
    --to=blaisorblade_spam@yahoo.it \
    --cc=jdike@addtoit.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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