mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Malcolm Beattie <mbeattie@clueful.co.uk>
To: Larry McVoy <lm@work.bitmover.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Linux on s/390 is cute
Date: Thu, 18 Apr 2002 21:13:29 +0100	[thread overview]
Message-ID: <20020418211329.A8618@clueful.co.uk> (raw)
In-Reply-To: <20020418082636.O2710@work.bitmover.com>

Larry McVoy writes:
> I'd really like to see the IBM guys let the walls between the linux
> instances down a bit.  If I could mmap the other linux instances
> memory, that's a kickass system.

The situation is analagous to that of mapping memory between tasks in
Linux. Instead of one task mapping another's address space directly,
the usual design is to have both tasks do a shared mmap() of an
underlying file. Similarly, with multiple Linux guests under VM, you
can have them both map a shared pre-created Named Saved Segment (NSS).

Such an NSS is created by a guest with appropriate privileges via the
CP command DEFSEG and then, once mapped and primed with its initial
content, saved with SAVESEG. After that, other (permitted) guests can
access and map it into their (perceived real) address space via the
DIAGNOSE X'64' API. For details, see the manuals
"CP Command and Utility Reference" (SC24-6008-02) and
"CP Programming Services" (SC24-6001-01) available in PDF form from
    http://www.vm.ibm.com/pubs/pdf/vm420bas.html

There's also DIAG X'248' ("Copy-to-Primary Service") which lets you
copy memory from the address space of another guest into your own
address space (obviously, the other guest must have set access
controls to let you do it...). Nobody has yet published nice Linuxy
interfaces to use either of these APIs but it's somewhere low down my
ToDo list and I've a feeling someone else that's been looking at this
stuff will probably beat me to it anyway.

> Anyway, kudos to the people who did the Linux/390 stuff, we'll
> include it in our list of supported platforms next release.

I'll check and see if it gets added to the Linux/390 software
availability list.

--Malcolm

-- 
Malcolm Beattie <mbeattie@clueful.co.uk>
Linux Technical Consultant
IBM EMEA Enterprise Server Group...
...from home, speaking only for myself

      parent reply	other threads:[~2002-04-18 20:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-18 15:26 Larry McVoy
2002-04-18 15:46 ` Christian Bornträger
2002-04-18 16:44   ` Alan Cox
2002-04-18 16:43 ` Alan Cox
2002-04-18 20:13 ` Malcolm Beattie [this message]

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=20020418211329.A8618@clueful.co.uk \
    --to=mbeattie@clueful.co.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lm@work.bitmover.com \
    /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

all inboxes | Powered by JetHome®