From: BlaisorBlade <blaisorblade_spam@yahoo.it>
To: Jeff Dike <jdike@addtoit.com>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] 2.6-specific UML patches (modules, modversions, various other stuff)
Date: Tue, 6 Jan 2004 19:20:59 +0100 [thread overview]
Message-ID: <200401061921.00054.blaisorblade_spam@yahoo.it> (raw)
Hi! I'm happy to hear again from you.
I don't remember if you answered when I posted this URL:
http://web.tiscali.it/no-redirect-tiscali/blaisorblade/
There you will find a number of patches for UML 2.6. Some are mine and some
come from Ingo and M A Young; I've included everything Ingo posted minus the
speedup - breakage for 2.4 host. That is, MM_COPY_SEGMENTS is still called by
UML but if the host is a 2.6 that is a no-op.
Only use the v8! In the Readme there is a careful description of each patch -
ask for more comments if you need.
They are tested enough (at least for building UML; the resulting patch should
work even on i386, and at least it compiles). Maybe you already have in your
tree some of the patches; they apply onto vanilla linux kernel. The -test9
patch has been split: the change for tty_init has been removed, and the
change to mm/memory.c has been replaced. You can find the two patches to move
out here, as A-03* and A-04*:
http://web.tiscali.it/no-redirect-tiscali/blaisorblade/linux/archives/UML/v6/A-Orig/
The replacements are in the B directory. About the A-04 patch, and this hunk
in particular(it goes to mm/memory.c):
@@ -700,19 +719,8 @@
vma = find_extend_vma(mm, start);
-#ifdef FIXADDR_USER_START
- if (!vma &&
- start >= FIXADDR_USER_START && start < FIXADDR_USER_END) {
- static struct vm_area_struct fixmap_vma = {
- /* Catch users - if there are any valid
- ones, we can make this be "&init_mm" or
- something. */
- .vm_mm = NULL,
- .vm_start = FIXADDR_USER_START,
- .vm_end = FIXADDR_USER_END,
- .vm_page_prot = PAGE_READONLY,
- .vm_flags = VM_READ | VM_EXEC,
- };
+#ifdef FIXADDR_START
+ if (!vma && start >= FIXADDR_START && start < FIXADDR_TOP) {
unsigned long pg = start & PAGE_MASK;
pgd_t *pgd;
pmd_t *pmd;
Did you have any reason for replacing FIXADDR_USER_START with FIXADDR_START?
I've looked in older patches and saw that FIXADDR_USER_START didn't exist, so
I thought that you simply didn't see the change happened in mainline; even
because I've maybe understood what code does, and there is no need to map
anything in a process's address space except for the VSYSCALL page. Am I
right?
I must admit that with my replacement for that patch, I've got one
non-repeatable segfault, in the early boot process. I've never had it any
more, so maybe it's elsewhere.
For the makefile patches, they haven't still been accepted by Kbuild
developers :-(. But everything is open (kbuild mail list is not that active,
actually...)
Bye
--
cat <<EOSIGN
Paolo Giarrusso, aka Blaisorblade
Linux Kernel 2.4.23/2.6.0 on an i686; Linux registered user n. 292729
EOSIGN
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&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
next reply other threads:[~2004-01-06 18:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-06 18:20 BlaisorBlade [this message]
2004-01-06 19:09 ` [uml-devel] Re: 2.6-specific UML patches (modules, modversions, various other stuff) Jeff Dike
2004-01-06 19:24 ` BlaisorBlade
2004-01-11 12:10 ` [uml-devel] " Ingo Molnar
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=200401061921.00054.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.