From nobody Sat Nov 8 06:04:36 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1549985564560388.06731044180106; Tue, 12 Feb 2019 07:32:44 -0800 (PST) Received: from localhost ([127.0.0.1]:41372 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gta2z-00053L-KC for importer@patchew.org; Tue, 12 Feb 2019 10:32:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gta1N-0004Ks-8X for qemu-devel@nongnu.org; Tue, 12 Feb 2019 10:30:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gta16-0006yH-NL for qemu-devel@nongnu.org; Tue, 12 Feb 2019 10:30:41 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55394) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gta14-0006r4-D2; Tue, 12 Feb 2019 10:30:34 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 40D1C80F95; Tue, 12 Feb 2019 15:30:31 +0000 (UTC) Received: from localhost (dhcp-192-213.str.redhat.com [10.33.192.213]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9C4D310021B1; Tue, 12 Feb 2019 15:30:28 +0000 (UTC) From: Cornelia Huck To: Halil Pasic , Christian Borntraeger , Richard Henderson , David Hildenbrand Date: Tue, 12 Feb 2019 16:30:25 +0100 Message-Id: <20190212153025.25425-1-cohuck@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Tue, 12 Feb 2019 15:30:31 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH] s390x/kvm: add tracepoint to ioeventfd interface X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-s390x@nongnu.org, Cornelia Huck , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Trace when assigning/unassigning. Signed-off-by: Cornelia Huck Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/s390x/kvm.c | 2 ++ target/s390x/trace-events | 1 + 2 files changed, 3 insertions(+) diff --git a/target/s390x/kvm.c b/target/s390x/kvm.c index 15fdc168e1c5..7d61bd109092 100644 --- a/target/s390x/kvm.c +++ b/target/s390x/kvm.c @@ -1886,6 +1886,8 @@ int kvm_s390_assign_subch_ioeventfd(EventNotifier *no= tifier, uint32_t sch, .addr =3D sch, .len =3D 8, }; + trace_kvm_s390_assign_subch_ioeventfd(kick.fd, kick.addr, assign, + kick.datamatch); if (!kvm_check_extension(kvm_state, KVM_CAP_IOEVENTFD)) { return -ENOSYS; } diff --git a/target/s390x/trace-events b/target/s390x/trace-events index a84e316e4937..bdc22f42cdbb 100644 --- a/target/s390x/trace-events +++ b/target/s390x/trace-events @@ -14,6 +14,7 @@ ioinst_chsc_cmd(uint16_t cmd, uint16_t len) "IOINST: chsc= command 0x%04x, len 0x kvm_enable_cmma(int rc) "CMMA: enabling with result code %d" kvm_clear_cmma(int rc) "CMMA: clearing with result code %d" kvm_failed_cpu_state_set(int cpu_index, uint8_t state, const char *msg) "W= arning: Unable to set cpu %d state %" PRIu8 " to KVM: %s" +kvm_s390_assign_subch_ioeventfd(int fd, uint32_t addr, bool assign, int da= tamatch) "fd: %d sch: @0x%x assign: %d vq: %d" =20 # target/s390x/cpu.c cpu_set_state(int cpu_index, uint8_t state) "setting cpu %d state to %" PR= Iu8 --=20 2.17.2