1 /*
2  * QEMU KVM support -- s390x specific function stubs.
3  *
4  * Copyright (c) 2009 Ulrich Hecht
5  *
6  * This work is licensed under the terms of the GNU GPL, version 2 or later.
7  * See the COPYING file in the top-level directory.
8  */
9 
10 #include "qemu/osdep.h"
11 #include "cpu.h"
12 #include "kvm_s390x.h"
13 
kvm_s390_access_exception(S390CPU * cpu,uint16_t code,uint64_t te_code)14 void kvm_s390_access_exception(S390CPU *cpu, uint16_t code, uint64_t te_code)
15 {
16 }
17 
kvm_s390_mem_op(S390CPU * cpu,vaddr addr,uint8_t ar,void * hostbuf,int len,bool is_write)18 int kvm_s390_mem_op(S390CPU *cpu, vaddr addr, uint8_t ar, void *hostbuf,
19                     int len, bool is_write)
20 {
21     return -ENOSYS;
22 }
23 
kvm_s390_program_interrupt(S390CPU * cpu,uint16_t code)24 void kvm_s390_program_interrupt(S390CPU *cpu, uint16_t code)
25 {
26 }
27 
kvm_s390_set_cpu_state(S390CPU * cpu,uint8_t cpu_state)28 int kvm_s390_set_cpu_state(S390CPU *cpu, uint8_t cpu_state)
29 {
30     return -ENOSYS;
31 }
32 
kvm_s390_vcpu_interrupt_pre_save(S390CPU * cpu)33 void kvm_s390_vcpu_interrupt_pre_save(S390CPU *cpu)
34 {
35 }
36 
kvm_s390_vcpu_interrupt_post_load(S390CPU * cpu)37 int kvm_s390_vcpu_interrupt_post_load(S390CPU *cpu)
38 {
39     return 0;
40 }
41 
kvm_s390_get_ri(void)42 int kvm_s390_get_ri(void)
43 {
44     return 0;
45 }
46 
kvm_s390_get_gs(void)47 int kvm_s390_get_gs(void)
48 {
49     return 0;
50 }
51 
kvm_s390_get_clock(uint8_t * tod_high,uint64_t * tod_low)52 int kvm_s390_get_clock(uint8_t *tod_high, uint64_t *tod_low)
53 {
54     return -ENOSYS;
55 }
56 
kvm_s390_get_clock_ext(uint8_t * tod_high,uint64_t * tod_low)57 int kvm_s390_get_clock_ext(uint8_t *tod_high, uint64_t *tod_low)
58 {
59     return -ENOSYS;
60 }
61 
kvm_s390_set_clock(uint8_t tod_high,uint64_t tod_low)62 int kvm_s390_set_clock(uint8_t tod_high, uint64_t tod_low)
63 {
64     return -ENOSYS;
65 }
66 
kvm_s390_set_clock_ext(uint8_t tod_high,uint64_t tod_low)67 int kvm_s390_set_clock_ext(uint8_t tod_high, uint64_t tod_low)
68 {
69     return -ENOSYS;
70 }
71 
kvm_s390_enable_css_support(S390CPU * cpu)72 void kvm_s390_enable_css_support(S390CPU *cpu)
73 {
74 }
75 
kvm_s390_assign_subch_ioeventfd(EventNotifier * notifier,uint32_t sch,int vq,bool assign)76 int kvm_s390_assign_subch_ioeventfd(EventNotifier *notifier, uint32_t sch,
77                                     int vq, bool assign)
78 {
79     return -ENOSYS;
80 }
81 
kvm_s390_cmma_reset(void)82 void kvm_s390_cmma_reset(void)
83 {
84 }
85 
kvm_s390_reset_vcpu_initial(S390CPU * cpu)86 void kvm_s390_reset_vcpu_initial(S390CPU *cpu)
87 {
88 }
89 
kvm_s390_reset_vcpu_clear(S390CPU * cpu)90 void kvm_s390_reset_vcpu_clear(S390CPU *cpu)
91 {
92 }
93 
kvm_s390_reset_vcpu_normal(S390CPU * cpu)94 void kvm_s390_reset_vcpu_normal(S390CPU *cpu)
95 {
96 }
97 
kvm_s390_set_mem_limit(uint64_t new_limit,uint64_t * hw_limit)98 int kvm_s390_set_mem_limit(uint64_t new_limit, uint64_t *hw_limit)
99 {
100     return 0;
101 }
102 
kvm_s390_set_max_pagesize(uint64_t pagesize,Error ** errp)103 void kvm_s390_set_max_pagesize(uint64_t pagesize, Error **errp)
104 {
105 }
106 
kvm_s390_crypto_reset(void)107 void kvm_s390_crypto_reset(void)
108 {
109 }
110 
kvm_s390_stop_interrupt(S390CPU * cpu)111 void kvm_s390_stop_interrupt(S390CPU *cpu)
112 {
113 }
114 
kvm_s390_restart_interrupt(S390CPU * cpu)115 void kvm_s390_restart_interrupt(S390CPU *cpu)
116 {
117 }
118