Christian Borntraeger b1685ab9bd s390/cpumf: Improve guest detection heuristics
commit e22cf8ca6f75 ("s390/cpumf: rework program parameter setting
to detect guest samples") requires guest changes to get proper
guest/host. We can do better: We can use the primary asn value,
which is set on all Linux variants to compare this with the host
pp value.
We now have the following cases:
1. Guest using PP
host sample:  gpp == 0, asn == hpp --> host
guest sample: gpp != 0 --> guest
2. Guest not using PP
host sample:  gpp == 0, asn == hpp --> host
guest sample: gpp == 0, asn != hpp --> guest

As soon as the host no longer sets CR4, we must back out
this heuristics - let's add a comment in switch_to.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2016-03-02 06:44:28 -06:00
..
2012-05-16 14:42:41 +02:00
2015-06-25 09:39:26 +02:00
2011-01-05 12:47:31 +01:00
2015-03-25 11:49:33 +01:00
2015-10-27 09:33:57 +01:00
2015-03-25 11:49:33 +01:00
2015-03-25 11:49:33 +01:00
2016-02-11 13:05:56 +01:00
2016-01-11 13:01:24 +01:00
2015-03-25 11:49:33 +01:00