From patchwork Tue Jul 28 00:32:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= X-Patchwork-Id: 500967 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id AFCFF1402BA for ; Tue, 28 Jul 2015 10:43:33 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=1AgZqvZQ; dkim-atps=neutral Received: from localhost ([::1]:56428 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJszT-0000EA-RC for incoming@patchwork.ozlabs.org; Mon, 27 Jul 2015 20:43:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJsqP-00086j-9t for qemu-devel@nongnu.org; Mon, 27 Jul 2015 20:34:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZJsqO-0005Nc-BE for qemu-devel@nongnu.org; Mon, 27 Jul 2015 20:34:09 -0400 Received: from mail-qg0-x22b.google.com ([2607:f8b0:400d:c04::22b]:34670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJsqO-0005NY-88 for qemu-devel@nongnu.org; Mon, 27 Jul 2015 20:34:08 -0400 Received: by qgeu79 with SMTP id u79so64801988qge.1 for ; Mon, 27 Jul 2015 17:34:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=TUcEUNWJ2qNBLsietgsGv2akhEDFFOunQ1jCWgufjlU=; b=1AgZqvZQqRztwyJL17YZV7UvawjQQb7s6MwohZ0/r0ep6idgh3a6RK1P+Ck0DJ2eR/ iYL49gZcakNfH12hKb2sJkb1paG2iwippDEHQTR3JX4T5lDxuo17fyoi2MGNkQuymh9+ VD+pzIoz4L3gpPHcqrwgnaEBOLGsJAiA8bLpSS4VYRXJc16d7nsUKMTLfoKOVf12TjWc EEsH9Qyk8nVhSPpn/iCianfaXDVciqYW349mjmJtMXqUFg+sdHL3H9Gn9wvi7og9SlnR f1eUuj528ugqyieXE7VuswgfpG5TSqiXn5J473JZtUipLFHynOmI4v9klBX4WJj5Jc5c NIkw== X-Received: by 10.140.81.16 with SMTP id e16mr44882937qgd.75.1438043647996; Mon, 27 Jul 2015 17:34:07 -0700 (PDT) Received: from localhost (APoitiers-257-1-37-212.w90-38.abo.wanadoo.fr. [90.38.212.212]) by smtp.gmail.com with ESMTPSA id e60sm10284946qge.14.2015.07.27.17.34.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jul 2015 17:34:06 -0700 (PDT) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= To: qemu-devel@nongnu.org Date: Tue, 28 Jul 2015 02:32:27 +0200 Message-Id: <1438043577-28636-16-git-send-email-marcandre.lureau@redhat.com> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1438043577-28636-1-git-send-email-marcandre.lureau@redhat.com> References: <1438043577-28636-1-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c04::22b Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , drjones@redhat.com, cam@cs.ualberta.ca, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , stefanha@redhat.com Subject: [Qemu-devel] [PATCH v2 15/45] ivshmem: improve debug messages X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Marc-André Lureau Some misc improvements to ivshmem debug. Signed-off-by: Marc-André Lureau --- hw/misc/ivshmem.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c index 4958307..0cc5682 100644 --- a/hw/misc/ivshmem.c +++ b/hw/misc/ivshmem.c @@ -208,10 +208,13 @@ static void ivshmem_io_write(void *opaque, hwaddr addr, if (vector < s->peers[dest].nb_eventfds) { IVSHMEM_DPRINTF("Notifying VM %d on vector %d\n", dest, vector); event_notifier_set(&s->peers[dest].eventfds[vector]); + } else { + IVSHMEM_DPRINTF("Invalid destination vector %d on VM %d\n", + vector, dest); } break; default: - IVSHMEM_DPRINTF("Invalid VM Doorbell VM %d\n", dest); + IVSHMEM_DPRINTF("Unhandled write " TARGET_FMT_plx "\n", addr); } } @@ -263,9 +266,9 @@ static void ivshmem_receive(void *opaque, const uint8_t *buf, int size) { IVShmemState *s = opaque; - ivshmem_IntrStatus_write(s, *buf); + IVSHMEM_DPRINTF("ivshmem_receive 0x%02x size: %d\n", *buf, size); - IVSHMEM_DPRINTF("ivshmem_receive 0x%02x\n", *buf); + ivshmem_IntrStatus_write(s, *buf); } static int ivshmem_can_receive(void * opaque) @@ -592,6 +595,7 @@ static void ivshmem_use_msix(IVShmemState * s) PCIDevice *d = PCI_DEVICE(s); int i; + IVSHMEM_DPRINTF("use msix\n"); if (!msix_present(d)) { return; }