All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Valentan <R.Valentan@solid-soft.at>
To: Mike Wray <mike.wray@hpl.hp.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH] vnet-module
Date: Fri, 31 Mar 2006 17:05:44 +0200	[thread overview]
Message-ID: <442D4548.5020602@solid-soft.at> (raw)
In-Reply-To: <442D400C.4030803@hpl.hp.com>

Mike Wray schrieb:
> Robert Valentan wrote:
> 
>> patch_vnet_1
>>   Replacing the socketcall with direct calling the needed
>>   functions (my patch from 28.3)
> 
> 
> I don't like the idea of pasting all this code copied from elsewhere in
> the kernel.
> If the problem is that __ARCH_WANT_SYS_SOCKETCALL is not defined, so
> there is no socketcall, then a better solution needs to be found.

x86_64 definies __ARCH_WANT_SYS_SOCKETCALL, but has no entry-point for
it. A better solution will be an export of the needed functions in
net/socket.c ...  But where to get it ?

> In the worst case a copy of the relevant bits of socket.c defining 
> socketcall
> in a separate file with an #ifndef __ARCH_WANT_SYS_SOCKETCALL round it.

I havn't take a separate file, because my solution will also work for
the other systems. If you want a separate file, i will modify my patch,
but we need a permanent include, or need to use "__NR_socketcall"..

>> patch_vnet_2
>>   Modify the module-parameter for kernel 2.6.* (the old one
>>   will not compile with the actual kernel 2.6.16)
>>   Exporting the default-values of the parameters in /sys/module
>>
>> patch_vnet_3
>>   Some "extentions" to error-messages to identify the position
>>   in the code.
>>   I had searched a bug, but it was a wrong vnet-id ;-/
>>   A hint for docu: using "123459" as vnet-id has not 4 digits
>>   and will be punished with errors  ;-)
> 
> The changes to the print functions are not needed - the debug macros
> in the code already include the function name. All you need to do
> is #define DEBUG 1. Check libxutil/debug.h. for the definitions.

Ohh..  thank you for the hint ;-/

-- 
wbr
Robert Valentan

  reply	other threads:[~2006-03-31 15:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-31 13:56 [PATCH] vnet-module Robert Valentan
2006-03-31 14:43 ` Mike Wray
2006-03-31 15:05   ` Robert Valentan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-06-06 18:18 [Patch] vnet-module Robert Valentan

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=442D4548.5020602@solid-soft.at \
    --to=r.valentan@solid-soft.at \
    --cc=mike.wray@hpl.hp.com \
    --cc=xen-devel@lists.xensource.com \
    /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.