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] testing hypercall from windows - what's the mostbasic ca

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] testing hypercall from windows - what's the mostbasic call I can make to test
From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
Date: Tue, 25 Sep 2007 23:00:16 +1000
Delivery-date: Tue, 25 Sep 2007 06:01:12 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D01249874@trantor>
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>
References: <AEC6C66638C05B468B556EA548C1A77D0124982F@trantor><C31D895D.15E71%Keir.Fraser@xxxxxxxxxxxx> <AEC6C66638C05B468B556EA548C1A77D01249874@trantor>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acf+rpm9QXpClAmUQGKlPQ11YJlmywACVHy5ACoJVuAABOx+0A==
Thread-topic: [Xen-devel] testing hypercall from windows - what's the mostbasic call I can make to test
I think I found the problem... the parameters are 0 based, so I need to
change:

> HYPERVISOR_xen_version(int cmd, void *arg)
> {
>   long __res;
>   __asm {
>     push ebp
>     mov ebp, esp
>     sub esp, 8
      ^^^^^^^^^^ this to 'sub esp, 12'
>     mov eax, cmd
>     mov [ebp - 8], eax
>     mov eax, arg
>     mov [ebp - 4], eax
>     call hypercall_stubs + (__HYPERVISOR_xen_version * 32)
>     add esp, 8
      ^^^^^^^^^^ and this to 'add esp, 12'
>     pop ebp
>     mov [__res], eax
>   }
>   return __res;
> }
> "

Which now doesn't crash... I hope that's a good sign!

James

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