WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] use hypercall in Dom0's kernel

To: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] use hypercall in Dom0's kernel
From: David Xu <davidxu06@xxxxxxxxx>
Date: Fri, 30 Sep 2011 05:35:05 -0900
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 30 Sep 2011 07:37:14 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=gJbWUuvnqc3pTy7Uzv2BtoO99Yol2hEEa0KIC8sYCnc=; b=mKIZihxd67owb41KjEWivbeai3yw4shXVtd4TBHUcLADlPg0O51WVUBaWqn0FOy7uE AxuKtP+GOh6okUAmVNACG6ioeBXGRFHdsuwofWP706KyHKD0DBCBoZqQaPWsvsYIlACK eP6f4/RZFoQ6pe2t4VgTlqYWcdpaBpPrvdy/k=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1317392546.26672.287.camel@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <CAGjowiSLv2Wa9KgfVBmi9yZ5OBPvbX9NYb+3BaDg=iVbty-kuA@xxxxxxxxxxxxxx> <1317368165.26672.200.camel@xxxxxxxxxxxxxxxxxxxxxx> <CAGjowiSbzeBDRAJOM0dKiq4K76jEaKYhVwn2wTysUSa4PHpDDA@xxxxxxxxxxxxxx> <1317392546.26672.287.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
2011/9/30 Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>:
> Please don't top post and always CC the list. I've put xen-devel back
> this time.

Sorry for that. I cc the list this time. :)

> On Fri, 2011-09-30 at 15:14 +0100, David Xu wrote:
>> Hi,
>>
>> I modify the bridge module of Dom0 and sniff the packets which go
>> through Dom0. I want to notify the hypervisor if some special packets
>> come. So I want to call some interface function which are defined in
>> libxc (libxenctrl). But if I include the xenctrl.h or some related
>> head file in the br.c or br_input.c which are parts of bridge module
>> codes, I will encounter the compiling error (can not find the head
>> file).
>
> Of course you cannot link userspace code into the kernel.
>
> If you need access to hypercalls then you have them available in the
> kernel in raw form in the kernel.
>

So how can I call hypercall in raw form? I am not familiar with that.
I changed the xen scheduler and add some other parameters and
interface to xen credit scheduler. I want to switch the scheduling
policy for some specific scenario. Currently I modified the libxc and
xm command, so I can use xm command to change the parameters of
scheduler and switch the policy. But I want to make it on demand, so I
need communicate with scheduler in the Dom0 kernel module which sniffs
and analyzes the packets.

Thanks.

Regards,
Cong

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>