Re: Kernel support for peer-to-peer protection models...

From: Davide Libenzi
Date: Sun Mar 28 2004 - 22:49:19 EST


On Sun, 28 Mar 2004, Ivan Godard wrote:

> ----- Original Message -----
> From: "Paul Mackerras" <paulus@xxxxxxxxx>
> To: "Ivan Godard" <igodard@xxxxxxxxxxx>
> Cc: "Linux Kernel Mailing List" <linux-kernel@xxxxxxxxxxxxxxx>
> Sent: Sunday, March 28, 2004 4:17 PM
> Subject: Re: Kernel support for peer-to-peer protection models...
>
>
> > Ivan Godard writes:
> >
> > > 3) flat, unified virtual addresses (64 bit) so that pointers, including
> > > inter-space pointers, have the same representation in all spaces
> >
> > How are you going to implement fork() ?
>
> The usual COW using the page tables. The child keeps the same code space but
> gets a new data space. I expect that specialized versions of fork will give
> explicit control over which space the child gets, but in comman usage no one
> cases just as no one cares which PID it gets.

Uh?

int myexec(char const *cmd) {

if (!fork()) {
exit(exec(cmd));
}
...
}



- Davide


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/