[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [Patch v2 22/29] s390x/kvm: disable host model for existing
From: |
David Hildenbrand |
Subject: |
[Qemu-devel] [Patch v2 22/29] s390x/kvm: disable host model for existing compat machines |
Date: |
Mon, 8 Aug 2016 17:32:51 +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.
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 v2 20/29] s390x/kvm: allow runtime-instrumentation for "none" machine, (continued)
- [Qemu-devel] [Patch v2 20/29] s390x/kvm: allow runtime-instrumentation for "none" machine, David Hildenbrand, 2016/08/08
- [Qemu-devel] [Patch v2 28/29] s390x/cpumodel: implement QMP interface "query-cpu-model-comparison", David Hildenbrand, 2016/08/08
- [Qemu-devel] [Patch v2 23/29] s390x/kvm: let the CPU model control CMM(A), David Hildenbrand, 2016/08/08
- [Qemu-devel] [Patch v2 27/29] s390x/cpumodel: implement QMP interface "query-cpu-model-expansion", David Hildenbrand, 2016/08/08
- [Qemu-devel] [Patch v2 14/29] s390x/sclp: introduce sclp feature blocks, David Hildenbrand, 2016/08/08
- [Qemu-devel] [Patch v2 16/29] s390x/sclp: propagate the ibc val(lowest and unblocked ibc), David Hildenbrand, 2016/08/08
- [Qemu-devel] [Patch v2 19/29] linux-headers: update against kvm/next, David Hildenbrand, 2016/08/08
- [Qemu-devel] [Patch v2 13/29] s390x/sclp: factor out preparation of cpu entries, David Hildenbrand, 2016/08/08
- [Qemu-devel] [Patch v2 09/29] s390x/cpumodel: store the CPU model in the CPU instance, David Hildenbrand, 2016/08/08
- [Qemu-devel] [Patch v2 21/29] s390x/kvm: implement CPU model support, David Hildenbrand, 2016/08/08
- [Qemu-devel] [Patch v2 22/29] s390x/kvm: disable host model for existing compat machines,
David Hildenbrand <=
- [Qemu-devel] [Patch v2 25/29] qmp: add QMP interface "query-cpu-model-comparison", David Hildenbrand, 2016/08/08
- Re: [Qemu-devel] [Patch v2 00/29] s390x CPU models: exposing features, no-reply, 2016/08/08
- Message not available
- Message not available
- Re: [Qemu-devel] [Patch v2 00/29] s390x CPU models: exposing features, David Hildenbrand, 2016/08/15