* Tiny patch: xen and vserver
@ 2005-02-22 16:12 "Kristian F. Høgh"
2005-02-22 21:08 ` Rik van Riel
0 siblings, 1 reply; 5+ messages in thread
From: "Kristian F. Høgh" @ 2005-02-22 16:12 UTC (permalink / raw)
To: xen-devel
Hi,
This patch makes it possible to run vservers in xen (i386).
There might be security, meltdown and KillAndEatMyDog problems.
It compiles (for me) and I can run vserver start ...
Description:
Add syscall 273: sys_vserver
Include vserver Kconfig
Regards,
Kristian.
Begin xen-vserver.patch
diff -NurpP --minimal arch/xen/i386/kernel/entry.S
arch/xen/i386/kernel/entry.S
--- arch/xen/i386/kernel/entry.S 2004-11-17 23:51:47.000000000 +0100
+++ arch/xen/i386/kernel/entry.S 2004-11-20 16:46:07.000000000 +0100
@@ -1004,7 +1004,7 @@ ENTRY(sys_call_table)
.long sys_tgkill /* 270 */
.long sys_utimes
.long sys_fadvise64_64
- .long sys_ni_syscall /* sys_vserver */
+ .long sys_vserver
.long sys_mbind
.long sys_get_mempolicy
.long sys_set_mempolicy
diff -NurpP --minimal arch/xen/Kconfig arch/xen/Kconfig
--- arch/xen/Kconfig 2004-11-17 23:51:41.000000000 +0100
+++ arch/xen/Kconfig 2004-11-20 16:43:24.000000000 +0100
@@ -159,6 +159,8 @@ source "arch/xen/Kconfig.drivers"
source "fs/Kconfig"
+source "kernel/vserver/Kconfig"
+
source "security/Kconfig"
source "crypto/Kconfig"
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Tiny patch: xen and vserver
2005-02-22 16:12 Tiny patch: xen and vserver "Kristian F. Høgh"
@ 2005-02-22 21:08 ` Rik van Riel
2005-02-24 1:40 ` Chris Wright
0 siblings, 1 reply; 5+ messages in thread
From: Rik van Riel @ 2005-02-22 21:08 UTC (permalink / raw)
To: "Kristian F. Høgh"; +Cc: xen-devel
[-- Attachment #1: Type: TEXT/PLAIN, Size: 594 bytes --]
On Tue, 22 Feb 2005, "Kristian F. Høgh" wrote:
> It compiles (for me) and I can run vserver start ...
> - .long sys_ni_syscall /* sys_vserver */
> + .long sys_vserver
But it only compiles for you because you have the vserver
patch applied. A system without the vserver patch would
not have a sys_vserver function in the kernel, so this
would go wrong.
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Tiny patch: xen and vserver
2005-02-22 21:08 ` Rik van Riel
@ 2005-02-24 1:40 ` Chris Wright
2005-02-24 12:35 ` Rik van Riel
0 siblings, 1 reply; 5+ messages in thread
From: Chris Wright @ 2005-02-24 1:40 UTC (permalink / raw)
To: Rik van Riel; +Cc: Kristian F. Høgh, xen-devel
* Rik van Riel (riel@redhat.com) wrote:
> On Tue, 22 Feb 2005, "Kristian F. Høgh" wrote:
>
> > It compiles (for me) and I can run vserver start ...
>
> > - .long sys_ni_syscall /* sys_vserver */
> > + .long sys_vserver
>
> But it only compiles for you because you have the vserver
> patch applied. A system without the vserver patch would
> not have a sys_vserver function in the kernel, so this
> would go wrong.
Hehe, it should be fine...maybe you forgot you committed that change to
mainline ;-))
D 1.69 03/10/01 06:53:17-07:00 riel@surriel.com[torvalds] 98 97 1/0/883
P arch/i386/kernel/entry.S
C syscall number for vserver
cheers,
-chris
-------------------------------------------------------
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_ide95&alloc_id\x14396&op=click
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Tiny patch: xen and vserver
2005-02-24 1:40 ` Chris Wright
@ 2005-02-24 12:35 ` Rik van Riel
2005-02-24 15:42 ` Chris Wright
0 siblings, 1 reply; 5+ messages in thread
From: Rik van Riel @ 2005-02-24 12:35 UTC (permalink / raw)
To: Chris Wright; +Cc: Kristian F. Høgh, xen-devel
On Wed, 23 Feb 2005, Chris Wright wrote:
> > > - .long sys_ni_syscall /* sys_vserver */
> > > + .long sys_vserver
> Hehe, it should be fine...maybe you forgot you committed that change to
> mainline ;-))
>
> D 1.69 03/10/01 06:53:17-07:00 riel@surriel.com[torvalds] 98 97 1/0/883
> P arch/i386/kernel/entry.S
> C syscall number for vserver
The line I added was the one with the - in front of it:
$ grep vserver arch/i386/kernel/entry.S
.long sys_ni_syscall /* sys_vserver */
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Tiny patch: xen and vserver
2005-02-24 12:35 ` Rik van Riel
@ 2005-02-24 15:42 ` Chris Wright
0 siblings, 0 replies; 5+ messages in thread
From: Chris Wright @ 2005-02-24 15:42 UTC (permalink / raw)
To: Rik van Riel; +Cc: Chris Wright, Kristian F. Høgh, xen-devel
* Rik van Riel (riel@redhat.com) wrote:
> The line I added was the one with the - in front of it:
>
> $ grep vserver arch/i386/kernel/entry.S
> .long sys_ni_syscall /* sys_vserver */
Sorry Rik, I completely misread your mail, thought it said the patch
wouldn't apply unless the vserver patch hadn't already been applied.
cheers,
-chris
--
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-02-24 15:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-22 16:12 Tiny patch: xen and vserver "Kristian F. Høgh"
2005-02-22 21:08 ` Rik van Riel
2005-02-24 1:40 ` Chris Wright
2005-02-24 12:35 ` Rik van Riel
2005-02-24 15:42 ` Chris Wright
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.