[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 3/7] target/s390x: Remove KVM stubs in cpu_models.h
From: |
Zhao Liu |
Subject: |
[PATCH v2 3/7] target/s390x: Remove KVM stubs in cpu_models.h |
Date: |
Thu, 25 Apr 2024 11:12:28 +0800 |
From: Philippe Mathieu-Daudé <philmd@linaro.org>
Since the calls are elided when KVM is not available,
we can remove the stubs (which are never compiled).
Inspired-by: Thomas Huth <thuth@redhat.com>>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
---
target/s390x/cpu_models.h | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/target/s390x/cpu_models.h b/target/s390x/cpu_models.h
index d7b89129891a..a89c2a15ab54 100644
--- a/target/s390x/cpu_models.h
+++ b/target/s390x/cpu_models.h
@@ -114,23 +114,8 @@ static inline uint64_t s390_cpuid_from_cpu_model(const
S390CPUModel *model)
S390CPUDef const *s390_find_cpu_def(uint16_t type, uint8_t gen, uint8_t ec_ga,
S390FeatBitmap features);
-#ifdef CONFIG_KVM
bool kvm_s390_cpu_models_supported(void);
void kvm_s390_get_host_cpu_model(S390CPUModel *model, Error **errp);
void kvm_s390_apply_cpu_model(const S390CPUModel *model, Error **errp);
-#else
-static inline void kvm_s390_get_host_cpu_model(S390CPUModel *model,
- Error **errp)
-{
-}
-static inline void kvm_s390_apply_cpu_model(const S390CPUModel *model,
- Error **errp)
-{
-}
-static inline bool kvm_s390_cpu_models_supported(void)
-{
- return false;
-}
-#endif
#endif /* TARGET_S390X_CPU_MODELS_H */
--
2.34.1
- [PATCH v2 0/7] s390x/cpu_models: Misc cleanup on returned error code and local @err variables, Zhao Liu, 2024/04/24
- [PATCH v2 1/7] target/s390x/cpu_model: Make check_compatibility() return boolean, Zhao Liu, 2024/04/24
- [PATCH v2 2/7] target/s390x/cpu_model: Drop local @err in s390_realize_cpu_model(), Zhao Liu, 2024/04/24
- [PATCH v2 3/7] target/s390x: Remove KVM stubs in cpu_models.h,
Zhao Liu <=
- [PATCH v2 4/7] target/s390x/cpu_models: Make kvm_s390_get_host_cpu_model() return boolean, Zhao Liu, 2024/04/24
- [PATCH v2 5/7] target/s390x/cpu_models: Drop local @err in get_max_cpu_model(), Zhao Liu, 2024/04/24
- [PATCH v2 6/7] target/s390x/cpu_models: Make kvm_s390_apply_cpu_model() return boolean, Zhao Liu, 2024/04/24
- [PATCH v2 7/7] target/s390x/cpu_models_sysemu: Drop local @err in apply_cpu_model(), Zhao Liu, 2024/04/24