[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-devel] testing hypercall from windows - what's the mostbasic call I can make to test


  • To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • 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
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.