Re: [uml-devel] [RFC] PATCH 3/4 - Time virtualization : PTRACE_SYSCALL_MASK

2006-04-29 Thread Heiko Carstens
> Ok, this gives us a definite proposal, which I finally like:
> 
> * to exclude sys_tee:
> 
> bitmask = 0;
> set_bit(__NR_tee, bitmask);
> ptrace(PTRACE_SET_NOTRACE, bitmask);
> 
> * to trace only sys_tee:
> 
> bitmask = 0;
> set_bit(__NR_tee, bitmask);
> ptrace(PTRACE_SET_TRACEONLY, bitmask);
> 
> Semantics:
> 
> in both cases, the mask is first zero-extended to the right (for syscalls not 
> known to userspace), bits for syscall not known to the kernel are checked and 
> the call fails if any of them is 1, and in the failure case E2BIG or 
> EOVERFLOW is returned (I want to avoid EINVAL and ENOSYS to avoid confusion) 
> and the part of the mask known to the kernel is 0-ed.
> 
> In case of success, for NOTRACE (which was DEFAULT_TRACE) the mask is 
> reversed 
> before copying in the kernel syscall mask, for TRACEONLY it's copied there 
> directly.

IMHO this is way too complicated. Introducing a ptrace call that returns
the number of syscalls and forcing user space to pass a complete bitmask
is much easier. Also the semantics are much easier to understand.

In addition your proposal would already introduce a rather complicated
interface to figure out how many syscalls the kernel has. I'm sure this
will be (mis)used sooner or later.


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


Re: [uml-devel] Re: [PATCH 0/6] UML - Small patches for 2.6.17

2006-04-29 Thread Blaisorblade
On Saturday 29 April 2006 01:55, Andrew Morton wrote:
> Jeff Dike <[EMAIL PROTECTED]> wrote:
> > These patches are 2.6.17 material.
>
> "remove NULL checks and add some CodingStyle" isn't.

Being restrictive is ok, but keeping patches in queues for longer than needed 
creates more headaches than it solves, in my experience.

> Unless one considers 
> UML coding style to be a bug, which is an attractive idea ;)

Well, we're slowly working on that... very slowly... I've thought multiple 
times to at least run Lindent on arch/um but I've not spoken up because of 
all the conflicts we (me and Jeff) would get with patches in our queues.

However, there are occasions in which we get conflicts anyway for other 
reorganization, and in that case Lindent would be useful. Ok Jeff? I'm 
speaking for instance about moving to os-Linux and such.
-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade





___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it



---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


Re: [uml-devel] Re: [PATCH 0/6] UML - Small patches for 2.6.17

2006-04-29 Thread Andrew Morton
Blaisorblade <[EMAIL PROTECTED]> wrote:
>
> > Unless one considers 
>  > UML coding style to be a bug, which is an attractive idea ;)
> 
>  Well, we're slowly working on that... very slowly... I've thought multiple 
>  times to at least run Lindent on arch/um but I've not spoken up because of 
>  all the conflicts we (me and Jeff) would get with patches in our queues.

Lindent doesn't do a terribly good job, and one ends up having to perform a
lot of manual fixups.  Perhaps as many as are presently needed.



---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


[uml-devel] helping toward UML 1.0 (??)

2006-04-29 Thread Mattia Dongili
Hello Jeff, Paolo,

Sorry for the long mail, I hope it's not too boring ;)

I re-packaged (together with Stefano Melchior and Andreas Schuldei) the
user-mode-linux kernel[1] and uml-utilities[2] and I'd like to help with
the issues listed on u-m-l.sf.net pages related to Debian.
Firts of all: are all those issues still outstanding?

Hmmm... they seem to be there since a long long time.
Anyway here's some comments:

===
My attempts to run the Debian install procedure hung UML...
===
It's working now, I'm installing from debian etch beta2 netinst[0].
Procedure: extract the initrd.gz from the iso image downloaded at [0] (I
tested the 2.6 flavour in /cdrom/install/2.6/) and run UML with

linux ramdisk_size=12000 mem=128M umid=debian initrd=initrd.gz \
  root=/dev/ram0 ubd0=my_rootfs ubd1=debian-testing-i386-netinst.iso \
  eth0=tuntap,,,172.20.0.1

I'm using uxterm to run this as the installer interface relies on UTF8
chars to draw correctly.

BTW: current Debian user-mode-linux package unfortunately is missing
some important config options to run an initrd, I'm planning to upload a
new revision very soon to fix that.

==
Packaging debs
==
You can find most of the info on the page at [1]. We are currenlty
carrying a few patches[3] to comply to the FHS and Debian policy,
namely:
  * 02_fix_install_directories (uml-utilities)[4]:
1- don't use lib64 in Debian, we have a symlink lib->lib64 (I'm no
   multiarch expert but I'd say debian implements it differently from
   FHS)
2- install uml_net into /usr/lib/uml to comply FHS 4.7.1
   somewhat discussed with a proposed patch to add /usr/lib/uml the
   the $PATH which we're already building binaries with.
3- install tunctl in /usr/sbin as it's a root-only executable
  
  * 01_uml_net (uml kernel)[5]:
see point 2 above, the same patch has been posted here and currently
is in Paolo's tree (thanks!)

  * 02_x-terminal-emulator (uml kernel)[6]:
1- run the x-terminal-emulator link instead of plain xterm to
   respect user configured default x-terminal.
   This is a debian only patch.


Manpages

We have a manpage (linux (1)) that is some kind of big blob of
historical and current uml command line options more or less derived
from linux --help and the u-m-l website.
Ever seen it? [7] or [8] as plain text


Docs

We are also carrying the user-mode-linux-doc package which is
essentially the u-m-l website. It needs updating (last update iwas
05.23.2002) but I was wondering if it makes some sense to still keep
them as I also read there's some wiki effort in place to replace the
website.


[0]: http://www.debian.org/devel/debian-installer/
[1]: http://packages.qa.debian.org/u/user-mode-linux.html
[2]: http://packages.qa.debian.org/u/uml-utilities.html
[3]: http://svn.debian.org/wsvn/pkg-uml/trunk/src/?rev=0&sc=0
[4]: 
http://svn.debian.org/wsvn/pkg-uml/trunk/src/uml-utilities/debian/patches/02_fix_install_directories.dpatch?op=file&rev=0&sc=0
[5]: 
http://svn.debian.org/wsvn/pkg-uml/trunk/src/user-mode-linux/debian/patches/01_uml_net.dpatch?op=file&rev=0&sc=0
[6]: 
http://svn.debian.org/wsvn/pkg-uml/trunk/src/user-mode-linux/debian/patches/02_x-terminal-emulator.dpatch?op=file&rev=0&sc=0
[7]: 
http://svn.debian.org/wsvn/pkg-uml/trunk/src/user-mode-linux/linux.sgml?op=file&rev=0&sc=0
[8]: http://people.debian.org/~malattia/docs/linux.1.txt

bye
-- 
mattia
:wq!


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


Re: [uml-devel] helping toward UML 1.0 (??)

2006-04-29 Thread Jeff Dike
On Sat, Apr 29, 2006 at 08:55:45PM +0200, Mattia Dongili wrote:
> I re-packaged (together with Stefano Melchior and Andreas Schuldei) the
> user-mode-linux kernel[1] and uml-utilities[2] and I'd like to help with
> the issues listed on u-m-l.sf.net pages related to Debian.
> Firts of all: are all those issues still outstanding?

I doubt it - that list is years old.  I would worry about stuff that's been
reported recently.

Jeff


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel