2 #include <xen/events.h>
11 #include <asm/xen/hypervisor.h>
12 #include <asm/xen/hypercall.h>
15 #include <linux/module.h>
43 unsigned long mfn,
int nr,
54 #define GRANT_TABLE_PHYSADDR 0
55 static int __init xen_guest_init(
void)
63 const char *xen_prefix =
"xen,xen-";
72 if (
strlen(xen_prefix) + 3 < len &&
74 version = s +
strlen(xen_prefix);
75 if (version ==
NULL) {
83 pr_info(
"Xen %s support found, events_irq=%d gnttab_frame_pfn=%lx\n",
93 if (!shared_info_page)
96 if (!shared_info_page) {
97 pr_err(
"not enough memory\n");
107 HYPERVISOR_shared_info = (
struct shared_info *)shared_info_page;
133 static int __init xen_init_events(
void)
141 "events", xen_vcpu)) {
142 pr_err(
"Error requesting IRQ %d\n", xen_events_irq);