From: Andrey Romanenko <bigral@i.com.ua>
To: linux-8086@vger.kernel.org
Subject: Re: AW: [Fwd: Re: EDE - Personal Suggestions and Ideas]
Date: Wed, 26 May 2004 20:42:17 +0300 [thread overview]
Message-ID: <40B4D6F9.4070507@i.com.ua> (raw)
In-Reply-To: <200405261749.42017.dg@cowlark.com>
Hi David,
David Given wrote:
>The only issue with this is, what happens if it's the code or data segments
>that have changed... you can't execute any user code until the segments have
>been updated and you can't update segments without running user code!
>
>
that is the result of breaking general rule - do not allow user-mode
processes to manage kernel tasks :)
>{
> resize_buffer(32*1024); /* request 32kB buffer area */
> copy_from_buffer(data, 2*1024, 32); /* copy 32 bytes to data from 2kB
> into buffer area */
>}
>
>
by this code you just change one user-mode process memory manamgent by
athother one - same mistake.
>If you want to use more than one extra segment, however, you end up with
>exactly the same problem as before --- the kernel doesn't know where the
>segment addresses are in the app's address space. Giving the kernel a pointer
>to where it's stored is really, really ugly.
>
>
WHY??? almost the same situation happens on the real hardware with 386
cpu - difference only that kernel does have another way to acomplish
this task (by changing apropriate tables in own memory space); I
consider this situation almost equal - we just update locations pointed
by process itself insted of those defined by 386cpu architecture. And at
the end of the story I see C++ compiler that supports ONLY 32bit
pointers and make translation of 32bit-virtual addresses to 8086's
xxxx:xxxx - format addresses absolutely invisible for programmer of
multi-segment exe module.
>Perhaps a better approach would be to have the kernel mediate all this; use
>syscalls to tell the kernel to allocate out-of-process memory.
>
seems :) you very like the idea to give task of memory managment to
user-mode process, isn't it?
thanks,
Andrey
next prev parent reply other threads:[~2004-05-26 17:42 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-25 14:23 [Fwd: Re: EDE - Personal Suggestions and Ideas] Miguel Bolanos
2004-05-25 17:10 ` David Given
2004-05-26 6:20 ` AW: " Mario Premke
2004-05-26 10:09 ` David Given
2004-05-26 10:30 ` Gábor Lénárt
2004-05-26 11:43 ` AW: " Mario Premke
2004-05-26 11:57 ` Gábor Lénárt
2004-05-26 12:39 ` AW: " Mario Premke
2004-05-26 13:06 ` Gábor Lénárt
2004-05-26 14:17 ` David Given
2004-05-26 15:10 ` Gábor Lénárt
2004-05-26 16:00 ` Andrey Romanenko
2004-05-26 16:49 ` David Given
2004-05-26 17:19 ` Eduardo Pereira Habkost
2004-05-27 9:09 ` Gábor Lénárt
2004-05-26 17:42 ` Andrey Romanenko [this message]
2004-05-26 23:19 ` David Given
2004-05-27 6:07 ` EDE - Personal Suggestions and Ideas sandeep
2004-05-27 15:51 ` Eduardo Pereira Habkost
2004-05-28 8:09 ` sandeep
2004-05-28 8:10 ` Gábor Lénárt
2004-05-28 10:11 ` David Given
2004-05-28 11:23 ` Andrey Romanenko
2004-05-28 12:14 ` David Given
2004-05-29 5:28 ` Dan Olson
2004-05-28 10:30 ` sandeep
2004-05-26 22:34 ` AW: [Fwd: Re: EDE - Personal Suggestions and Ideas] Harry Kalogirou
2004-05-27 9:00 ` Gábor Lénárt
2004-05-27 6:04 ` Dan Olson
2004-05-27 7:14 ` Andrey Romanenko
2004-05-27 9:32 ` David Given
2004-05-27 10:19 ` Gábor Lénárt
2004-05-27 21:07 ` Tommy McCabe
2004-05-28 7:39 ` Gábor Lénárt
2004-06-01 13:46 ` Gabucino
2004-06-02 9:03 ` AW: [Fwd: Re: EDE - Personal Suggestions and Ideas][OT] Javier Sedano
2004-05-26 11:34 ` AW: AW: [Fwd: Re: EDE - Personal Suggestions and Ideas] Mario Premke
2004-05-26 12:09 ` Gábor Lénárt
2004-05-27 5:56 ` Dan Olson
2004-05-26 22:42 ` Harry Kalogirou
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=40B4D6F9.4070507@i.com.ua \
--to=bigral@i.com.ua \
--cc=linux-8086@vger.kernel.org \
/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