Displaying 4 results from an estimated 4 matches for "start_hyper_text".
2007 Apr 18
0
[PATCH] lguest: Compile hypervisor.S into the lg module directly
...Thu Mar 22 11:44:17 2007 +1100
@@ -19,17 +19,21 @@
#include <asm/i387.h>
#include "lg.h"
-/* This is our hypervisor, compiled from hypervisor.S. */
-static char __initdata hypervisor_blob[] = {
-#include "hypervisor-blob.c"
-};
+/* Found in hypervisor.S */
+extern char start_hyper_text[], end_hyper_text[], switch_to_guest[];
+extern unsigned long default_idt_entries[];
/* Every guest maps the core hypervisor blob. */
-#define SHARED_HYPERVISOR_PAGES DIV_ROUND_UP(sizeof(hypervisor_blob),PAGE_SIZE)
+#define SHARED_HYPERVISOR_PAGES \
+ DIV_ROUND_UP(end_hyper_text - start_hyper_te...
2007 Apr 18
0
[PATCH] lguest: Compile hypervisor.S into the lg module directly
...Thu Mar 22 11:44:17 2007 +1100
@@ -19,17 +19,21 @@
#include <asm/i387.h>
#include "lg.h"
-/* This is our hypervisor, compiled from hypervisor.S. */
-static char __initdata hypervisor_blob[] = {
-#include "hypervisor-blob.c"
-};
+/* Found in hypervisor.S */
+extern char start_hyper_text[], end_hyper_text[], switch_to_guest[];
+extern unsigned long default_idt_entries[];
/* Every guest maps the core hypervisor blob. */
-#define SHARED_HYPERVISOR_PAGES DIV_ROUND_UP(sizeof(hypervisor_blob),PAGE_SIZE)
+#define SHARED_HYPERVISOR_PAGES \
+ DIV_ROUND_UP(end_hyper_text - start_hyper_te...
2007 Apr 18
1
[RFC/PATCH LGUEST X86_64 03/13] lguest64 core
.../* hypercall! */
+ continue;
+
+ case 32 ... 255:
+ cond_resched();
+ break;
+ default:
+ kill_guest_dump(vcpu, "bad trapnum %lld\n", regs->trapnum);
+ lguest_dump_vcpu_regs(vcpu);
+ return -EINVAL;
+ }
+ }
+ return -ENOENT;
+}
+
+extern long end_hyper_text;
+extern long start_hyper_text;
+
+static int __init init(void)
+{
+ unsigned long pages;
+ unsigned long hvaddr;
+#if 0
+ unsigned long lg_hcall = (unsigned long)HV_OFFSET(&hcall_teste);
+ unsigned long *lg_host_syscall =
+ (unsigned long *)HV_OFFSET(&host_syscall);
+#endif
+ int order;
+ int ret;
+
+ int i;
+ printk...
2007 Apr 18
1
[RFC/PATCH LGUEST X86_64 03/13] lguest64 core
.../* hypercall! */
+ continue;
+
+ case 32 ... 255:
+ cond_resched();
+ break;
+ default:
+ kill_guest_dump(vcpu, "bad trapnum %lld\n", regs->trapnum);
+ lguest_dump_vcpu_regs(vcpu);
+ return -EINVAL;
+ }
+ }
+ return -ENOENT;
+}
+
+extern long end_hyper_text;
+extern long start_hyper_text;
+
+static int __init init(void)
+{
+ unsigned long pages;
+ unsigned long hvaddr;
+#if 0
+ unsigned long lg_hcall = (unsigned long)HV_OFFSET(&hcall_teste);
+ unsigned long *lg_host_syscall =
+ (unsigned long *)HV_OFFSET(&host_syscall);
+#endif
+ int order;
+ int ret;
+
+ int i;
+ printk...