From: Rolf Neugebauer Subject: Re: How does hypervisor handle the hypercalls from guest OSes? Date: Mon, 10 May 2004 15:22:28 +0100 Sender: xen-devel-admin@lists.sourceforge.net Message-ID: <1084198948.4777.12.camel@wyvis> References: <001f01c43696$7f6d2470$367519a3@linuxnxhc0axvc> Reply-To: rolf.neugebauer@intel.com Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <001f01c43696$7f6d2470$367519a3@linuxnxhc0axvc> Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: "K.C. Chiu" Cc: rolf.neugebauer@intel.com, xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org 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