From nobody Mon Apr 29 14:55:44 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 1493992080891758.1639686671821; Fri, 5 May 2017 06:48:00 -0700 (PDT) Received: from localhost ([::1]:47189 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d6daR-0004ny-8o for importer@patchew.org; Fri, 05 May 2017 09:47:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d6dZD-0003zO-TK for qemu-devel@nongnu.org; Fri, 05 May 2017 09:46:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d6dZA-0005fT-Mo for qemu-devel@nongnu.org; Fri, 05 May 2017 09:46:43 -0400 Received: from mail-wr0-x22c.google.com ([2a00:1450:400c:c0c::22c]:33565) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d6dZA-0005el-DJ for qemu-devel@nongnu.org; Fri, 05 May 2017 09:46:40 -0400 Received: by mail-wr0-x22c.google.com with SMTP id w50so4216900wrc.0 for ; Fri, 05 May 2017 06:46:40 -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 t85sm2649084wmt.23.2017.05.05.06.46.37 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 05 May 2017 06:46:38 -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=pG6yE+JPNAHBMyXwVzMZXWH0K4LQEC8lsNgo0ppPNjY=; b=vWOpcIi+hZQDX4J6c1JE8tifoCszhNrA6crLkgHV5Fsbfu0QE4lguQaeKIveOnMJgy nisie0YJjXfcKFdYcCBUa32mMl+MLM5+NZF4AgUmobh6caxvvtaP0jce7YJxnpzDms6m GOqWtr+wa4mmiiRAr2cdqqqFhENDI0cNq5KN2yfBr7ZHbsvr/jmspgxZcgB7o1x4qioP cKigGdVsqgbR0rg2tdwAIYatkiNDNqNVmMc7WbMTyLVTyzG2hO+VreX8nyiPzgRQKGJY o4HHflAzxm75s/V/zH5QwTeoATkGykIKOL3zxmtGcH9PDtwA8yFl3fzTbspMZhQxQqYg x5lw== 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=pG6yE+JPNAHBMyXwVzMZXWH0K4LQEC8lsNgo0ppPNjY=; b=QEzgDWC30z51sprpe84zCZMJInQMFwDJr1WfQCplXhItBi2DdEBb1OuAtVFBoOucYT 4nSSjluKAzAqVxZHlpS2LW4g6HYEmewgWkKq2GDEX0Oi7YSFdXq5d/E0zYq4pj8+BIEw Cq3i5fr6dEkRf4HfOTZ/ut10Y/p+hdRFG8H9DyLftM5f/VjFQEnxv65HR2aS8fHqXGcy QPFtHzRBCmIx3MS1NOJ3uam4ronwrXX2/ETQiDIMRkEYRdyPz9HMgJSxVpFdZQNp9gwS tyx5QmiNYxFlo43utMxY2Nw3bLxbfSvul33AmEKSwFNJmw3oJvpbhS0gtVAxBmBGY5Bm MNCQ== X-Gm-Message-State: AN3rC/5cyU6y4fqu7gJKgxuplRV5g5734i8UqmSEPjCZhDiq9fJMGGtB p1bfNlXeItp/0Euf X-Received: by 10.223.175.209 with SMTP id y17mr26574631wrd.77.1493991998961; Fri, 05 May 2017 06:46:38 -0700 (PDT) From: Julien Duponchelle To: qemu-devel@nongnu.org Date: Fri, 5 May 2017 15:46:32 +0200 Message-Id: <20170505134632.19080-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:c0c::22c Subject: [Qemu-devel] [PATCH v2] 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..cf6b82d97b 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.", 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.", 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)