Next patch will move s390x system objects from the target specific source set to the common one. Unfortunately the kvm_enabled() macro won't be evaluable at built-time anymore. Add stubs for KVM symbols unreachable at runtime.
Signed-off-by: Philippe Mathieu-Daudé <[email protected]> Acked-by: Thomas Huth <[email protected]> --- target/s390x/kvm/stubs.c | 76 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 75 insertions(+), 1 deletion(-) diff --git a/target/s390x/kvm/stubs.c b/target/s390x/kvm/stubs.c index 046e1f922b7..196127baa51 100644 --- a/target/s390x/kvm/stubs.c +++ b/target/s390x/kvm/stubs.c @@ -4,8 +4,9 @@ #include "qemu/osdep.h" -#include "kvm_s390x.h" +#include "target/s390x/kvm/kvm_s390x.h" #include "target/s390x/kvm/pv.h" +#include "target/s390x/cpu_models.h" int kvm_s390_get_protected_dump(void) { @@ -104,3 +105,76 @@ int kvm_s390_dump_completion_data(void *buff) { return 0; } + +bool kvm_s390_apply_cpu_model(const S390CPUModel *model, Error **errp) +{ + g_assert_not_reached(); +} + +void kvm_s390_access_exception(S390CPU *cpu, uint16_t code, uint64_t te_code) +{ + g_assert_not_reached(); +} + +int kvm_s390_mem_op(S390CPU *cpu, vaddr addr, uint8_t ar, void *hostbuf, + int len, bool is_write) +{ + g_assert_not_reached(); +} + +int kvm_s390_mem_op_pv(S390CPU *cpu, vaddr addr, void *hostbuf, int len, + bool is_write) +{ + g_assert_not_reached(); +} + +int kvm_s390_set_cpu_state(S390CPU *cpu, uint8_t cpu_state) +{ + g_assert_not_reached(); +} + +void kvm_s390_vcpu_interrupt_pre_save(S390CPU *cpu) +{ + g_assert_not_reached(); +} + +int kvm_s390_vcpu_interrupt_post_load(S390CPU *cpu) +{ + g_assert_not_reached(); +} + +int kvm_s390_get_hpage_1m(void) +{ + g_assert_not_reached(); +} + +void kvm_s390_enable_css_support(S390CPU *cpu) +{ + g_assert_not_reached(); +} + +int kvm_s390_assign_subch_ioeventfd(EventNotifier *notifier, uint32_t sch, + int vq, bool assign) +{ + g_assert_not_reached(); +} + +void kvm_s390_cmma_reset(void) +{ + g_assert_not_reached(); +} + +void kvm_s390_crypto_reset(void) +{ + g_assert_not_reached(); +} + +void kvm_s390_set_diag318(CPUState *cs, uint64_t diag318_info) +{ + g_assert_not_reached(); +} + +int kvm_s390_topology_set_mtcr(uint64_t attr) +{ + g_assert_not_reached(); +} -- 2.52.0
