mips.c (63a1bd8ad1ac9e4e8bfcd5914c8899606e04898d) mips.c (1cfc1c7bf56caf92977878bd7efd57b86f621c6c)
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.

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

1007 r = -ENOIOCTLCMD;
1008 }
1009
1010 return r;
1011}
1012
1013int kvm_arch_init(void *opaque)
1014{
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.

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

1007 r = -ENOIOCTLCMD;
1008 }
1009
1010 return r;
1011}
1012
1013int kvm_arch_init(void *opaque)
1014{
1015 if (kvm_mips_callbacks) {
1016 kvm_err("kvm: module already exists\n");
1017 return -EEXIST;
1018 }
1019
1020 return kvm_mips_emulation_init(&kvm_mips_callbacks);
1015 return kvm_mips_emulation_init();
1021}
1022
1023void kvm_arch_exit(void)
1024{
1016}
1017
1018void kvm_arch_exit(void)
1019{
1025 kvm_mips_callbacks = NULL;
1020
1026}
1027
1028int kvm_arch_vcpu_ioctl_get_sregs(struct kvm_vcpu *vcpu,
1029 struct kvm_sregs *sregs)
1030{
1031 return -ENOIOCTLCMD;
1032}
1033

--- 634 unchanged lines hidden ---
1021}
1022
1023int kvm_arch_vcpu_ioctl_get_sregs(struct kvm_vcpu *vcpu,
1024 struct kvm_sregs *sregs)
1025{
1026 return -ENOIOCTLCMD;
1027}
1028

--- 634 unchanged lines hidden ---