From: Jeff Dike <jdike@addtoit.com>
To: Pete Zaitcev <zaitcev@redhat.com>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Timer patch for 2.6
Date: Thu, 1 Apr 2004 23:01:24 -0500 [thread overview]
Message-ID: <20040402040124.GB5559@ccure.user-mode-linux.org> (raw)
In-Reply-To: <20040401181616.26d1fcb7.zaitcev@redhat.com>
On Thu, Apr 01, 2004 at 06:16:16PM -0800, Pete Zaitcev wrote:
> I was unable to verify that it actually works in UML. My UML seems to
> be hosed by a recent Fedora update, known good setups fail to work, too.
> So, I am posting this mainly for review. I am terribly confused by
> the way timers work in UML. In particular, it appears that every
> process has to set up a timer.
In tt mode, each UML process gets a host process, the kernel is mapped
into each process, and it runs in each process. That means that the
kernel switches host processes every time there's a context switch.
So, every process needs its own timer.
For this, what needs to happen is that, on every context switch, the
timer has to be reset to fire at the appropriate time. The switch
will happen some time in the middle of the interval, so the remaining
time needs to be calculated, and the timer for the new process set
accordingly. The timer of the outgoing process can just be disabled.
Things are somewhat more sane in skas mode. There are two processes -
kernel and user, and both need a timer. However, there's a
complication. The kernel process needs to be able to manipulate the
user process' timer, which would appear to call for another ptrace op
or something.
I haven't taken a good look at the patch yet.
Thanks for doing this...
Jeff
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
prev parent reply other threads:[~2004-04-02 3:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-02 2:16 [uml-devel] Timer patch for 2.6 Pete Zaitcev
2004-04-02 4:01 ` Jeff Dike [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=20040402040124.GB5559@ccure.user-mode-linux.org \
--to=jdike@addtoit.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
--cc=zaitcev@redhat.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