From nobody Sun May 5 16:02:30 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; dkim=fail spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1493989287775656.2193309983214; Fri, 5 May 2017 06:01:27 -0700 (PDT) Received: from localhost ([::1]:46927 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d6crN-0004bK-B6 for importer@patchew.org; Fri, 05 May 2017 09:01:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d6cnU-0001CZ-G2 for qemu-devel@nongnu.org; Fri, 05 May 2017 08:57:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d6cnR-0006c9-EM for qemu-devel@nongnu.org; Fri, 05 May 2017 08:57:24 -0400 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:37372) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d6cnR-0006ak-5R for qemu-devel@nongnu.org; Fri, 05 May 2017 08:57:21 -0400 Received: by mail-wm0-x230.google.com with SMTP id m123so5522472wma.0 for ; Fri, 05 May 2017 05:57:19 -0700 (PDT) Received: from localhost.localdomain (ivr94-11-88-187-38-118.fbx.proxad.net. [88.187.38.118]) by smtp.gmail.com with ESMTPSA id f25sm6991002wrf.13.2017.05.05.05.57.17 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 05 May 2017 05:57:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gns3-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=oTOqhuf9SAe/kvk1roJBURe/dHmoBt1MILyE+iHXLeo=; b=v9DhMuJ7OM3E4pcLE6FgbIBwTYD3ETaYFp9LKpb428L/K32iMxbvGCmW4AT+5ALSBj 21dllDT09xm1di0Dst/Ni0HHz1peHM+CvzM9bsIKZ9J7CHLAS5YKi5OYsLjRpkw4ghZg TxRSRMv7eUjno+p31Gh6u2GbTJtpQh2kSIpmRE3bfayc74SDrruw602Lnb86kwUr5kxx HPMw622EJuMO04PSe54zNXwpwzwTv5e2+414x/1YYX9aJnOR8pwif5zZZIH89Z72Txht sRZVWikkF7uolda+coBZuS5Y3lrMQZtBmaYVq4XRv9KBhId4eZunyiys5p7IX3BB3KQU 36/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=oTOqhuf9SAe/kvk1roJBURe/dHmoBt1MILyE+iHXLeo=; b=pQS6waiizD9Q13hnDG82oh2JyXwGLEN7v+ilEb4y3eTtfy7ii2iWSAgmOx1dJUrs31 mYtGlNGtxOOtSAYIcqfF0wLWkEHyetIV70DgbidlRaPgXyJ8MLfgu1N843aLl13BsXk+ f99Ie3q8y82him8Y14mfxfWasXRWI9qolMY7RbPyjmEiTdGwcYar6UTobb9d1/+7+biC TSfppnwvacDBOTdWgE5ujeVx3gPYrlUmpgza+MIGfuxfx01QvSZ7KCfpzzttQMpHKR4H 1XzHKKkCSfUnsEhBflN0IHzkLxFBSyzSO+7RviXpUnDdK0RAr/YkT98iQ/ufNUzVusZ7 1HFw== X-Gm-Message-State: AN3rC/5CoZA81zYvEglpMiRk4OfKr+OYThpmW9Pr5IFEKvBtogf6UGgJ uowBzZX8up63Ckl/4NE= X-Received: by 10.28.66.157 with SMTP id k29mr5749061wmi.84.1493989038271; Fri, 05 May 2017 05:57:18 -0700 (PDT) From: Julien Duponchelle To: qemu-devel@nongnu.org Date: Fri, 5 May 2017 14:57:18 +0200 Message-Id: <20170505125718.18337-1-julien@gns3.net> X-Mailer: git-send-email 2.12.2 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::230 Subject: [Qemu-devel] [PATCH] Disable the not fully implemented warning for e1000 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: jasowang@redhat.com, Julien Duponchelle 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_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Otherwise for image like CISCO IOSv you got a lot of warning on the console preventing you to use the VM because it's slow down the machine. This fix: https://bugs.launchpad.net/qemu/+bug/1673722 Signed-off-by: Julien Duponchelle --- hw/net/e1000.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/net/e1000.c b/hw/net/e1000.c index f2e5072d27..095fd0133f 100644 --- a/hw/net/e1000.c +++ b/hw/net/e1000.c @@ -35,6 +35,7 @@ #include "sysemu/dma.h" #include "qemu/iov.h" #include "qemu/range.h" +#include "qemu/log.h" =20 #include "e1000x_common.h" =20 @@ -1264,8 +1265,9 @@ e1000_mmio_write(void *opaque, hwaddr addr, uint64_t = val, if (!(mac_reg_access[index] & MAC_ACCESS_FLAG_NEEDED) || (s->compat_flags & (mac_reg_access[index] >> 2))) { if (mac_reg_access[index] & MAC_ACCESS_PARTIAL) { - DBGOUT(GENERAL, "Writing to register at offset: 0x%08x. " - "It is not fully implemented.\n", index<<2); + qemu_log_mask(LOG_UNIMP, "e1000: " + "Writing to register at offset: 0x%08x. " + "It is not fully implemented.\n", index << 2); } macreg_writeops[index](s, index, val); } else { /* "flag needed" bit is set, but the flag is not activ= e */ @@ -1291,8 +1293,9 @@ e1000_mmio_read(void *opaque, hwaddr addr, unsigned s= ize) if (!(mac_reg_access[index] & MAC_ACCESS_FLAG_NEEDED) || (s->compat_flags & (mac_reg_access[index] >> 2))) { if (mac_reg_access[index] & MAC_ACCESS_PARTIAL) { - DBGOUT(GENERAL, "Reading register at offset: 0x%08x. " - "It is not fully implemented.\n", index<<2); + qemu_log_mask(LOG_UNIMP, "e1000: " + "Reading register at offset: 0x%08x. " + "It is not fully implemented.\n", index << 2); } return macreg_readops[index](s, index); } else { /* "flag needed" bit is set, but the flag is not activ= e */ --=20 2.11.0 (Apple Git-81)