From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Kelly Subject: Setting up hypervisor_callback and testing Date: Wed, 15 Feb 2006 11:49:05 +0000 Message-ID: <20060215114903.GA3745@ivankelly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org im setting up my hypervisor callback with: hypervisor_set_callbacks(CS_SELECTOR, (unsigned long)hypervisor_callback, CS_SELECTOR, (unsigned long)failsafe_callback); hypervisor_callback and failsafe_callback are as yet very simple assembly funcations that just shutdown the domain. _hypervisor_callback: call _hypervisor_shutdown ret _failsafe_callback: call _hypervisor_shutdown ret Im trying to test it with: _xen_cb_test: call _hypervisor_save_kernel_stack mov esi, _hypervisor_shared_info mov 1(esi), 0 push 0 push __HYPERVISOR_xen_version call _xen_op add esp, 4*2 ret The callback doesn't seem to be getting called at all. At the moment im only trying to get very basic callback stuff working, so i've left out the save and iret stuff. Could anyone point out where im going wrong? Regards Ivan Kelly