diff options
author | David Hildenbrand <dahi@linux.vnet.ibm.com> | 2014-03-14 06:00:21 -0400 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2014-04-29 09:01:54 -0400 |
commit | 8ad357551797b1edc184fb9f6a4f80a6fa626459 (patch) | |
tree | 3700cdc96803f5be483cd79453b240c73b522f3a /arch/s390/kvm/trace-s390.h | |
parent | 6852d7b69b4949234c3a8ae1f279f6a4c6563662 (diff) |
KVM: s390: enable IBS for single running VCPUs
This patch enables the IBS facility when a single VCPU is running.
The facility is dynamically turned on/off as soon as other VCPUs
enter/leave the stopped state.
When this facility is operating, some instructions can be executed
faster for single-cpu guests.
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Reviewed-by: Dominik Dingel <dingel@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 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/s390/kvm/trace-s390.h b/arch/s390/kvm/trace-s390.h index 34d4f8af3a1d..647e9d6a4818 100644 --- a/arch/s390/kvm/trace-s390.h +++ b/arch/s390/kvm/trace-s390.h | |||
@@ -244,6 +244,28 @@ TRACE_EVENT(kvm_s390_enable_css, | |||
244 | __entry->kvm) | 244 | __entry->kvm) |
245 | ); | 245 | ); |
246 | 246 | ||
247 | /* | ||
248 | * Trace point for enabling and disabling interlocking-and-broadcasting | ||
249 | * suppression. | ||
250 | */ | ||
251 | TRACE_EVENT(kvm_s390_enable_disable_ibs, | ||
252 | TP_PROTO(unsigned int id, int state), | ||
253 | TP_ARGS(id, state), | ||
254 | |||
255 | TP_STRUCT__entry( | ||
256 | __field(unsigned int, id) | ||
257 | __field(int, state) | ||
258 | ), | ||
259 | |||
260 | TP_fast_assign( | ||
261 | __entry->id = id; | ||
262 | __entry->state = state; | ||
263 | ), | ||
264 | |||
265 | TP_printk("%s ibs on cpu %d", | ||
266 | __entry->state ? "enabling" : "disabling", __entry->id) | ||
267 | ); | ||
268 | |||
247 | 269 | ||
248 | #endif /* _TRACE_KVMS390_H */ | 270 | #endif /* _TRACE_KVMS390_H */ |
249 | 271 | ||