Displaying 3 results from an estimated 3 matches for "hypercall_stubs".
2007 Sep 24
4
testing hypercall from windows - what''s the most basic call I can make to test
I''m tinkering with some code to be able to talk to the hypervisor from
Windows, with the ultimate aim to get a usable xenbus.
So far I''ve created a driver for the Xen PCI ''device'', and (hopefully)
mapped the hypercall space given by the CPUID call...
What is the simplest hypercall I can make to get an answer from the
hypervisor to tell me that it''s
2013 Oct 28
5
FreeBSD PVH guest support
...IG_XEN_COMPAT	0x030002
 #define __must_check
 
-#ifdef XEN
 #define HYPERCALL_STR(name)					\
 	"call hypercall_page + ("STR(__HYPERVISOR_##name)" * 32)"
-#else
-#define HYPERCALL_STR(name)					\
-	"mov $("STR(__HYPERVISOR_##name)" * 32),%%eax; "\
-	"add hypercall_stubs(%%rip),%%rax; "			\
-	"call *%%rax"
-#endif
 
 #define _hypercall0(type, name)			\
 ({						\
diff --git a/sys/conf/files b/sys/conf/files
index f3e298c..6040447 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -2508,8 +2508,8 @@ dev/xe/if_xe_pccard.c		optional xe pccard
 dev/xen/...
2007 Nov 02
0
[PATCH] PVWin: Fix warnings
...xor ecx, ebx
-    xor edx, ebx
-    cpuid
-    mov edi, pResult
-    mov [edi.nEAX], eax
-    mov [edi.nEBX], ebx
-    mov [edi.nECX], ecx
-    mov [edi.nEDX], edx
-  }
-}
-
 static void WRMSR(unsigned int msr, ULONGLONG val)
 {
   ULONG lo, hi;
@@ -135,22 +112,22 @@ static int
 static int
 get_hypercall_stubs()
 {
-  CPUID_Output cpuid_output;
+  DWORD32 cpuid_output[4];
   char xensig[13];
   ULONG i;
   ULONG pages;
   ULONG msr;
-  CPUID(&cpuid_output, 0x40000000);
-  *(ULONG*)(xensig + 0) = cpuid_output.nEBX;
-  *(ULONG*)(xensig + 4) = cpuid_output.nECX;
-  *(ULONG*)(xensig + 8) = cpuid_output....