- target/arm: Fix kvm probe of ID_AA64ZFR0 - migration: report migration/multiFd related thread pid to libvirt - vhost_net: keep acked_feature only for NET_CLIENT_DRIVER_VHOST_USER Signed-off-by: yezengruan <yezengruan@huawei.com> (cherry picked from commit 2d46526fa69b16614ac095e5d2b11ae4e06649cf)
35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
From 110206cee2cf58b6ce4119e230b142192f7b52ac Mon Sep 17 00:00:00 2001
|
|
From: Richard Henderson <richard.henderson@linaro.org>
|
|
Date: Mon, 1 Aug 2022 16:21:17 +0100
|
|
Subject: [PATCH 1/5] target/arm: Use kvm_arm_sve_supported in
|
|
kvm_arm_get_host_cpu_features
|
|
|
|
Indication for support for SVE will not depend on whether we
|
|
perform the query on the main kvm_state or the temp vcpu.
|
|
|
|
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
|
|
Message-id: 20220726045828.53697-2-richard.henderson@linaro.org
|
|
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
|
|
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
|
|
Signed-off-by: Kunkun Jiang <jiangkunkun@huawei.com>
|
|
---
|
|
target/arm/kvm64.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/target/arm/kvm64.c b/target/arm/kvm64.c
|
|
index b34a87fd24..b7e34a4580 100644
|
|
--- a/target/arm/kvm64.c
|
|
+++ b/target/arm/kvm64.c
|
|
@@ -648,7 +648,7 @@ bool kvm_arm_get_host_cpu_features(ARMHostCPUFeatures *ahcf)
|
|
}
|
|
}
|
|
|
|
- sve_supported = ioctl(fdarray[0], KVM_CHECK_EXTENSION, KVM_CAP_ARM_SVE) > 0;
|
|
+ sve_supported = kvm_arm_sve_supported();
|
|
|
|
/* Add feature bits that can't appear until after VCPU init. */
|
|
if (sve_supported) {
|
|
--
|
|
2.27.0
|
|
|