mirror of https://github.com/xemu-project/xemu.git
s390x/kvm: allow runtime-instrumentation for "none" machine
To be able to query the correct host model for the "none" machine, let's allow runtime-instrumentation for that machine. Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Message-Id: <20160905085244.99980-21-dahi@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
This commit is contained in:
parent
a366930780
commit
392529cb77
|
@ -249,6 +249,11 @@ bool ri_allowed(void)
|
||||||
|
|
||||||
return s390mc->ri_allowed;
|
return s390mc->ri_allowed;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
* Make sure the "none" machine can have ri, otherwise it won't * be
|
||||||
|
* unlocked in KVM and therefore the host CPU model might be wrong.
|
||||||
|
*/
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue