From: Blaisorblade <blaisorblade@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: Bodo Stroesser <bstroesser@fujitsu-siemens.com>,
Jeff Dike <jdike@addtoit.com>
Subject: Re: [uml-devel] UML-patches to prepare UML/s390
Date: Fri, 8 Apr 2005 03:22:45 +0200 [thread overview]
Message-ID: <200504080322.50532.blaisorblade@yahoo.it> (raw)
In-Reply-To: <4253E3D6.2000809@fujitsu-siemens.com>
On Wednesday 06 April 2005 15:27, Bodo Stroesser wrote:
> Here are the patches (tarball attached), that I've applied to
> UML 2.6.11 + incrementals, before adding s390-files.
> These patches are tested a bit on x86, but not on x86_64.
>
> s390 implementation is *not* included in tarball, this will
> be posted later, when thing are more stable.
>
> Please see patches and commented series-file for further
> information.
add-stub-vmas has already your notes in it, and I agree with the notes.
delay-pure-arch: forgot EXPORT_SYMBOL on x86_64, also if every arch will
provide them leave the EXPORT inside arch-independent ksyms.c. Also I don't
like a function copied over subarchs. Move them to generic code with an ifdef
ARCH_WANT_WHATEVER.
Copied code *always* gets out of sync (and that's not only in UML, I found by
accident a case where ext2 was updated and ext3 wasn't and didn't use
i_size_read, leading to possible race conditions). Btw, that's why Andi Kleen
delayed a lot the merge of Xen, refusing that it be a separate arch/xen
folder.
elf.h-symlink.patch: other includes also have a -generic.h file, like
processor-generic.h, for common stuff.
insert-ARCH_SIGHDLR_PARAM.patch: this coding is very awkward (not mentioned in
CodingStyle because they didn't think to it) - I don't know the handle's use.
However, some commenting will be needed, as this is *not* a widespread
construct. You'll also tell me how you'll handle the different params if the
code stays the same...
I'd instead use a "do_alarm_handler" that takes everything as a param and an
arch-specific caller passing the params, in general... but I don't really
realize what will you do there. I fear a hidden param in
ARCH_GET_SIGCONTEXT...
ptrace-subarch: forgot the "#if 0" for x86_64, possibly preventing it from
compiling. Actually, from looking to /usr/include/sys/user.h, it will compile
but be bogus. Keep the XXX comment but change the "addr >>= 2" to "addr >>=
3" (because the various debug regs are each 8 and not 4 bytes long). I'll
have to additionally check the manuals, however, this is why I ask to keep
the comment.
rename-COMMAND_LINE_SIZE.patch: it's against an outdated part of Jeff's tree
(i.e. code movements). I patched it in a different way in mainline - I thinl
that code-movements patches should be merged the day they are written, or one
day they are written. I.e. they must be rewritten when merging them, to avoid
moving outdated code.
split-sys_call_table.patch: the current way of maintaining it has lead to too
many problems, so I'm converting the code to a different way, i.e. including
directly the original syscall table (with some defines, for instance
#define sys_iopl sys_ni_syscall
).
I didn't send them because I need that Jeff tests the x86_64 ones.
In i386 case, I split away the table from entry.S. In the s390 case, they
already did this for theirselves and for us. You'll have to check if any
function has been renamed in a strange way. I'll maybe do the check myself...
Also, the below is just bogus,
-#ifdef CONFIG_NFSD
+#if defined(CONFIG_NFSD) || defined(CONFIG_NFSD_MODULE)
#define NFSSERVCTL sys_nfsservctl
#else
#define NFSSERVCTL sys_ni_syscall
#endif
because the correct code is this:
#define NFSSERVCTL sys_nfsservctl
kernel/sys_ni.c will alias sys_nfsservctl (and *MANY* other syscalls) to
sys_ni_syscall if needed, through weak symbols.
--
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&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 prev parent reply other threads:[~2005-04-08 1:16 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-06 13:27 [uml-devel] UML-patches to prepare UML/s390 Bodo Stroesser
2005-04-06 20:35 ` [uml-devel] " Jeff Dike
2005-04-06 18:57 ` Bodo Stroesser
2005-04-06 19:17 ` Blaisorblade
2005-04-06 19:26 ` Bodo Stroesser
2005-04-06 19:50 ` Blaisorblade
2005-04-07 9:54 ` Bodo Stroesser
2005-04-06 18:59 ` Bodo Stroesser
2005-04-06 19:16 ` Bastian Blank
2005-04-06 19:28 ` Blaisorblade
2005-04-06 19:33 ` Bodo Stroesser
2005-04-06 20:02 ` Bastian Blank
2005-04-06 20:10 ` Blaisorblade
2005-04-07 9:39 ` Bodo Stroesser
2005-04-07 15:57 ` Bodo Stroesser
2005-04-08 1:22 ` Blaisorblade [this message]
[not found] ` <42562EC4.7040903@fujitsu-siemens.com>
2005-04-17 17:37 ` [uml-devel] " Blaisorblade
2005-04-18 10:54 ` Bodo Stroesser
2005-04-19 16:45 ` Blaisorblade
2005-04-26 11:31 ` Bodo Stroesser
2005-04-29 20:50 ` Blaisorblade
2005-04-22 1:32 ` [uml-devel] " Jeff Dike
2005-04-24 14:44 ` Blaisorblade
2005-04-24 16:51 ` Jeff Dike
2005-04-24 18:44 ` Blaisorblade
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=200504080322.50532.blaisorblade@yahoo.it \
--to=blaisorblade@yahoo.it \
--cc=bstroesser@fujitsu-siemens.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox