From nobody Sun May 5 20:29:31 2024 Delivered-To: importer@patchew.org Received-SPF: temperror (zoho.com: Error in retrieving data from DNS) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=temperror (zoho.com: Error in retrieving data from DNS) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1513310578289204.58805032191333; Thu, 14 Dec 2017 20:02:58 -0800 (PST) Received: from localhost ([::1]:44283 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePhD3-0004w7-LF for importer@patchew.org; Thu, 14 Dec 2017 23:02:53 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePguy-0005t2-Hb for qemu-devel@nongnu.org; Thu, 14 Dec 2017 22:44:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePguv-0005Tr-29 for qemu-devel@nongnu.org; Thu, 14 Dec 2017 22:44:12 -0500 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]:35472) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ePguu-0005TX-UV; Thu, 14 Dec 2017 22:44:09 -0500 Received: by mail-qt0-x242.google.com with SMTP id u10so10640795qtg.2; Thu, 14 Dec 2017 19:44:08 -0800 (PST) Received: from x1.local ([181.91.222.165]) by smtp.gmail.com with ESMTPSA id n3sm3543633qte.14.2017.12.14.19.44.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Dec 2017 19:44:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NPxC3dFVyA7VOxwRxho+OnuY660hRVqp4FzeXDJ/5w4=; b=rJbn6E7rU92Czgc1U/tyvUGkbLKCBJ6Tf9UBfoAX9UUBS0wXtYd/MDefZUDhsui3LR DYlkH7Crn4KlVlisGUDQEXxeZydjnUw5U9XcpEfK6+AJsPbzEBLZ56BtglrYFf43maDu DTqaxee4uHlxkLCZCoSjElUvPmaLzQhQv+0LmDt4fMd4k0ON+SAw/3xRr07q5XQiqIlS 9moGPQDa4vlrDJdJB+x4VuYU+7lS3lNEq5RrGKa/mfgeuJG9BOSvQTnbdRuMLDQGaFHl sdDu//+0tftxxKLmGIaI/XSF/Kzk6Gi6u0mMMqSjaxi3ldM++zpTLet6esb6pygOSLSB pH7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=NPxC3dFVyA7VOxwRxho+OnuY660hRVqp4FzeXDJ/5w4=; b=RUni8xRjKeMRtVEen9CX1LCxEaLJgrxfnw9JGzw5t3whqmfxMkPiMjdTmtoHWGUhTu sxFZpQzar9HuL/aEE4NrHmuh4FBKlRg5own3QaSduVCj4sSLS75cWIjZP/LvxaRGZ6N7 AD4lI0TeQoYfq4tUyohsf2bK91mfS+/BBerOCKq60oP49uFFId/erJPm1HGhZVBxlnOC QzR/qirEv2gsY6Jxf+ljEd/jyrY65ynePWqJQmvGu+7Uo5eueB554kQIMmpcjWeHzQUj tCeJrDTCgUgCqbdA8JqTyRX4ASVQaBvTn14BE1ojYkWLy0JMx3/pthpD9yGeKzbBcBT/ is3w== X-Gm-Message-State: AKGB3mIL9aI9KAqtLk1JGrkZpVwuJiP0VdeolxqYtrVsFLLchNvnbUe9 jG6LXtfBM3+PHLeu5alsW4I= X-Google-Smtp-Source: ACJfBotpqHdW6zOb9QxImbnQz5XiovXpBkhAXm0LNAOBmg30K5CLv3mB7NBE/N04rJAx/57jrvRE2w== X-Received: by 10.237.63.59 with SMTP id p56mr19124159qtf.322.1513309448378; Thu, 14 Dec 2017 19:44:08 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: "Michael S. Tsirkin" , Michael Tokarev Date: Fri, 15 Dec 2017 00:43:55 -0300 Message-Id: <20171215034356.4449-2-f4bug@amsat.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171215034356.4449-1-f4bug@amsat.org> References: <20171215034356.4449-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::242 Subject: [Qemu-devel] [PATCH v5 1/2] hw/i386/vmport: replace fprintf() by trace events 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: Peter Maydell , Thomas Huth , Eduardo Habkost , qemu-trivial@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org, Paolo Bonzini , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_6 Z_629925259 SPT_0 Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/i386/vmport.c | 8 +++----- hw/i386/trace-events | 4 ++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/hw/i386/vmport.c b/hw/i386/vmport.c index eb880c6def..b5585a009a 100644 --- a/hw/i386/vmport.c +++ b/hw/i386/vmport.c @@ -27,8 +27,7 @@ #include "hw/i386/pc.h" #include "sysemu/hw_accel.h" #include "hw/qdev.h" - -/* #define VMPORT_DEBUG */ +#include "trace.h" =20 #define VMPORT_CMD_GETVERSION 0x0a #define VMPORT_CMD_GETRAMSIZE 0x14 @@ -54,6 +53,7 @@ void vmport_register(unsigned char command, VMPortReadFun= c *func, void *opaque) return; } =20 + trace_vmport_register(command, func, opaque); port_state->func[command] =3D func; port_state->opaque[command] =3D opaque; } @@ -80,9 +80,7 @@ static uint64_t vmport_ioport_read(void *opaque, hwaddr a= ddr, return eax; } if (!s->func[command]) { -#ifdef VMPORT_DEBUG - fprintf(stderr, "vmport: unknown command %x\n", command); -#endif + trace_vmport_ioport_read_unknown_command(command, addr); return eax; } =20 diff --git a/hw/i386/trace-events b/hw/i386/trace-events index d43b4b6cd3..150549c15e 100644 --- a/hw/i386/trace-events +++ b/hw/i386/trace-events @@ -113,3 +113,7 @@ amdvi_mode_invalid(uint8_t level, uint64_t addr)"error:= translation level 0x%"PR amdvi_page_fault(uint64_t addr) "error: page fault accessing guest physica= l address 0x%"PRIx64 amdvi_iotlb_hit(uint8_t bus, uint8_t slot, uint8_t func, uint64_t addr, ui= nt64_t txaddr) "hit iotlb devid %02x:%02x.%x gpa 0x%"PRIx64" hpa 0x%"PRIx64 amdvi_translation_result(uint8_t bus, uint8_t slot, uint8_t func, uint64_t= addr, uint64_t txaddr) "devid: %02x:%02x.%x gpa 0x%"PRIx64" hpa 0x%"PRIx64 + +# hw/i386/vmport.c +vmport_register(unsigned char command, void *func, void *opaque) "command:= 0x%02x func: %p opaque: %p" +vmport_ioport_read_unknown_command(unsigned char command, hwaddr addr) "un= known command: 0x%02x addr: 0x%" HWADDR_PRIx --=20 2.15.1 From nobody Sun May 5 20:29:31 2024 Delivered-To: importer@patchew.org Received-SPF: temperror (zoho.com: Error in retrieving data from DNS) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=temperror (zoho.com: Error in retrieving data from DNS) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 151331166643347.822815431961544; Thu, 14 Dec 2017 20:21:06 -0800 (PST) Received: from localhost ([::1]:44393 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePhUP-0001ZV-NG for importer@patchew.org; Thu, 14 Dec 2017 23:20:49 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePgv0-0005ue-Ft for qemu-devel@nongnu.org; Thu, 14 Dec 2017 22:44:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePguz-0005Yc-JV for qemu-devel@nongnu.org; Thu, 14 Dec 2017 22:44:14 -0500 Received: from mail-qt0-x244.google.com ([2607:f8b0:400d:c0d::244]:35474) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ePguz-0005YF-Eb; Thu, 14 Dec 2017 22:44:13 -0500 Received: by mail-qt0-x244.google.com with SMTP id u10so10640921qtg.2; Thu, 14 Dec 2017 19:44:13 -0800 (PST) Received: from x1.local ([181.91.222.165]) by smtp.gmail.com with ESMTPSA id n3sm3543633qte.14.2017.12.14.19.44.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Dec 2017 19:44:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qQySGZRWitYLjldBg/lCrO9TdSWZkl5tDmjIwefvZoc=; b=MpyOyP9M1lVNPOL4ZpfQ4Taim0gqHatQM5z9OrHrGrBzWid6tKn+6yyNQlJ34PmB7J 8YTLwqxWHZmAhqrrlpcNnxqDldedzlXAd70YV78UP12eGAexHFdO/dQwVTdOY1FvfXOO +sNVMAZs6mUBWr7X4j+6mi6oqO8QVUgjpk0NotNXjjwlYB47/sBnuRrrdGA+hShbDvv0 TagF/xD5iMQMFRMzPByygy9QSJJodRGN+1e11dsIVx/Wn2PF4KDDl0ZKcXp8NNZ2GvMn S/sLryscSf7JRsuS/PoGzTz8qrOP9dcBltfrs7xyzOEmPNDpzSczffYauig/Wvw1ZLVS YIUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=qQySGZRWitYLjldBg/lCrO9TdSWZkl5tDmjIwefvZoc=; b=FfTdMnCDocyePgoueGS7Yge3MDSGpfOwDjJa9yPMzubIwR4P5A2LsnawcFm7XIerpK TWOQXj41PJphp9AYj4j3v5x2PbfoS+QPOKPLtj4ejwp2Gq69h43nYUWVNK6vWMHq13aD E2evilOgxSbGsgS9gtMrRzRnMt493oTKTibRsSbyssPf7duEgqrxfOX63hW9aFEmOq84 fx1KJdmplRXSb+VL1pNI1M5q/MUQXHB/s7va51Aej8Ex7wXUnyFqM3Apc0Jq4n5vCtm4 mkoPV9qlENNLLggQnfYEd6gCJ6+rvebj93N80+od6kOVhgbxfxm273ZvNyem5ej0xw9b WWjA== X-Gm-Message-State: AKGB3mLGc94hCxq1e/ZHK62++BIGo6N+sAsC8yDxZBd5zbRW6K+e6JCt Iq6e7/wOgVIbh7eqXZDPBs0= X-Google-Smtp-Source: ACJfBotqVXZBO6nRByCJJmupxGxT6d3TLLqTLyg9OhG8O1GQi4ozO+xGz+mU7F9ZZ7Z8XdD8A0rXvA== X-Received: by 10.200.1.20 with SMTP id e20mr18722667qtg.97.1513309452928; Thu, 14 Dec 2017 19:44:12 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: "Michael S. Tsirkin" , Michael Tokarev Date: Fri, 15 Dec 2017 00:43:56 -0300 Message-Id: <20171215034356.4449-3-f4bug@amsat.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171215034356.4449-1-f4bug@amsat.org> References: <20171215034356.4449-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::244 Subject: [Qemu-devel] [PATCH v5 2/2] misc: drop old i386 dependency 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: Peter Maydell , Thomas Huth , Eduardo Habkost , qemu-trivial@nongnu.org, Anthony Green , Mark Cave-Ayland , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org, Michael Walle , Paolo Bonzini , Artyom Tarasenko Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_6 Z_629925259 SPT_0 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Thomas Huth --- hw/char/debugcon.c | 1 - hw/intc/lm32_pic.c | 1 - hw/moxie/moxiesim.c | 1 - hw/sparc/sun4m.c | 1 - hw/watchdog/wdt_ib700.c | 1 - 5 files changed, 5 deletions(-) diff --git a/hw/char/debugcon.c b/hw/char/debugcon.c index 95ccec6f8b..e2abc61b04 100644 --- a/hw/char/debugcon.c +++ b/hw/char/debugcon.c @@ -29,7 +29,6 @@ #include "hw/hw.h" #include "chardev/char-fe.h" #include "hw/isa/isa.h" -#include "hw/i386/pc.h" =20 #define TYPE_ISA_DEBUGCON_DEVICE "isa-debugcon" #define ISA_DEBUGCON_DEVICE(obj) \ diff --git a/hw/intc/lm32_pic.c b/hw/intc/lm32_pic.c index 09e15115fb..db6c7afc2f 100644 --- a/hw/intc/lm32_pic.c +++ b/hw/intc/lm32_pic.c @@ -20,7 +20,6 @@ #include "qemu/osdep.h" =20 #include "hw/hw.h" -#include "hw/i386/pc.h" #include "monitor/monitor.h" #include "hw/sysbus.h" #include "trace.h" diff --git a/hw/moxie/moxiesim.c b/hw/moxie/moxiesim.c index 3ba58481d0..3c3ba9d8c5 100644 --- a/hw/moxie/moxiesim.c +++ b/hw/moxie/moxiesim.c @@ -30,7 +30,6 @@ #include "cpu.h" #include "hw/sysbus.h" #include "hw/hw.h" -#include "hw/i386/pc.h" #include "hw/isa/isa.h" #include "net/net.h" #include "sysemu/sysemu.h" diff --git a/hw/sparc/sun4m.c b/hw/sparc/sun4m.c index 24c2b8a555..e71648404c 100644 --- a/hw/sparc/sun4m.c +++ b/hw/sparc/sun4m.c @@ -36,7 +36,6 @@ #include "net/net.h" #include "hw/boards.h" #include "hw/scsi/esp.h" -#include "hw/i386/pc.h" #include "hw/isa/isa.h" #include "hw/nvram/sun_nvram.h" #include "hw/nvram/chrp_nvram.h" diff --git a/hw/watchdog/wdt_ib700.c b/hw/watchdog/wdt_ib700.c index 532afe89e7..d045032bf4 100644 --- a/hw/watchdog/wdt_ib700.c +++ b/hw/watchdog/wdt_ib700.c @@ -25,7 +25,6 @@ #include "sysemu/watchdog.h" #include "hw/hw.h" #include "hw/isa/isa.h" -#include "hw/i386/pc.h" =20 /*#define IB700_DEBUG 1*/ =20 --=20 2.15.1