OSDN Git Service

KVM: s390: Add debug logging to basic cpu model interface
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 18 Jan 2017 15:01:02 +0000 (16:01 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 30 Jan 2017 10:19:46 +0000 (11:19 +0100)
commita8c39dd77cb9fad0d0e5c5e6581851bdcbc1e6f6
tree69543e0fcd101139faeef7b6249a61b8bd382db1
parentaf0f339a6c18468421a67f361a60f14bc5144345
KVM: s390: Add debug logging to basic cpu model interface

Let's log something for changes in facilities, cpuid and ibc now that we
have a cpu model in QEMU. All of these calls are pretty seldom, so we
will not spill the log, the they will help to understand pontential
guest issues, for example if some instructions are fenced off.

As the s390 debug feature has a limited amount of parameters and
strings must not go away we limit the facility printing to 3 double
words, instead of building that list dynamically. This should be enough
for several years. If we ever exceed 3 double words then the logging
will be incomplete but no functional impact will happen.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c