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] How does hypervisor handle the hypercalls fromguest OSes

Thanks for your help !!

I would try to handle my new hypercall !

But I have another question, how do I debug in the Xen hypervisor side?

Just "printk" ?

However I could not find out any print message in /var/log/message and the
xen_read_console ?

Cheers

-- C.K. Chiu , Taiwan

----- Original Message ----- 
From: "Rolf Neugebauer" <rolf.neugebauer@xxxxxxxxx>
To: "K.C. Chiu" <B8844014@xxxxxxxxxxxxxxxxx>
Cc: <rolf.neugebauer@xxxxxxxxx>; <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, May 10, 2004 10:22 PM
Subject: Re: [Xen-devel] How does hypervisor handle the hypercalls fromguest
OSes?


> for a new hypercall here are the files you need to change:
>
> 1. define a hypercall number + params in
> xen/include/hypervisor-ifs/hypervisor-if.h or similar
>
> 2. add an entry corresponding to the hypercall number in the
> hypervisor_call_table in xen/arch/i386/entry.S
>
> 3. implement the hypercall in xen (function as in entry.S)
>
> 4. provide an assempbly stub in XenoLinux for your hypercall like in:
> xenolinux-2.4.26-sparse/include/asm-xen/hypervisor.h
>
> then you can use the function name you use in hypervisor.h in XenoLinux.
>
> alternatively you piggy-back your hypercall onto an existing one, if it
> matches the function of that hypercall. quite a few hypercalls already
> multiplex multiple related functions onto on hypercall.
>
> Rolf
>
> On Mon, 2004-05-10 at 14:55, K.C. Chiu wrote:
> > Hi All !!
> >
> > I'm trying to encapsulate some operations into "hypercall" and pass
> > the hypercall into hypervisor.
> >
> > But I cannot find out how the hypervisor to deal with hypercalls
> > from guest OSes.
> >
> > I find a function "do_dom0_op" in xeno-1.2.bk/xen/common/dom0_ops.c.
> >
> > It looks like the function which would deal with hypercalls .
> >
> > and I try to modify the code in do_dom0_op to handle my new hypercall,
> > but I failed.
> >
> > can someone tell me how does hypervisor handle the hypercalls from
> > guest OSes?
> >
> > Cheers
> >
> > -- C.K. Chiu ,
> > Taiwan
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by Sleepycat Software
> Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver
> higher performing products faster, at low TCO.
> http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/xen-devel




-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel