From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 959BAA00C2; Fri, 1 Jul 2022 09:57:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 876D24069D; Fri, 1 Jul 2022 09:57:23 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 4AA5640150 for ; Fri, 1 Jul 2022 09:57:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1656662241; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xeK+LZqS6jiVH/GCgmGXqz1+EzBr7QyzLIrWASVNmuc=; b=YlrevReaS/35pyaO3DZuD1/PjTJ00wRG+khMqaYyHAxz8IEpWBsNJrmXm2cdVscaV+ojl8 RQfg3uuHX0Z9KJzAj9anwXEYUdc+rvB7OepwUbgUFZr8SE9PpUINNuqly+7HSz/EjBgWON kTbCwxODJKoCFeqzYdZEeZ+Kqtd6IdY= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-393-t4Z3_i5fM1CCmtNJpzk_4g-1; Fri, 01 Jul 2022 03:57:20 -0400 X-MC-Unique: t4Z3_i5fM1CCmtNJpzk_4g-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4CDE81C04B74; Fri, 1 Jul 2022 07:57:20 +0000 (UTC) Received: from fchome.redhat.com (unknown [10.40.194.174]) by smtp.corp.redhat.com (Postfix) with ESMTP id 802722166B26; Fri, 1 Jul 2022 07:57:19 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: maxime.coquelin@redhat.com, chenbo.xia@intel.com Subject: [PATCH v2 0/4] Vhost logs fixes and improvement Date: Fri, 1 Jul 2022 09:55:07 +0200 Message-Id: <20220701075511.2176198-1-david.marchand@redhat.com> In-Reply-To: <20220627092728.78214-1-david.marchand@redhat.com> References: <20220627092728.78214-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Here is a series that fixes log messages (with one regression being fixed in patch 2) and changes the VHOST_LOG_* helpers to enforce that vhost log messages will always have some context/prefix to help debugging on setups with many vhost ports. The first three patches are low risk and can probably be merged in v22.07. Changes since v1: - fixed log formats in patch4, -- David Marchand David Marchand (4): vhost: add some trailing newline in log messages vhost: restore device information in log messages vhost: improve some datapath log messages vhost: prefix logs with context lib/vhost/iotlb.c | 30 +- lib/vhost/socket.c | 129 ++++----- lib/vhost/vdpa.c | 4 +- lib/vhost/vhost.c | 144 +++++----- lib/vhost/vhost.h | 20 +- lib/vhost/vhost_user.c | 639 +++++++++++++++++++++-------------------- lib/vhost/virtio_net.c | 258 +++++++++-------- 7 files changed, 634 insertions(+), 590 deletions(-) -- 2.36.1