From: Jeff Dike <jdike@addtoit.com>
To: BlaisorBlade <blaisorblade_spam@yahoo.it>
Cc: Ingo Molnar <mingo@elte.hu>, user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] Re: And the BUG of skas-2.6 with SMP active?
Date: Sat, 28 Feb 2004 17:28:42 -0500 [thread overview]
Message-ID: <20040228222842.GA7716@ccure.user-mode-linux.org> (raw)
In-Reply-To: <200402282136.31552.blaisorblade_spam@yahoo.it>
On Sat, Feb 28, 2004 at 09:36:31PM +0100, BlaisorBlade wrote:
> Ok, good diagnosys. So *in this* case activate_mm must be called somewhere.
> But not in sys_ptrace, because that runs in process context, and would
> activate the mm for "current", which cannot be the child.
Yup, right.
> Also, if the temporary HIGHMEM mappings created by kmap are stored in
> current->active_mm, then we cannot even change the kernel thread active_mm
> (it would also be difficult anyway, since you need to suspend it).
No one is proposing that.
> So, since I guess that CONFIG_SMP=n means the cpu_tlbstate does not exist, I
> would propose this change in include/asm-i386/mmu_context.h:switch_mm() (and
> removing the BUG_ON line since that could not any more be triggered):
>
> int cpu = smp_processor_id();
> +#ifdef CONFIG_SMP
> + prev = cpu_tlbstate[cpu].active_mm;
> +#endif
> if (likely(prev != next)) {
That looks reasonable with a quick look at the code. You're forcing it into
the address-space-changed case, which is right.
Jeff
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&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-02-28 22:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200402281541.05497.blaisorblade_spam@yahoo.it>
[not found] ` <20040228171309.GA7043@ccure.user-mode-linux.org>
2004-02-28 20:36 ` [uml-devel] Re: And the BUG of skas-2.6 with SMP active? BlaisorBlade
2004-02-28 22:28 ` 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=20040228222842.GA7716@ccure.user-mode-linux.org \
--to=jdike@addtoit.com \
--cc=blaisorblade_spam@yahoo.it \
--cc=mingo@elte.hu \
--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