···11+/*22+ * vmm.c: vmm module interface with kvm module33+ *44+ * Copyright (c) 2007, Intel Corporation.55+ *66+ * Xiantao Zhang (xiantao.zhang@intel.com)77+ *88+ * This program is free software; you can redistribute it and/or modify it99+ * under the terms and conditions of the GNU General Public License,1010+ * version 2, as published by the Free Software Foundation.1111+ *1212+ * This program is distributed in the hope it will be useful, but WITHOUT1313+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or1414+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for1515+ * more details.1616+ *1717+ * You should have received a copy of the GNU General Public License along with1818+ * this program; if not, write to the Free Software Foundation, Inc., 59 Temple1919+ * Place - Suite 330, Boston, MA 02111-1307 USA.2020+ */2121+2222+2323+#include<linux/module.h>2424+#include<asm/fpswa.h>2525+2626+#include "vcpu.h"2727+2828+MODULE_AUTHOR("Intel");2929+MODULE_LICENSE("GPL");3030+3131+extern char kvm_ia64_ivt;3232+extern fpswa_interface_t *vmm_fpswa_interface;3333+3434+struct kvm_vmm_info vmm_info = {3535+ .module = THIS_MODULE,3636+ .vmm_entry = vmm_entry,3737+ .tramp_entry = vmm_trampoline,3838+ .vmm_ivt = (unsigned long)&kvm_ia64_ivt,3939+};4040+4141+static int __init kvm_vmm_init(void)4242+{4343+4444+ vmm_fpswa_interface = fpswa_interface;4545+4646+ /*Register vmm data to kvm side*/4747+ return kvm_init(&vmm_info, 1024, THIS_MODULE);4848+}4949+5050+static void __exit kvm_vmm_exit(void)5151+{5252+ kvm_exit();5353+ return ;5454+}5555+5656+void vmm_spin_lock(spinlock_t *lock)5757+{5858+ _vmm_raw_spin_lock(lock);5959+}6060+6161+void vmm_spin_unlock(spinlock_t *lock)6262+{6363+ _vmm_raw_spin_unlock(lock);6464+}6565+module_init(kvm_vmm_init)6666+module_exit(kvm_vmm_exit)