aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/include/asm/kvm_host.h6
-rw-r--r--arch/arm/kvm/arm.c19
-rw-r--r--arch/arm64/include/asm/kvm_host.h6
-rw-r--r--arch/ia64/include/asm/kvm_host.h12
-rw-r--r--arch/ia64/kvm/kvm-ia64.c30
-rw-r--r--arch/mips/include/asm/kvm_host.h11
-rw-r--r--arch/mips/kvm/mips.c42
-rw-r--r--arch/powerpc/include/asm/kvm_host.h8
-rw-r--r--arch/powerpc/kvm/powerpc.c29
-rw-r--r--arch/s390/include/asm/kvm_host.h14
-rw-r--r--arch/s390/kvm/kvm-s390.c43
11 files changed, 57 insertions, 163 deletions
diff --git a/arch/arm/include/asm/kvm_host.h b/arch/arm/include/asm/kvm_host.h
index 4843397b812c..aea259e9431f 100644
--- a/arch/arm/include/asm/kvm_host.h
+++ b/arch/arm/include/asm/kvm_host.h
@@ -230,4 +230,10 @@ static inline void vgic_arch_setup(const struct vgic_params *vgic)
230int kvm_perf_init(void); 230int kvm_perf_init(void);
231int kvm_perf_teardown(void); 231int kvm_perf_teardown(void);
232 232
233static inline void kvm_arch_hardware_disable(void *garbage) {}
234static inline void kvm_arch_hardware_unsetup(void) {}
235static inline void kvm_arch_sync_events(struct kvm *kvm) {}
236static inline void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) {}
237static inline void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) {}
238
233#endif /* __ARM_KVM_HOST_H__ */ 239#endif /* __ARM_KVM_HOST_H__ */
diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c
index 9f788ebac55b..132bb0d9c5ad 100644
--- a/arch/arm/kvm/arm.c
+++ b/arch/arm/kvm/arm.c
@@ -97,27 +97,16 @@ int kvm_arch_vcpu_should_kick(struct kvm_vcpu *vcpu)
97 return kvm_vcpu_exiting_guest_mode(vcpu) == IN_GUEST_MODE; 97 return kvm_vcpu_exiting_guest_mode(vcpu) == IN_GUEST_MODE;
98} 98}
99 99
100void kvm_arch_hardware_disable(void *garbage)
101{
102}
103
104int kvm_arch_hardware_setup(void) 100int kvm_arch_hardware_setup(void)
105{ 101{
106 return 0; 102 return 0;
107} 103}
108 104
109void kvm_arch_hardware_unsetup(void)
110{
111}
112
113void kvm_arch_check_processor_compat(void *rtn) 105void kvm_arch_check_processor_compat(void *rtn)
114{ 106{
115 *(int *)rtn = 0; 107 *(int *)rtn = 0;
116} 108}
117 109
118void kvm_arch_sync_events(struct kvm *kvm)
119{
120}
121 110
122/** 111/**
123 * kvm_arch_init_vm - initializes a VM data structure 112 * kvm_arch_init_vm - initializes a VM data structure
@@ -284,14 +273,6 @@ int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu)
284 return 0; 273 return 0;
285} 274}
286 275
287void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu)
288{
289}
290
291void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu)
292{
293}
294
295void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) 276void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu)
296{ 277{
297 vcpu->cpu = cpu; 278 vcpu->cpu = cpu;
diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h
index 766147baae0b..b5045e3e05f8 100644
--- a/arch/arm64/include/asm/kvm_host.h
+++ b/arch/arm64/include/asm/kvm_host.h
@@ -242,4 +242,10 @@ static inline void vgic_arch_setup(const struct vgic_params *vgic)
242 } 242 }
243} 243}
244 244
245static inline void kvm_arch_hardware_disable(void *garbage) {}
246static inline void kvm_arch_hardware_unsetup(void) {}
247static inline void kvm_arch_sync_events(struct kvm *kvm) {}
248static inline void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) {}
249static inline void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) {}
250
245#endif /* __ARM64_KVM_HOST_H__ */ 251#endif /* __ARM64_KVM_HOST_H__ */
diff --git a/arch/ia64/include/asm/kvm_host.h b/arch/ia64/include/asm/kvm_host.h
index fccc09d04649..4729752b7256 100644
--- a/arch/ia64/include/asm/kvm_host.h
+++ b/arch/ia64/include/asm/kvm_host.h
@@ -592,6 +592,18 @@ void kvm_sal_emul(struct kvm_vcpu *vcpu);
592struct kvm *kvm_arch_alloc_vm(void); 592struct kvm *kvm_arch_alloc_vm(void);
593void kvm_arch_free_vm(struct kvm *kvm); 593void kvm_arch_free_vm(struct kvm *kvm);
594 594
595static inline void kvm_arch_sync_events(struct kvm *kvm) {}
596static inline void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu) {}
597static inline void kvm_arch_sched_in(struct kvm_vcpu *vcpu) {}
598static inline void kvm_arch_free_memslot(struct kvm *kvm,
599 struct kvm_memory_slot *free, struct kvm_memory_slot *dont) {}
600static inline void kvm_arch_memslots_updated(struct kvm *kvm) {}
601static inline void kvm_arch_commit_memory_region(struct kvm *kvm,
602 struct kvm_userspace_memory_region *mem,
603 const struct kvm_memory_slot *old,
604 enum kvm_mr_change change) {}
605static inline void kvm_arch_hardware_unsetup(void) {}
606
595#endif /* __ASSEMBLY__*/ 607#endif /* __ASSEMBLY__*/
596 608
597#endif 609#endif
diff --git a/arch/ia64/kvm/kvm-ia64.c b/arch/ia64/kvm/kvm-ia64.c
index 0729ba6acddf..5e14dcaf844e 100644
--- a/arch/ia64/kvm/kvm-ia64.c
+++ b/arch/ia64/kvm/kvm-ia64.c
@@ -1364,10 +1364,6 @@ static void kvm_release_vm_pages(struct kvm *kvm)
1364 } 1364 }
1365} 1365}
1366 1366
1367void kvm_arch_sync_events(struct kvm *kvm)
1368{
1369}
1370
1371void kvm_arch_destroy_vm(struct kvm *kvm) 1367void kvm_arch_destroy_vm(struct kvm *kvm)
1372{ 1368{
1373 kvm_iommu_unmap_guest(kvm); 1369 kvm_iommu_unmap_guest(kvm);
@@ -1376,10 +1372,6 @@ void kvm_arch_destroy_vm(struct kvm *kvm)
1376 kvm_release_vm_pages(kvm); 1372 kvm_release_vm_pages(kvm);
1377} 1373}
1378 1374
1379void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu)
1380{
1381}
1382
1383void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) 1375void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu)
1384{ 1376{
1385 if (cpu != vcpu->cpu) { 1377 if (cpu != vcpu->cpu) {
@@ -1468,7 +1460,6 @@ void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu)
1468 kfree(vcpu->arch.apic); 1460 kfree(vcpu->arch.apic);
1469} 1461}
1470 1462
1471
1472long kvm_arch_vcpu_ioctl(struct file *filp, 1463long kvm_arch_vcpu_ioctl(struct file *filp,
1473 unsigned int ioctl, unsigned long arg) 1464 unsigned int ioctl, unsigned long arg)
1474{ 1465{
@@ -1551,21 +1542,12 @@ int kvm_arch_vcpu_fault(struct kvm_vcpu *vcpu, struct vm_fault *vmf)
1551 return VM_FAULT_SIGBUS; 1542 return VM_FAULT_SIGBUS;
1552} 1543}
1553 1544
1554void kvm_arch_free_memslot(struct kvm *kvm, struct kvm_memory_slot *free,
1555 struct kvm_memory_slot *dont)
1556{
1557}
1558
1559int kvm_arch_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot, 1545int kvm_arch_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot,
1560 unsigned long npages) 1546 unsigned long npages)
1561{ 1547{
1562 return 0; 1548 return 0;
1563} 1549}
1564 1550
1565void kvm_arch_memslots_updated(struct kvm *kvm)
1566{
1567}
1568
1569int kvm_arch_prepare_memory_region(struct kvm *kvm, 1551int kvm_arch_prepare_memory_region(struct kvm *kvm,
1570 struct kvm_memory_slot *memslot, 1552 struct kvm_memory_slot *memslot,
1571 struct kvm_userspace_memory_region *mem, 1553 struct kvm_userspace_memory_region *mem,
@@ -1597,14 +1579,6 @@ int kvm_arch_prepare_memory_region(struct kvm *kvm,
1597 return 0; 1579 return 0;
1598} 1580}
1599 1581
1600void kvm_arch_commit_memory_region(struct kvm *kvm,
1601 struct kvm_userspace_memory_region *mem,
1602 const struct kvm_memory_slot *old,
1603 enum kvm_mr_change change)
1604{
1605 return;
1606}
1607
1608void kvm_arch_flush_shadow_all(struct kvm *kvm) 1582void kvm_arch_flush_shadow_all(struct kvm *kvm)
1609{ 1583{
1610 kvm_flush_remote_tlbs(kvm); 1584 kvm_flush_remote_tlbs(kvm);
@@ -1853,10 +1827,6 @@ int kvm_arch_hardware_setup(void)
1853 return 0; 1827 return 0;
1854} 1828}
1855 1829
1856void kvm_arch_hardware_unsetup(void)
1857{
1858}
1859
1860int kvm_apic_set_irq(struct kvm_vcpu *vcpu, struct kvm_lapic_irq *irq) 1830int kvm_apic_set_irq(struct kvm_vcpu *vcpu, struct kvm_lapic_irq *irq)
1861{ 1831{
1862 return __apic_accept_irq(vcpu, irq->vector); 1832 return __apic_accept_irq(vcpu, irq->vector);
diff --git a/arch/mips/include/asm/kvm_host.h b/arch/mips/include/asm/kvm_host.h
index b93bc80ed7e7..0b24d6622ec1 100644
--- a/arch/mips/include/asm/kvm_host.h
+++ b/arch/mips/include/asm/kvm_host.h
@@ -762,5 +762,16 @@ extern int kvm_mips_trans_mtc0(uint32_t inst, uint32_t *opc,
762extern void kvm_mips_dump_stats(struct kvm_vcpu *vcpu); 762extern void kvm_mips_dump_stats(struct kvm_vcpu *vcpu);
763extern unsigned long kvm_mips_get_ramsize(struct kvm *kvm); 763extern unsigned long kvm_mips_get_ramsize(struct kvm *kvm);
764 764
765static inline void kvm_arch_hardware_disable(void *garbage) {}
766static inline void kvm_arch_hardware_unsetup(void) {}
767static inline void kvm_arch_sync_events(struct kvm *kvm) {}
768static inline void kvm_arch_free_memslot(struct kvm *kvm,
769 struct kvm_memory_slot *free, struct kvm_memory_slot *dont) {}
770static inline void kvm_arch_memslots_updated(struct kvm *kvm) {}
771static inline void kvm_arch_flush_shadow_all(struct kvm *kvm) {}
772static inline void kvm_arch_flush_shadow_memslot(struct kvm *kvm,
773 struct kvm_memory_slot *slot) {}
774static inline void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) {}
775static inline void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) {}
765 776
766#endif /* __MIPS_KVM_HOST_H__ */ 777#endif /* __MIPS_KVM_HOST_H__ */
diff --git a/arch/mips/kvm/mips.c b/arch/mips/kvm/mips.c
index 2362df2a79f9..0ec7490d70bd 100644
--- a/arch/mips/kvm/mips.c
+++ b/arch/mips/kvm/mips.c
@@ -82,19 +82,11 @@ int kvm_arch_hardware_enable(void *garbage)
82 return 0; 82 return 0;
83} 83}
84 84
85void kvm_arch_hardware_disable(void *garbage)
86{
87}
88
89int kvm_arch_hardware_setup(void) 85int kvm_arch_hardware_setup(void)
90{ 86{
91 return 0; 87 return 0;
92} 88}
93 89
94void kvm_arch_hardware_unsetup(void)
95{
96}
97
98void kvm_arch_check_processor_compat(void *rtn) 90void kvm_arch_check_processor_compat(void *rtn)
99{ 91{
100 *(int *)rtn = 0; 92 *(int *)rtn = 0;
@@ -163,10 +155,6 @@ void kvm_mips_free_vcpus(struct kvm *kvm)
163 mutex_unlock(&kvm->lock); 155 mutex_unlock(&kvm->lock);
164} 156}
165 157
166void kvm_arch_sync_events(struct kvm *kvm)
167{
168}
169
170static void kvm_mips_uninit_tlbs(void *arg) 158static void kvm_mips_uninit_tlbs(void *arg)
171{ 159{
172 /* Restore wired count */ 160 /* Restore wired count */
@@ -194,21 +182,12 @@ long kvm_arch_dev_ioctl(struct file *filp, unsigned int ioctl,
194 return -ENOIOCTLCMD; 182 return -ENOIOCTLCMD;
195} 183}
196 184
197void kvm_arch_free_memslot(struct kvm *kvm, struct kvm_memory_slot *free,
198 struct kvm_memory_slot *dont)
199{
200}
201
202int kvm_arch_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot, 185int kvm_arch_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot,
203 unsigned long npages) 186 unsigned long npages)
204{ 187{
205 return 0; 188 return 0;
206} 189}
207 190
208void kvm_arch_memslots_updated(struct kvm *kvm)
209{
210}
211
212int kvm_arch_prepare_memory_region(struct kvm *kvm, 191int kvm_arch_prepare_memory_region(struct kvm *kvm,
213 struct kvm_memory_slot *memslot, 192 struct kvm_memory_slot *memslot,
214 struct kvm_userspace_memory_region *mem, 193 struct kvm_userspace_memory_region *mem,
@@ -254,19 +233,6 @@ void kvm_arch_commit_memory_region(struct kvm *kvm,
254 } 233 }
255} 234}
256 235
257void kvm_arch_flush_shadow_all(struct kvm *kvm)
258{
259}
260
261void kvm_arch_flush_shadow_memslot(struct kvm *kvm,
262 struct kvm_memory_slot *slot)
263{
264}
265
266void kvm_arch_flush_shadow(struct kvm *kvm)
267{
268}
269
270struct kvm_vcpu *kvm_arch_vcpu_create(struct kvm *kvm, unsigned int id) 236struct kvm_vcpu *kvm_arch_vcpu_create(struct kvm *kvm, unsigned int id)
271{ 237{
272 int err, size, offset; 238 int err, size, offset;
@@ -998,14 +964,6 @@ int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu)
998 return 0; 964 return 0;
999} 965}
1000 966
1001void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu)
1002{
1003}
1004
1005void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu)
1006{
1007}
1008
1009int kvm_arch_vcpu_ioctl_translate(struct kvm_vcpu *vcpu, 967int kvm_arch_vcpu_ioctl_translate(struct kvm_vcpu *vcpu,
1010 struct kvm_translation *tr) 968 struct kvm_translation *tr)
1011{ 969{
diff --git a/arch/powerpc/include/asm/kvm_host.h b/arch/powerpc/include/asm/kvm_host.h
index 0e597283c5c6..237cc0cc80a2 100644
--- a/arch/powerpc/include/asm/kvm_host.h
+++ b/arch/powerpc/include/asm/kvm_host.h
@@ -682,4 +682,12 @@ struct kvm_vcpu_arch {
682#define __KVM_HAVE_ARCH_WQP 682#define __KVM_HAVE_ARCH_WQP
683#define __KVM_HAVE_CREATE_DEVICE 683#define __KVM_HAVE_CREATE_DEVICE
684 684
685static inline void kvm_arch_hardware_disable(void *garbage) {}
686static inline void kvm_arch_hardware_unsetup(void) {}
687static inline void kvm_arch_sync_events(struct kvm *kvm) {}
688static inline void kvm_arch_memslots_updated(struct kvm *kvm) {}
689static inline void kvm_arch_flush_shadow_all(struct kvm *kvm) {}
690static inline void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) {}
691static inline void kvm_arch_exit(void) {}
692
685#endif /* __POWERPC_KVM_HOST_H__ */ 693#endif /* __POWERPC_KVM_HOST_H__ */
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c
index cbc432f4f0a6..72c3fc085207 100644
--- a/arch/powerpc/kvm/powerpc.c
+++ b/arch/powerpc/kvm/powerpc.c
@@ -389,19 +389,11 @@ int kvm_arch_hardware_enable(void *garbage)
389 return 0; 389 return 0;
390} 390}
391 391
392void kvm_arch_hardware_disable(void *garbage)
393{
394}
395
396int kvm_arch_hardware_setup(void) 392int kvm_arch_hardware_setup(void)
397{ 393{
398 return 0; 394 return 0;
399} 395}
400 396
401void kvm_arch_hardware_unsetup(void)
402{
403}
404
405void kvm_arch_check_processor_compat(void *rtn) 397void kvm_arch_check_processor_compat(void *rtn)
406{ 398{
407 *(int *)rtn = kvmppc_core_check_processor_compat(); 399 *(int *)rtn = kvmppc_core_check_processor_compat();
@@ -462,10 +454,6 @@ void kvm_arch_destroy_vm(struct kvm *kvm)
462 module_put(kvm->arch.kvm_ops->owner); 454 module_put(kvm->arch.kvm_ops->owner);
463} 455}
464 456
465void kvm_arch_sync_events(struct kvm *kvm)
466{
467}
468
469int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) 457int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
470{ 458{
471 int r; 459 int r;
@@ -608,10 +596,6 @@ int kvm_arch_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot,
608 return kvmppc_core_create_memslot(kvm, slot, npages); 596 return kvmppc_core_create_memslot(kvm, slot, npages);
609} 597}
610 598
611void kvm_arch_memslots_updated(struct kvm *kvm)
612{
613}
614
615int kvm_arch_prepare_memory_region(struct kvm *kvm, 599int kvm_arch_prepare_memory_region(struct kvm *kvm,
616 struct kvm_memory_slot *memslot, 600 struct kvm_memory_slot *memslot,
617 struct kvm_userspace_memory_region *mem, 601 struct kvm_userspace_memory_region *mem,
@@ -628,10 +612,6 @@ void kvm_arch_commit_memory_region(struct kvm *kvm,
628 kvmppc_core_commit_memory_region(kvm, mem, old); 612 kvmppc_core_commit_memory_region(kvm, mem, old);
629} 613}
630 614
631void kvm_arch_flush_shadow_all(struct kvm *kvm)
632{
633}
634
635void kvm_arch_flush_shadow_memslot(struct kvm *kvm, 615void kvm_arch_flush_shadow_memslot(struct kvm *kvm,
636 struct kvm_memory_slot *slot) 616 struct kvm_memory_slot *slot)
637{ 617{
@@ -720,10 +700,6 @@ void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu)
720 kvmppc_subarch_vcpu_uninit(vcpu); 700 kvmppc_subarch_vcpu_uninit(vcpu);
721} 701}
722 702
723void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu)
724{
725}
726
727void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) 703void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu)
728{ 704{
729#ifdef CONFIG_BOOKE 705#ifdef CONFIG_BOOKE
@@ -1347,9 +1323,4 @@ int kvm_arch_init(void *opaque)
1347 return 0; 1323 return 0;
1348} 1324}
1349 1325
1350void kvm_arch_exit(void)
1351{
1352
1353}
1354
1355EXPORT_TRACEPOINT_SYMBOL_GPL(kvm_ppc_instr); 1326EXPORT_TRACEPOINT_SYMBOL_GPL(kvm_ppc_instr);
diff --git a/arch/s390/include/asm/kvm_host.h b/arch/s390/include/asm/kvm_host.h
index d71291d3fb6f..f6dd90684b97 100644
--- a/arch/s390/include/asm/kvm_host.h
+++ b/arch/s390/include/asm/kvm_host.h
@@ -451,4 +451,18 @@ void kvm_arch_async_page_present(struct kvm_vcpu *vcpu,
451 451
452extern int sie64a(struct kvm_s390_sie_block *, u64 *); 452extern int sie64a(struct kvm_s390_sie_block *, u64 *);
453extern char sie_exit; 453extern char sie_exit;
454
455static inline void kvm_arch_hardware_disable(void *garbage) {}
456static inline void kvm_arch_check_processor_compat(void *rtn) {}
457static inline void kvm_arch_exit(void) {}
458static inline void kvm_arch_sync_events(struct kvm *kvm) {}
459static inline void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) {}
460static inline void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) {}
461static inline void kvm_arch_free_memslot(struct kvm *kvm,
462 struct kvm_memory_slot *free, struct kvm_memory_slot *dont) {}
463static inline void kvm_arch_memslots_updated(struct kvm *kvm) {}
464static inline void kvm_arch_flush_shadow_all(struct kvm *kvm) {}
465static inline void kvm_arch_flush_shadow_memslot(struct kvm *kvm,
466 struct kvm_memory_slot *slot) {}
467
454#endif 468#endif
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c
index 36209969bf98..b8fe1ae777db 100644
--- a/arch/s390/kvm/kvm-s390.c
+++ b/arch/s390/kvm/kvm-s390.c
@@ -106,10 +106,6 @@ int kvm_arch_hardware_enable(void *garbage)
106 return 0; 106 return 0;
107} 107}
108 108
109void kvm_arch_hardware_disable(void *garbage)
110{
111}
112
113static void kvm_gmap_notifier(struct gmap *gmap, unsigned long address); 109static void kvm_gmap_notifier(struct gmap *gmap, unsigned long address);
114 110
115int kvm_arch_hardware_setup(void) 111int kvm_arch_hardware_setup(void)
@@ -124,19 +120,11 @@ void kvm_arch_hardware_unsetup(void)
124 gmap_unregister_ipte_notifier(&gmap_notifier); 120 gmap_unregister_ipte_notifier(&gmap_notifier);
125} 121}
126 122
127void kvm_arch_check_processor_compat(void *rtn)
128{
129}
130
131int kvm_arch_init(void *opaque) 123int kvm_arch_init(void *opaque)
132{ 124{
133 return 0; 125 return 0;
134} 126}
135 127
136void kvm_arch_exit(void)
137{
138}
139
140/* Section: device related */ 128/* Section: device related */
141long kvm_arch_dev_ioctl(struct file *filp, 129long kvm_arch_dev_ioctl(struct file *filp,
142 unsigned int ioctl, unsigned long arg) 130 unsigned int ioctl, unsigned long arg)
@@ -514,10 +502,6 @@ static void kvm_free_vcpus(struct kvm *kvm)
514 mutex_unlock(&kvm->lock); 502 mutex_unlock(&kvm->lock);
515} 503}
516 504
517void kvm_arch_sync_events(struct kvm *kvm)
518{
519}
520
521void kvm_arch_destroy_vm(struct kvm *kvm) 505void kvm_arch_destroy_vm(struct kvm *kvm)
522{ 506{
523 kvm_free_vcpus(kvm); 507 kvm_free_vcpus(kvm);
@@ -552,15 +536,6 @@ int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu)
552 return 0; 536 return 0;
553} 537}
554 538
555void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu)
556{
557 /* Nothing todo */
558}
559
560void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu)
561{
562}
563
564void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) 539void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu)
565{ 540{
566 save_fp_ctl(&vcpu->arch.host_fpregs.fpc); 541 save_fp_ctl(&vcpu->arch.host_fpregs.fpc);
@@ -1708,21 +1683,12 @@ int kvm_arch_vcpu_fault(struct kvm_vcpu *vcpu, struct vm_fault *vmf)
1708 return VM_FAULT_SIGBUS; 1683 return VM_FAULT_SIGBUS;
1709} 1684}
1710 1685
1711void kvm_arch_free_memslot(struct kvm *kvm, struct kvm_memory_slot *free,
1712 struct kvm_memory_slot *dont)
1713{
1714}
1715
1716int kvm_arch_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot, 1686int kvm_arch_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot,
1717 unsigned long npages) 1687 unsigned long npages)
1718{ 1688{
1719 return 0; 1689 return 0;
1720} 1690}
1721 1691
1722void kvm_arch_memslots_updated(struct kvm *kvm)
1723{
1724}
1725
1726/* Section: memory related */ 1692/* Section: memory related */
1727int kvm_arch_prepare_memory_region(struct kvm *kvm, 1693int kvm_arch_prepare_memory_region(struct kvm *kvm,
1728 struct kvm_memory_slot *memslot, 1694 struct kvm_memory_slot *memslot,
@@ -1768,15 +1734,6 @@ void kvm_arch_commit_memory_region(struct kvm *kvm,
1768 return; 1734 return;
1769} 1735}
1770 1736
1771void kvm_arch_flush_shadow_all(struct kvm *kvm)
1772{
1773}
1774
1775void kvm_arch_flush_shadow_memslot(struct kvm *kvm,
1776 struct kvm_memory_slot *slot)
1777{
1778}
1779
1780static int __init kvm_s390_init(void) 1737static int __init kvm_s390_init(void)
1781{ 1738{
1782 int ret; 1739 int ret;