From nobody Sun Feb 8 19:59:16 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1607621324; cv=none; d=zohomail.com; s=zohoarc; b=IgSg9lgs1fEaJxeu9hCFxUGOwQi8YxcFUrEh+Ejco3uh1SltHhN7jbiMQMuBZDgSnO4SHMGasGpD66dIMJ1RTRlhJ99b1Kx8yzr/xRRwRIUwCfmDeyC6NMeGt6r6MdojpnXZVrs2dtEo2IhnpUpPYEv6MEBIX7JWk6Iy6vOhx6I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1607621324; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=OnkF8Tn4lCrqBLKCn21DuDMmWVcEld5oTgeMIUmzvrM=; b=hs/GiiLc/v4zTDfhZ05MkkcNGjQwKrymvWhvcLmZaKfp4lmXKY3/ahPR0n9rbn4r6o0BvW02Xrh6G7WMTU1FgyS/2k81dJl+WWu9siPxm3NMCf0hZHgQqOi/GHLL80h4zH+wrllCvEssOsNZL/DPG+cWmsXji5rjsmdxh5pcm/g= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1607621323962904.9840584753783; Thu, 10 Dec 2020 09:28:43 -0800 (PST) Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-377-fAEN1A53MpmUJc1mWuygpw-1; Thu, 10 Dec 2020 12:28:39 -0500 Received: by mail-wr1-f70.google.com with SMTP id e12so687485wrp.10 for ; Thu, 10 Dec 2020 09:28:38 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (101.red-88-21-206.staticip.rima-tde.net. [88.21.206.101]) by smtp.gmail.com with ESMTPSA id p19sm12765072wrg.18.2020.12.10.09.28.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Dec 2020 09:28:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1607621320; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OnkF8Tn4lCrqBLKCn21DuDMmWVcEld5oTgeMIUmzvrM=; b=YEoxofkEr7+po1Pe80Pm8/ewvjYLijb4KDtZepcXSmmDn1kedNnogFiYYQy53ZrGVNDl1/ IheBnhlvwEZU8a3wukc/4V+6bboiI9/Cy0196xfnwDKyoZjIZ0fgNstXEY56z+vMDd7X0B z76e7YQ7Og75/udY+TodkpPVRhfUND8= X-MC-Unique: fAEN1A53MpmUJc1mWuygpw-1 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:mime-version :content-transfer-encoding; bh=OnkF8Tn4lCrqBLKCn21DuDMmWVcEld5oTgeMIUmzvrM=; b=SeZ3T7pxK97we3Te9TtUNP8KyZZUEM0WDwd1h0f2ue5I28SyC+AC71y2j+pcCmMbDG Kj+FXMo3/l53h214jyXWiziZ1PO7fsFln5+vSyT6vqUbzrstGyBe91soWgO9OGsZv7Xw 9AfBNpQp7pnR4v5lp4OakhucQh6TxROY5/guXOp5GgCtdIHt17D4hC2qmDUBPyz3MrqA zBJOi+UeFtlilKf8v8xH+DB5ZrOp2Y2Rxmbz9K/M2S0PF/NeCHc5hbw6zGXTD3Bih/bd Mj+XBgXuMK2V0l2zSVhyqpPU9eU3UoIkgsDdAurdaavZPEqcWt0ByGMCmKnaJgEm/P+i 0hsA== X-Gm-Message-State: AOAM532NpAJMpAcAX70SaFK65fPFF/iie8PKap/wlJkPWvBQnZrjY90m d7d8AB+ssQAwLtp2kOoiiQut0mtbSyEFqBRvCPXi0hKjJgfSG7evKsuwP1slEwv1vka/cshguZU va7uGHmk5c9X1OQ== X-Received: by 2002:adf:8b8f:: with SMTP id o15mr9560602wra.311.1607621316874; Thu, 10 Dec 2020 09:28:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJy9zFPfiITG2inh9BBvSevH3g6HsV2chB5pJXQWKTD/Ts0lUIWKFH46Wowf0PMMx4MwtX8fGg== X-Received: by 2002:adf:8b8f:: with SMTP id o15mr9560596wra.311.1607621316768; Thu, 10 Dec 2020 09:28:36 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , qemu-trivial@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH] hw/virtio-pci: Replace error_report() by qemu_log_mask(GUEST_ERROR) Date: Thu, 10 Dec 2020 18:28:34 +0100 Message-Id: <20201210172834.178052-1-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Replace I/O write error reported with error_report() by qemu_log_mask(GUEST_ERROR) which allow filtering. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Stefano Garzarella Reviewed-by: Thomas Huth --- hw/virtio/virtio-pci.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c index f863f69ede4..094c36aa3ea 100644 --- a/hw/virtio/virtio-pci.c +++ b/hw/virtio/virtio-pci.c @@ -27,6 +27,7 @@ #include "hw/qdev-properties.h" #include "qapi/error.h" #include "qemu/error-report.h" +#include "qemu/log.h" #include "qemu/module.h" #include "hw/pci/msi.h" #include "hw/pci/msix.h" @@ -365,8 +366,9 @@ static void virtio_ioport_write(void *opaque, uint32_t = addr, uint32_t val) virtio_queue_set_vector(vdev, vdev->queue_sel, val); break; default: - error_report("%s: unexpected address 0x%x value 0x%x", - __func__, addr, val); + qemu_log_mask(LOG_GUEST_ERROR, + "%s: unexpected address 0x%x value 0x%x\n", + __func__, addr, val); break; } } --=20 2.26.2