[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/7] target/i386/kvm: Simplify get_para_features()
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 5/7] target/i386/kvm: Simplify get_para_features() |
Date: |
Tue, 23 Jun 2020 12:50:50 +0200 |
The KVMState* argument is now unused, drop it.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
target/i386/kvm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/i386/kvm.c b/target/i386/kvm.c
index 03df6ac3b4..19d3db657a 100644
--- a/target/i386/kvm.c
+++ b/target/i386/kvm.c
@@ -289,7 +289,7 @@ static const struct kvm_para_features {
{ KVM_CAP_ASYNC_PF, KVM_FEATURE_ASYNC_PF },
};
-static int get_para_features(KVMState *s)
+static int get_para_features(void)
{
int i, features = 0;
@@ -452,7 +452,7 @@ uint32_t kvm_arch_get_supported_cpuid(KVMState *s, uint32_t
function,
/* fallback for older kernels */
if ((function == KVM_CPUID_FEATURES) && !found) {
- ret = get_para_features(s);
+ ret = get_para_features();
}
return ret;
--
2.21.3
- [PATCH 0/7] accel/kvm: Simplify few functions that can use global kvm_state, Philippe Mathieu-Daudé, 2020/06/23
- [PATCH 1/7] accel/kvm: Let kvm_check_extension use global KVM state, Philippe Mathieu-Daudé, 2020/06/23
- [PATCH 2/7] accel/kvm: Simplify kvm_check_extension(), Philippe Mathieu-Daudé, 2020/06/23
- [PATCH 3/7] accel/kvm: Simplify kvm_check_extension_list(), Philippe Mathieu-Daudé, 2020/06/23
- [RFC PATCH 4/7] accel/kvm: Simplify kvm_set_sigmask_len(), Philippe Mathieu-Daudé, 2020/06/23
- [PATCH 5/7] target/i386/kvm: Simplify get_para_features(),
Philippe Mathieu-Daudé <=
- [RFC PATCH 6/7] target/i386/kvm: Simplify kvm_get_mce_cap_supported(), Philippe Mathieu-Daudé, 2020/06/23
- [RFC PATCH 7/7] target/i386/kvm: Simplify kvm_get_supported_[feature]_msrs(), Philippe Mathieu-Daudé, 2020/06/23