[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v7 13/13] s390x: topology: activating CPU topology
From: |
Pierre Morel |
Subject: |
[PATCH v7 13/13] s390x: topology: activating CPU topology |
Date: |
Wed, 20 Apr 2022 13:57:45 +0200 |
Signed-off-by: Pierre Morel <pmorel@linux.ibm.com>
---
target/s390x/kvm/kvm.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/target/s390x/kvm/kvm.c b/target/s390x/kvm/kvm.c
index 17f426864b..cae37cddc3 100644
--- a/target/s390x/kvm/kvm.c
+++ b/target/s390x/kvm/kvm.c
@@ -366,6 +366,7 @@ int kvm_arch_init(MachineState *ms, KVMState *s)
kvm_vm_enable_cap(s, KVM_CAP_S390_USER_SIGP, 0);
kvm_vm_enable_cap(s, KVM_CAP_S390_VECTOR_REGISTERS, 0);
kvm_vm_enable_cap(s, KVM_CAP_S390_USER_STSI, 0);
+ kvm_vm_enable_cap(s, KVM_CAP_S390_CPU_TOPOLOGY, 0);
if (ri_allowed()) {
if (kvm_vm_enable_cap(s, KVM_CAP_S390_RI, 0) == 0) {
cap_ri = 1;
@@ -2460,6 +2461,14 @@ void kvm_s390_get_host_cpu_model(S390CPUModel *model,
Error **errp)
set_bit(S390_FEAT_UNPACK, model->features);
}
+ /*
+ * If we have the CPU Topology implemented in KVM activate
+ * the CPU TOPOLOGY feature.
+ */
+ if (kvm_check_extension(kvm_state, KVM_CAP_S390_CPU_TOPOLOGY)) {
+ set_bit(S390_FEAT_CONFIGURATION_TOPOLOGY, model->features);
+ }
+
/* We emulate a zPCI bus and AEN, therefore we don't need HW support */
set_bit(S390_FEAT_ZPCI, model->features);
set_bit(S390_FEAT_ADAPTER_EVENT_NOTIFICATION, model->features);
--
2.27.0
- [PATCH v7 02/13] vfio: tolerate migration protocol v1 uapi renames, (continued)
- [PATCH v7 02/13] vfio: tolerate migration protocol v1 uapi renames, Pierre Morel, 2022/04/20
- [PATCH v7 01/13] Update linux headers, Pierre Morel, 2022/04/20
- [PATCH v7 03/13] s390x: topology: CPU topology objects and structures, Pierre Morel, 2022/04/20
- [PATCH v7 09/13] s390x: topology: implementing numa for the s390x topology, Pierre Morel, 2022/04/20
- [PATCH v7 11/13] s390x: topology: resetting the Topology-Change-Report, Pierre Morel, 2022/04/20
- [PATCH v7 08/13] s390x: topology: Adding drawers to STSI, Pierre Morel, 2022/04/20
- [PATCH v7 10/13] s390x: kvm: topology: interception of PTF instruction, Pierre Morel, 2022/04/20
- [PATCH v7 06/13] s390x: topology: Adding books to STSI, Pierre Morel, 2022/04/20
- [PATCH v7 04/13] s390x: topology: implementating Store Topology System Information, Pierre Morel, 2022/04/20
- [PATCH v7 07/13] s390x: topology: Adding drawers to CPU topology, Pierre Morel, 2022/04/20
- [PATCH v7 13/13] s390x: topology: activating CPU topology,
Pierre Morel <=
- [PATCH v7 12/13] s390x: CPU topology: CPU topology migration, Pierre Morel, 2022/04/20
- [PATCH v7 05/13] s390x: topology: Adding books to CPU topology, Pierre Morel, 2022/04/20