[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 17/17] target/s390x: Remove KVM stubs in cpu_models.h
|
From: |
Thomas Huth |
|
Subject: |
[PULL 17/17] target/s390x: Remove KVM stubs in cpu_models.h |
|
Date: |
Wed, 24 Apr 2024 09:57:35 +0200 |
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).
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240419090631.48055-1-philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.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 d7b8912989..a89c2a15ab 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.44.0
- [PULL 07/17] .travis.yml: Update the jobs to Ubuntu 22.04, (continued)
- [PULL 07/17] .travis.yml: Update the jobs to Ubuntu 22.04, Thomas Huth, 2024/04/24
- [PULL 09/17] tests: Remove Ubuntu 20.04 container, Thomas Huth, 2024/04/24
- [PULL 11/17] tests/docker/dockerfiles: Run lcitool-refresh after the lcitool update, Thomas Huth, 2024/04/24
- [PULL 12/17] tests: Update our CI to use CentOS Stream 9 instead of 8, Thomas Huth, 2024/04/24
- [PULL 13/17] ci: move external build environment setups to CentOS Stream 9, Thomas Huth, 2024/04/24
- [PULL 14/17] hw/s390x: Include missing 'cpu.h' header, Thomas Huth, 2024/04/24
- [PULL 15/17] docs/devel: fix minor typo in submitting-a-patch.rst, Thomas Huth, 2024/04/24
- [PULL 16/17] tests/unit: Remove debug statements in test-nested-aio-poll.c, Thomas Huth, 2024/04/24
- [PULL 17/17] target/s390x: Remove KVM stubs in cpu_models.h,
Thomas Huth <=
- Re: [PULL 00/17] CI job updates, header cleanups and other misc patches, Richard Henderson, 2024/04/24