[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [Patch v3 22/30] s390x/kvm: disable host model for problema
From: |
David Hildenbrand |
Subject: |
[Qemu-devel] [Patch v3 22/30] s390x/kvm: disable host model for problematic compat machines |
Date: |
Wed, 24 Aug 2016 20:10:58 +0200 |
Compatibility machines that touch runtime-instrumentation should not
be used with the CPU model. Otherwise the host model will look different,
depending on the QEMU machine QEMU has been started with.
So let's simply disable the host model for existing compatibility machines
that all disable ri. This, in return, disables the CPU model for these
compat machines completely.
Acked-by: Cornelia Huck <address@hidden>
Signed-off-by: David Hildenbrand <address@hidden>
---
target-s390x/kvm.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c
index 2cc0357..3c0929b 100644
--- a/target-s390x/kvm.c
+++ b/target-s390x/kvm.c
@@ -2451,6 +2451,10 @@ static int configure_cpu_feat(const S390FeatBitmap
features)
bool kvm_s390_cpu_models_supported(void)
{
+ if (!ri_allowed()) {
+ /* compatibility machines interfere with the cpu model */
+ return false;
+ }
return kvm_vm_check_attr(kvm_state, KVM_S390_VM_CPU_MODEL,
KVM_S390_VM_CPU_MACHINE) &&
kvm_vm_check_attr(kvm_state, KVM_S390_VM_CPU_MODEL,
--
2.6.6
- [Qemu-devel] [Patch v3 23/30] s390x/kvm: let the CPU model control CMM(A), (continued)
- [Qemu-devel] [Patch v3 23/30] s390x/kvm: let the CPU model control CMM(A), David Hildenbrand, 2016/08/24
- [Qemu-devel] [Patch v3 15/30] s390x/sclp: indicate sclp features, David Hildenbrand, 2016/08/24
- [Qemu-devel] [Patch v3 19/30] linux-headers: update against kvm/next, David Hildenbrand, 2016/08/24
- [Qemu-devel] [Patch v3 05/30] s390x/cpumodel: generate CPU feature lists for CPU models, David Hildenbrand, 2016/08/24
- [Qemu-devel] [Patch v3 14/30] s390x/sclp: introduce sclp feature blocks, David Hildenbrand, 2016/08/24
- [Qemu-devel] [Patch v3 10/30] s390x/cpumodel: expose features and feature groups as properties, David Hildenbrand, 2016/08/24
- [Qemu-devel] [Patch v3 07/30] s390x/cpumodel: introduce CPU feature group definitions, David Hildenbrand, 2016/08/24
- [Qemu-devel] [Patch v3 04/30] s390x/cpumodel: introduce CPU features, David Hildenbrand, 2016/08/24
- [Qemu-devel] [Patch v3 12/30] s390x/cpumodel: check and apply the CPU model, David Hildenbrand, 2016/08/24
- [Qemu-devel] [Patch v3 13/30] s390x/sclp: factor out preparation of cpu entries, David Hildenbrand, 2016/08/24
- [Qemu-devel] [Patch v3 22/30] s390x/kvm: disable host model for problematic compat machines,
David Hildenbrand <=
- [Qemu-devel] [Patch v3 02/30] s390x/cpumodel: "host" and "qemu" as CPU subclasses, David Hildenbrand, 2016/08/24
- [Qemu-devel] [Patch v3 28/30] s390x/cpumodel: implement QMP interface "query-cpu-model-expansion", David Hildenbrand, 2016/08/24
- [Qemu-devel] [Patch v3 29/30] s390x/cpumodel: implement QMP interface "query-cpu-model-comparison", David Hildenbrand, 2016/08/24
- [Qemu-devel] [Patch v3 17/30] s390x/sclp: propagate the mha via sclp, David Hildenbrand, 2016/08/24
- [Qemu-devel] [Patch v3 11/30] s390x/cpumodel: let the CPU model handle feature checks, David Hildenbrand, 2016/08/24
- [Qemu-devel] [Patch v3 30/30] s390x/cpumodel: implement QMP interface "query-cpu-model-baseline", David Hildenbrand, 2016/08/24
- [Qemu-devel] [Patch v3 03/30] s390x/cpumodel: expose CPU class properties, David Hildenbrand, 2016/08/24
- [Qemu-devel] [Patch v3 18/30] s390x/sclp: propagate hmfai, David Hildenbrand, 2016/08/24
- [Qemu-devel] [Patch v3 08/30] s390x/cpumodel: register defined CPU models as subclasses, David Hildenbrand, 2016/08/24
- [Qemu-devel] [Patch v3 27/30] qmp: add QMP interface "query-cpu-model-baseline", David Hildenbrand, 2016/08/24