diff options
-rw-r--r-- | arch/arm/include/asm/kvm_host.h | 6 | ||||
-rw-r--r-- | arch/arm/kvm/arm.c | 19 | ||||
-rw-r--r-- | arch/arm64/include/asm/kvm_host.h | 6 | ||||
-rw-r--r-- | arch/ia64/include/asm/kvm_host.h | 12 | ||||
-rw-r--r-- | arch/ia64/kvm/kvm-ia64.c | 30 | ||||
-rw-r--r-- | arch/mips/include/asm/kvm_host.h | 11 | ||||
-rw-r--r-- | arch/mips/kvm/mips.c | 42 | ||||
-rw-r--r-- | arch/powerpc/include/asm/kvm_host.h | 8 | ||||
-rw-r--r-- | arch/powerpc/kvm/powerpc.c | 29 | ||||
-rw-r--r-- | arch/s390/include/asm/kvm_host.h | 14 | ||||
-rw-r--r-- | arch/s390/kvm/kvm-s390.c | 43 |
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) | |||
230 | int kvm_perf_init(void); | 230 | int kvm_perf_init(void); |
231 | int kvm_perf_teardown(void); | 231 | int kvm_perf_teardown(void); |
232 | 232 | ||
233 | static inline void kvm_arch_hardware_disable(void *garbage) {} | ||
234 | static inline void kvm_arch_hardware_unsetup(void) {} | ||
235 | static inline void kvm_arch_sync_events(struct kvm *kvm) {} | ||
236 | static inline void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) {} | ||
237 | static 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 | ||
100 | void kvm_arch_hardware_disable(void *garbage) | ||
101 | { | ||
102 | } | ||
103 | |||
104 | int kvm_arch_hardware_setup(void) | 100 | int kvm_arch_hardware_setup(void) |
105 | { | 101 | { |
106 | return 0; | 102 | return 0; |
107 | } | 103 | } |
108 | 104 | ||
109 | void kvm_arch_hardware_unsetup(void) | ||
110 | { | ||
111 | } | ||
112 | |||
113 | void kvm_arch_check_processor_compat(void *rtn) | 105 | void kvm_arch_check_processor_compat(void *rtn) |
114 | { | 106 | { |
115 | *(int *)rtn = 0; | 107 | *(int *)rtn = 0; |
116 | } | 108 | } |
117 | 109 | ||
118 | void 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 | ||
287 | void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) | ||
288 | { | ||
289 | } | ||
290 | |||
291 | void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) | ||
292 | { | ||
293 | } | ||
294 | |||
295 | void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) | 276 | void 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 | ||
245 | static inline void kvm_arch_hardware_disable(void *garbage) {} | ||
246 | static inline void kvm_arch_hardware_unsetup(void) {} | ||
247 | static inline void kvm_arch_sync_events(struct kvm *kvm) {} | ||
248 | static inline void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) {} | ||
249 | static 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); | |||
592 | struct kvm *kvm_arch_alloc_vm(void); | 592 | struct kvm *kvm_arch_alloc_vm(void); |
593 | void kvm_arch_free_vm(struct kvm *kvm); | 593 | void kvm_arch_free_vm(struct kvm *kvm); |
594 | 594 | ||
595 | static inline void kvm_arch_sync_events(struct kvm *kvm) {} | ||
596 | static inline void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu) {} | ||
597 | static inline void kvm_arch_sched_in(struct kvm_vcpu *vcpu) {} | ||
598 | static inline void kvm_arch_free_memslot(struct kvm *kvm, | ||
599 | struct kvm_memory_slot *free, struct kvm_memory_slot *dont) {} | ||
600 | static inline void kvm_arch_memslots_updated(struct kvm *kvm) {} | ||
601 | static 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) {} | ||
605 | static 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 | ||
1367 | void kvm_arch_sync_events(struct kvm *kvm) | ||
1368 | { | ||
1369 | } | ||
1370 | |||
1371 | void kvm_arch_destroy_vm(struct kvm *kvm) | 1367 | void 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 | ||
1379 | void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu) | ||
1380 | { | ||
1381 | } | ||
1382 | |||
1383 | void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) | 1375 | void 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 | |||
1472 | long kvm_arch_vcpu_ioctl(struct file *filp, | 1463 | long 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 | ||
1554 | void kvm_arch_free_memslot(struct kvm *kvm, struct kvm_memory_slot *free, | ||
1555 | struct kvm_memory_slot *dont) | ||
1556 | { | ||
1557 | } | ||
1558 | |||
1559 | int kvm_arch_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot, | 1545 | int 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 | ||
1565 | void kvm_arch_memslots_updated(struct kvm *kvm) | ||
1566 | { | ||
1567 | } | ||
1568 | |||
1569 | int kvm_arch_prepare_memory_region(struct kvm *kvm, | 1551 | int 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 | ||
1600 | void 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 | |||
1608 | void kvm_arch_flush_shadow_all(struct kvm *kvm) | 1582 | void 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 | ||
1856 | void kvm_arch_hardware_unsetup(void) | ||
1857 | { | ||
1858 | } | ||
1859 | |||
1860 | int kvm_apic_set_irq(struct kvm_vcpu *vcpu, struct kvm_lapic_irq *irq) | 1830 | int 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, | |||
762 | extern void kvm_mips_dump_stats(struct kvm_vcpu *vcpu); | 762 | extern void kvm_mips_dump_stats(struct kvm_vcpu *vcpu); |
763 | extern unsigned long kvm_mips_get_ramsize(struct kvm *kvm); | 763 | extern unsigned long kvm_mips_get_ramsize(struct kvm *kvm); |
764 | 764 | ||
765 | static inline void kvm_arch_hardware_disable(void *garbage) {} | ||
766 | static inline void kvm_arch_hardware_unsetup(void) {} | ||
767 | static inline void kvm_arch_sync_events(struct kvm *kvm) {} | ||
768 | static inline void kvm_arch_free_memslot(struct kvm *kvm, | ||
769 | struct kvm_memory_slot *free, struct kvm_memory_slot *dont) {} | ||
770 | static inline void kvm_arch_memslots_updated(struct kvm *kvm) {} | ||
771 | static inline void kvm_arch_flush_shadow_all(struct kvm *kvm) {} | ||
772 | static inline void kvm_arch_flush_shadow_memslot(struct kvm *kvm, | ||
773 | struct kvm_memory_slot *slot) {} | ||
774 | static inline void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) {} | ||
775 | static 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 | ||
85 | void kvm_arch_hardware_disable(void *garbage) | ||
86 | { | ||
87 | } | ||
88 | |||
89 | int kvm_arch_hardware_setup(void) | 85 | int kvm_arch_hardware_setup(void) |
90 | { | 86 | { |
91 | return 0; | 87 | return 0; |
92 | } | 88 | } |
93 | 89 | ||
94 | void kvm_arch_hardware_unsetup(void) | ||
95 | { | ||
96 | } | ||
97 | |||
98 | void kvm_arch_check_processor_compat(void *rtn) | 90 | void 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 | ||
166 | void kvm_arch_sync_events(struct kvm *kvm) | ||
167 | { | ||
168 | } | ||
169 | |||
170 | static void kvm_mips_uninit_tlbs(void *arg) | 158 | static 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 | ||
197 | void kvm_arch_free_memslot(struct kvm *kvm, struct kvm_memory_slot *free, | ||
198 | struct kvm_memory_slot *dont) | ||
199 | { | ||
200 | } | ||
201 | |||
202 | int kvm_arch_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot, | 185 | int 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 | ||
208 | void kvm_arch_memslots_updated(struct kvm *kvm) | ||
209 | { | ||
210 | } | ||
211 | |||
212 | int kvm_arch_prepare_memory_region(struct kvm *kvm, | 191 | int 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 | ||
257 | void kvm_arch_flush_shadow_all(struct kvm *kvm) | ||
258 | { | ||
259 | } | ||
260 | |||
261 | void kvm_arch_flush_shadow_memslot(struct kvm *kvm, | ||
262 | struct kvm_memory_slot *slot) | ||
263 | { | ||
264 | } | ||
265 | |||
266 | void kvm_arch_flush_shadow(struct kvm *kvm) | ||
267 | { | ||
268 | } | ||
269 | |||
270 | struct kvm_vcpu *kvm_arch_vcpu_create(struct kvm *kvm, unsigned int id) | 236 | struct 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 | ||
1001 | void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) | ||
1002 | { | ||
1003 | } | ||
1004 | |||
1005 | void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) | ||
1006 | { | ||
1007 | } | ||
1008 | |||
1009 | int kvm_arch_vcpu_ioctl_translate(struct kvm_vcpu *vcpu, | 967 | int 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 | ||
685 | static inline void kvm_arch_hardware_disable(void *garbage) {} | ||
686 | static inline void kvm_arch_hardware_unsetup(void) {} | ||
687 | static inline void kvm_arch_sync_events(struct kvm *kvm) {} | ||
688 | static inline void kvm_arch_memslots_updated(struct kvm *kvm) {} | ||
689 | static inline void kvm_arch_flush_shadow_all(struct kvm *kvm) {} | ||
690 | static inline void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) {} | ||
691 | static 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 | ||
392 | void kvm_arch_hardware_disable(void *garbage) | ||
393 | { | ||
394 | } | ||
395 | |||
396 | int kvm_arch_hardware_setup(void) | 392 | int kvm_arch_hardware_setup(void) |
397 | { | 393 | { |
398 | return 0; | 394 | return 0; |
399 | } | 395 | } |
400 | 396 | ||
401 | void kvm_arch_hardware_unsetup(void) | ||
402 | { | ||
403 | } | ||
404 | |||
405 | void kvm_arch_check_processor_compat(void *rtn) | 397 | void 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 | ||
465 | void kvm_arch_sync_events(struct kvm *kvm) | ||
466 | { | ||
467 | } | ||
468 | |||
469 | int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) | 457 | int 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 | ||
611 | void kvm_arch_memslots_updated(struct kvm *kvm) | ||
612 | { | ||
613 | } | ||
614 | |||
615 | int kvm_arch_prepare_memory_region(struct kvm *kvm, | 599 | int 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 | ||
631 | void kvm_arch_flush_shadow_all(struct kvm *kvm) | ||
632 | { | ||
633 | } | ||
634 | |||
635 | void kvm_arch_flush_shadow_memslot(struct kvm *kvm, | 615 | void 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 | ||
723 | void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) | ||
724 | { | ||
725 | } | ||
726 | |||
727 | void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) | 703 | void 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 | ||
1350 | void kvm_arch_exit(void) | ||
1351 | { | ||
1352 | |||
1353 | } | ||
1354 | |||
1355 | EXPORT_TRACEPOINT_SYMBOL_GPL(kvm_ppc_instr); | 1326 | EXPORT_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 | ||
452 | extern int sie64a(struct kvm_s390_sie_block *, u64 *); | 452 | extern int sie64a(struct kvm_s390_sie_block *, u64 *); |
453 | extern char sie_exit; | 453 | extern char sie_exit; |
454 | |||
455 | static inline void kvm_arch_hardware_disable(void *garbage) {} | ||
456 | static inline void kvm_arch_check_processor_compat(void *rtn) {} | ||
457 | static inline void kvm_arch_exit(void) {} | ||
458 | static inline void kvm_arch_sync_events(struct kvm *kvm) {} | ||
459 | static inline void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) {} | ||
460 | static inline void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) {} | ||
461 | static inline void kvm_arch_free_memslot(struct kvm *kvm, | ||
462 | struct kvm_memory_slot *free, struct kvm_memory_slot *dont) {} | ||
463 | static inline void kvm_arch_memslots_updated(struct kvm *kvm) {} | ||
464 | static inline void kvm_arch_flush_shadow_all(struct kvm *kvm) {} | ||
465 | static 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 | ||
109 | void kvm_arch_hardware_disable(void *garbage) | ||
110 | { | ||
111 | } | ||
112 | |||
113 | static void kvm_gmap_notifier(struct gmap *gmap, unsigned long address); | 109 | static void kvm_gmap_notifier(struct gmap *gmap, unsigned long address); |
114 | 110 | ||
115 | int kvm_arch_hardware_setup(void) | 111 | int 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 | ||
127 | void kvm_arch_check_processor_compat(void *rtn) | ||
128 | { | ||
129 | } | ||
130 | |||
131 | int kvm_arch_init(void *opaque) | 123 | int kvm_arch_init(void *opaque) |
132 | { | 124 | { |
133 | return 0; | 125 | return 0; |
134 | } | 126 | } |
135 | 127 | ||
136 | void kvm_arch_exit(void) | ||
137 | { | ||
138 | } | ||
139 | |||
140 | /* Section: device related */ | 128 | /* Section: device related */ |
141 | long kvm_arch_dev_ioctl(struct file *filp, | 129 | long 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 | ||
517 | void kvm_arch_sync_events(struct kvm *kvm) | ||
518 | { | ||
519 | } | ||
520 | |||
521 | void kvm_arch_destroy_vm(struct kvm *kvm) | 505 | void 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 | ||
555 | void kvm_arch_vcpu_uninit(struct kvm_vcpu *vcpu) | ||
556 | { | ||
557 | /* Nothing todo */ | ||
558 | } | ||
559 | |||
560 | void kvm_arch_sched_in(struct kvm_vcpu *vcpu, int cpu) | ||
561 | { | ||
562 | } | ||
563 | |||
564 | void kvm_arch_vcpu_load(struct kvm_vcpu *vcpu, int cpu) | 539 | void 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 | ||
1711 | void kvm_arch_free_memslot(struct kvm *kvm, struct kvm_memory_slot *free, | ||
1712 | struct kvm_memory_slot *dont) | ||
1713 | { | ||
1714 | } | ||
1715 | |||
1716 | int kvm_arch_create_memslot(struct kvm *kvm, struct kvm_memory_slot *slot, | 1686 | int 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 | ||
1722 | void kvm_arch_memslots_updated(struct kvm *kvm) | ||
1723 | { | ||
1724 | } | ||
1725 | |||
1726 | /* Section: memory related */ | 1692 | /* Section: memory related */ |
1727 | int kvm_arch_prepare_memory_region(struct kvm *kvm, | 1693 | int 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 | ||
1771 | void kvm_arch_flush_shadow_all(struct kvm *kvm) | ||
1772 | { | ||
1773 | } | ||
1774 | |||
1775 | void kvm_arch_flush_shadow_memslot(struct kvm *kvm, | ||
1776 | struct kvm_memory_slot *slot) | ||
1777 | { | ||
1778 | } | ||
1779 | |||
1780 | static int __init kvm_s390_init(void) | 1737 | static int __init kvm_s390_init(void) |
1781 | { | 1738 | { |
1782 | int ret; | 1739 | int ret; |