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

[Xen-devel] Setting up hypervisor_callback and testing

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Setting up hypervisor_callback and testing
From: Ivan Kelly <ivan@xxxxxxxxxxxxx>
Date: Wed, 15 Feb 2006 11:49:05 +0000
Delivery-date: Wed, 15 Feb 2006 12:01:19 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Mail-followup-to: Ivan Kelly <ivan@xxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11
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.
<SNIP>
_hypervisor_callback:
        call    _hypervisor_shutdown
        ret

_failsafe_callback:
        call    _hypervisor_shutdown
        ret
</SNIP>

Im trying to test it with:
<SNIP>
_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
</SNIP>

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


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

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