kvm-s390.c (15c9705f0c8af2d19dede9866aec364746b269ef) kvm-s390.c (22be5a133169e855097936438417ab1b672ad43f)
1/*
2 * hosting zSeries kernel virtual machines
3 *
4 * Copyright IBM Corp. 2008, 2009
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License (version 2 only)
8 * as published by the Free Software Foundation.

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

188
189void kvm_arch_hardware_unsetup(void)
190{
191 gmap_unregister_ipte_notifier(&gmap_notifier);
192 atomic_notifier_chain_unregister(&s390_epoch_delta_notifier,
193 &kvm_clock_notifier);
194}
195
1/*
2 * hosting zSeries kernel virtual machines
3 *
4 * Copyright IBM Corp. 2008, 2009
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License (version 2 only)
8 * as published by the Free Software Foundation.

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

188
189void kvm_arch_hardware_unsetup(void)
190{
191 gmap_unregister_ipte_notifier(&gmap_notifier);
192 atomic_notifier_chain_unregister(&s390_epoch_delta_notifier,
193 &kvm_clock_notifier);
194}
195
196static void allow_cpu_feat(unsigned long nr)
197{
198 set_bit_inv(nr, kvm_s390_available_cpu_feat);
199}
200
201static void kvm_s390_cpu_feat_init(void)
202{
203 if (MACHINE_HAS_ESOP)
204 allow_cpu_feat(KVM_S390_VM_CPU_FEAT_ESOP);
205}
206
196int kvm_arch_init(void *opaque)
197{
198 kvm_s390_dbf = debug_register("kvm-trace", 32, 1, 7 * sizeof(long));
199 if (!kvm_s390_dbf)
200 return -ENOMEM;
201
202 if (debug_register_view(kvm_s390_dbf, &debug_sprintf_view)) {
203 debug_unregister(kvm_s390_dbf);
204 return -ENOMEM;
205 }
206
207int kvm_arch_init(void *opaque)
208{
209 kvm_s390_dbf = debug_register("kvm-trace", 32, 1, 7 * sizeof(long));
210 if (!kvm_s390_dbf)
211 return -ENOMEM;
212
213 if (debug_register_view(kvm_s390_dbf, &debug_sprintf_view)) {
214 debug_unregister(kvm_s390_dbf);
215 return -ENOMEM;
216 }
217
218 kvm_s390_cpu_feat_init();
219
207 /* Register floating interrupt controller interface. */
208 return kvm_register_device_ops(&kvm_flic_ops, KVM_DEV_TYPE_FLIC);
209}
210
211void kvm_arch_exit(void)
212{
213 debug_unregister(kvm_s390_dbf);
214}

--- 2890 unchanged lines hidden ---
220 /* Register floating interrupt controller interface. */
221 return kvm_register_device_ops(&kvm_flic_ops, KVM_DEV_TYPE_FLIC);
222}
223
224void kvm_arch_exit(void)
225{
226 debug_unregister(kvm_s390_dbf);
227}

--- 2890 unchanged lines hidden ---