diff options
author | David Hildenbrand <dahi@linux.vnet.ibm.com> | 2014-03-14 10:59:29 +0100 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2014-04-29 15:01:54 +0200 |
commit | 6852d7b69b4949234c3a8ae1f279f6a4c6563662 (patch) | |
tree | 1fc932ccffef93c90918d435b1269b4f2e76a053 /arch/s390/kvm/trace-s390.h | |
parent | e45efa28e578758d3c5ef0d7d3f88aadb9a61515 (diff) | |
download | op-kernel-dev-6852d7b69b4949234c3a8ae1f279f6a4c6563662.zip op-kernel-dev-6852d7b69b4949234c3a8ae1f279f6a4c6563662.tar.gz |
KVM: s390: introduce kvm_s390_vcpu_{start,stop}
This patch introduces two new functions to set/clear the CPUSTAT_STOPPED bit and
makes use of it at all applicable places. These functions prepare the additional
execution of code when starting/stopping a vcpu.
The CPUSTAT_STOPPED bit should not be touched outside of these functions.
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390/kvm/trace-s390.h')
-rw-r--r-- | arch/s390/kvm/trace-s390.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/s390/kvm/trace-s390.h b/arch/s390/kvm/trace-s390.h index 13f30f5..34d4f8a 100644 --- a/arch/s390/kvm/trace-s390.h +++ b/arch/s390/kvm/trace-s390.h @@ -68,6 +68,27 @@ TRACE_EVENT(kvm_s390_destroy_vcpu, ); /* + * Trace point for start and stop of vpcus. + */ +TRACE_EVENT(kvm_s390_vcpu_start_stop, + TP_PROTO(unsigned int id, int state), + TP_ARGS(id, state), + + TP_STRUCT__entry( + __field(unsigned int, id) + __field(int, state) + ), + + TP_fast_assign( + __entry->id = id; + __entry->state = state; + ), + + TP_printk("%s cpu %d", __entry->state ? "starting" : "stopping", + __entry->id) + ); + +/* * Trace points for injection of interrupts, either per machine or * per vcpu. */ |