mips.c (a578a0a9e3526483ad1904fac019d95e7089fb34) mips.c (81a1cf9f89a6b71e71bfd7d43837ce9235e70b38)
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * KVM/MIPS: MIPS specific KVM APIs
7 *
8 * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved.

--- 121 unchanged lines hidden (view full) ---

130 return kvm_mips_callbacks->hardware_enable();
131}
132
133void kvm_arch_hardware_disable(void)
134{
135 kvm_mips_callbacks->hardware_disable();
136}
137
1/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * KVM/MIPS: MIPS specific KVM APIs
7 *
8 * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved.

--- 121 unchanged lines hidden (view full) ---

130 return kvm_mips_callbacks->hardware_enable();
131}
132
133void kvm_arch_hardware_disable(void)
134{
135 kvm_mips_callbacks->hardware_disable();
136}
137
138int kvm_arch_check_processor_compat(void *opaque)
139{
140 return 0;
141}
142
143extern void kvm_init_loongson_ipi(struct kvm *kvm);
144
145int kvm_arch_init_vm(struct kvm *kvm, unsigned long type)
146{
147 switch (type) {
148 case KVM_VM_MIPS_AUTO:
149 break;
150 case KVM_VM_MIPS_VZ:

--- 1480 unchanged lines hidden (view full) ---

1631 return ret;
1632
1633
1634 if (boot_cpu_type() == CPU_LOONGSON64)
1635 kvm_priority_to_irq = kvm_loongson3_priority_to_irq;
1636
1637 register_die_notifier(&kvm_mips_csr_die_notifier);
1638
138extern void kvm_init_loongson_ipi(struct kvm *kvm);
139
140int kvm_arch_init_vm(struct kvm *kvm, unsigned long type)
141{
142 switch (type) {
143 case KVM_VM_MIPS_AUTO:
144 break;
145 case KVM_VM_MIPS_VZ:

--- 1480 unchanged lines hidden (view full) ---

1626 return ret;
1627
1628
1629 if (boot_cpu_type() == CPU_LOONGSON64)
1630 kvm_priority_to_irq = kvm_loongson3_priority_to_irq;
1631
1632 register_die_notifier(&kvm_mips_csr_die_notifier);
1633
1639 ret = kvm_init(NULL, sizeof(struct kvm_vcpu), 0, THIS_MODULE);
1634 ret = kvm_init(sizeof(struct kvm_vcpu), 0, THIS_MODULE);
1640 if (ret) {
1641 unregister_die_notifier(&kvm_mips_csr_die_notifier);
1642 return ret;
1643 }
1644 return 0;
1645}
1646
1647static void __exit kvm_mips_exit(void)
1648{
1649 kvm_exit();
1650
1651 unregister_die_notifier(&kvm_mips_csr_die_notifier);
1652}
1653
1654module_init(kvm_mips_init);
1655module_exit(kvm_mips_exit);
1656
1657EXPORT_TRACEPOINT_SYMBOL(kvm_exit);
1635 if (ret) {
1636 unregister_die_notifier(&kvm_mips_csr_die_notifier);
1637 return ret;
1638 }
1639 return 0;
1640}
1641
1642static void __exit kvm_mips_exit(void)
1643{
1644 kvm_exit();
1645
1646 unregister_die_notifier(&kvm_mips_csr_die_notifier);
1647}
1648
1649module_init(kvm_mips_init);
1650module_exit(kvm_mips_exit);
1651
1652EXPORT_TRACEPOINT_SYMBOL(kvm_exit);