public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
From: Cornelia Huck <cohuck@redhat.com>
To: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: KVM <kvm@vger.kernel.org>,
	linux-s390 <linux-s390@vger.kernel.org>,
	Janosch Frank <frankja@linux.vnet.ibm.com>,
	David Hildenbrand <david@redhat.com>
Subject: Re: [PATCH v2] KVM: s390: add vcpu stat counters for many instruction
Date: Wed, 24 Jan 2018 17:15:26 +0100	[thread overview]
Message-ID: <20180124171526.76598068.cohuck@redhat.com> (raw)
In-Reply-To: <20180124155054.9477-1-borntraeger@de.ibm.com>

On Wed, 24 Jan 2018 16:50:54 +0100
Christian Borntraeger <borntraeger@de.ibm.com> wrote:

> The overall instruction counter is larger than the sum of the
> single counters. We should try to catch all instruction handlers
> to make this match the summary counter.
> Let us add sck,tb,sske,iske,rrbe,tb,tpi,tsch,lpsw,pswe....
> and remove other unused ones.

This is rebased on top of the diagnose patch, right?

> 
> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
> Acked-by: Janosch Frank <frankja@linux.vnet.ibm.com>
> Reviewed-by: David Hildenbrand <david@redhat.com>
> ---
>  arch/s390/include/asm/kvm_host.h | 21 +++++++++++++++++----
>  arch/s390/kvm/diag.c             |  1 +
>  arch/s390/kvm/kvm-s390.c         | 21 +++++++++++++++++----
>  arch/s390/kvm/priv.c             | 32 ++++++++++++++++++++++++++++++--
>  4 files changed, 65 insertions(+), 10 deletions(-)
> 

> @@ -527,6 +544,7 @@ static int handle_io_inst(struct kvm_vcpu *vcpu)
>  		if (vcpu->arch.sie_block->ipa == 0xb235)
>  			return handle_tsch(vcpu);
>  		/* Handle in userspace. */
> +		vcpu->stat.instruction_io_other++;
>  		return -EOPNOTSUPP;
>  	} else {
>  		/*

As an aside, we don't count I/O instructions if userspace did not
enable css support. But nobody does that with modern kernels anyway :)

Reviewed-by: Cornelia Huck <cohuck@redhat.com>

  reply	other threads:[~2018-01-24 16:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-24 15:50 [PATCH v2] KVM: s390: add vcpu stat counters for many instruction Christian Borntraeger
2018-01-24 16:15 ` Cornelia Huck [this message]
2018-01-24 16:18   ` Christian Borntraeger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180124171526.76598068.cohuck@redhat.com \
    --to=cohuck@redhat.com \
    --cc=borntraeger@de.ibm.com \
    --cc=david@redhat.com \
    --cc=frankja@linux.vnet.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox