| 1 | /* |
| 2 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | */ |
| 4 | |
| 5 | #include "qemu/osdep.h" |
| 6 | |
| 7 | #include "target/s390x/kvm/kvm_s390x.h" |
| 8 | #include "target/s390x/kvm/pv.h" |
| 9 | #include "target/s390x/cpu_models.h" |
| 10 | |
| 11 | int kvm_s390_get_protected_dump(void) |
| 12 | { |
| 13 | return false; |
| 14 | } |
| 15 | |
| 16 | bool s390_is_pv(void) |
| 17 | { |
| 18 | return false; |
| 19 | } |
| 20 | |
| 21 | int s390_pv_query_info(void) |
| 22 | { |
| 23 | return 0; |
| 24 | } |
| 25 | |
| 26 | int s390_pv_vm_enable(void) |
| 27 | { |
| 28 | return 0; |
| 29 | } |
| 30 | |
| 31 | void s390_pv_vm_disable(void) |
| 32 | { |
| 33 | } |
| 34 | |
| 35 | bool s390_pv_vm_try_disable_async(S390CcwMachineState *ms) |
| 36 | { |
| 37 | return false; |
| 38 | } |
| 39 | |
| 40 | int s390_pv_set_sec_parms(uint64_t origin, uint64_t length, |
| 41 | struct S390PVResponse *pv_resp, Error **errp) |
| 42 | { |
| 43 | return 0; |
| 44 | } |
| 45 | |
| 46 | int s390_pv_unpack(uint64_t addr, uint64_t size, uint64_t tweak, |
| 47 | struct S390PVResponse *pv_resp) |
| 48 | { |
| 49 | return 0; |
| 50 | } |
| 51 | |
| 52 | void s390_pv_prep_reset(void) |
| 53 | { |
| 54 | } |
| 55 | |
| 56 | int s390_pv_verify(struct S390PVResponse *pv_resp) |
| 57 | { |
| 58 | return 0; |
| 59 | } |
| 60 | |
| 61 | void s390_pv_unshare(void) |
| 62 | { |
| 63 | } |
| 64 | |
| 65 | void s390_pv_inject_reset_error(CPUState *cs, struct S390PVResponse pv_resp) |
| 66 | { |
| 67 | } |
| 68 | |
| 69 | uint64_t kvm_s390_pv_dmp_get_size_cpu(void) |
| 70 | { |
| 71 | return 0; |
| 72 | } |
| 73 | |
| 74 | uint64_t kvm_s390_pv_dmp_get_size_mem_state(void) |
| 75 | { |
| 76 | return 0; |
| 77 | } |
| 78 | |
| 79 | uint64_t kvm_s390_pv_dmp_get_size_completion_data(void) |
| 80 | { |
| 81 | return 0; |
| 82 | } |
| 83 | |
| 84 | bool kvm_s390_pv_info_basic_valid(void) |
| 85 | { |
| 86 | return false; |
| 87 | } |
| 88 | |
| 89 | int kvm_s390_dump_init(void) |
| 90 | { |
| 91 | return 0; |
| 92 | } |
| 93 | |
| 94 | int kvm_s390_dump_cpu(S390CPU *cpu, void *buff) |
| 95 | { |
| 96 | return 0; |
| 97 | } |
| 98 | |
| 99 | int kvm_s390_dump_mem_state(uint64_t addr, size_t len, void *dest) |
| 100 | { |
| 101 | return 0; |
| 102 | } |
| 103 | |
| 104 | int kvm_s390_dump_completion_data(void *buff) |
| 105 | { |
| 106 | return 0; |
| 107 | } |
| 108 | |
| 109 | bool kvm_s390_apply_cpu_model(const S390CPUModel *model, Error **errp) |
| 110 | { |
| 111 | g_assert_not_reached(); |
| 112 | } |
| 113 | |
| 114 | void kvm_s390_access_exception(S390CPU *cpu, uint16_t code, uint64_t te_code) |
| 115 | { |
| 116 | g_assert_not_reached(); |
| 117 | } |
| 118 | |
| 119 | int kvm_s390_mem_op(S390CPU *cpu, vaddr addr, uint8_t ar, void *hostbuf, |
| 120 | int len, bool is_write) |
| 121 | { |
| 122 | g_assert_not_reached(); |
| 123 | } |
| 124 | |
| 125 | int kvm_s390_mem_op_pv(S390CPU *cpu, vaddr addr, void *hostbuf, int len, |
| 126 | bool is_write) |
| 127 | { |
| 128 | g_assert_not_reached(); |
| 129 | } |
| 130 | |
| 131 | int kvm_s390_set_cpu_state(S390CPU *cpu, uint8_t cpu_state) |
| 132 | { |
| 133 | g_assert_not_reached(); |
| 134 | } |
| 135 | |
| 136 | void kvm_s390_vcpu_interrupt_pre_save(S390CPU *cpu) |
| 137 | { |
| 138 | g_assert_not_reached(); |
| 139 | } |
| 140 | |
| 141 | int kvm_s390_vcpu_interrupt_post_load(S390CPU *cpu) |
| 142 | { |
| 143 | g_assert_not_reached(); |
| 144 | } |
| 145 | |
| 146 | int kvm_s390_get_hpage(void) |
| 147 | { |
| 148 | g_assert_not_reached(); |
| 149 | } |
| 150 | |
| 151 | void kvm_s390_enable_css_support(S390CPU *cpu) |
| 152 | { |
| 153 | g_assert_not_reached(); |
| 154 | } |
| 155 | |
| 156 | int kvm_s390_assign_subch_ioeventfd(EventNotifier *notifier, uint32_t sch, |
| 157 | int vq, bool assign) |
| 158 | { |
| 159 | g_assert_not_reached(); |
| 160 | } |
| 161 | |
| 162 | void kvm_s390_cmma_reset(void) |
| 163 | { |
| 164 | g_assert_not_reached(); |
| 165 | } |
| 166 | |
| 167 | void kvm_s390_crypto_reset(void) |
| 168 | { |
| 169 | g_assert_not_reached(); |
| 170 | } |
| 171 | |
| 172 | void kvm_s390_set_diag318(CPUState *cs, uint64_t diag318_info) |
| 173 | { |
| 174 | g_assert_not_reached(); |
| 175 | } |
| 176 | |
| 177 | int kvm_s390_topology_set_mtcr(uint64_t attr) |
| 178 | { |
| 179 | g_assert_not_reached(); |
| 180 | } |