From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj30R-0005SF-2u for qemu-devel@nongnu.org; Mon, 05 Oct 2015 06:28:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zj30N-0000zI-3r for qemu-devel@nongnu.org; Mon, 05 Oct 2015 06:28:31 -0400 Received: from lhrrgout.huawei.com ([194.213.3.17]:6510) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj30M-0000zE-RM for qemu-devel@nongnu.org; Mon, 05 Oct 2015 06:28:27 -0400 References: <1443812991-17356-1-git-send-email-marcandre.lureau@redhat.com> <1443812991-17356-18-git-send-email-marcandre.lureau@redhat.com> From: Claudio Fontana Message-ID: <561250C6.2090602@huawei.com> Date: Mon, 5 Oct 2015 12:28:22 +0200 MIME-Version: 1.0 In-Reply-To: <1443812991-17356-18-git-send-email-marcandre.lureau@redhat.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v5 17/48] ivshmem: improve debug messages List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: marcandre.lureau@redhat.com, qemu-devel@nongnu.org Cc: pbonzini@redhat.com, drjones@redhat.com, cam@cs.ualberta.ca, stefanha@redhat.com On 02.10.2015 21:09, marcandre.lureau@redhat.com wrote: > From: Marc-André Lureau > > Some misc improvements to ivshmem debug. > > Signed-off-by: Marc-André Lureau Reviewed-by: Claudio Fontana > --- > 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 c4c130d..50f9c8f 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("%s, msix present: %d\n", __func__, msix_present(d)); > if (!msix_present(d)) { > return; > } >