From nobody Sun Sep 28 00:31:12 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1561081717; cv=none; d=zoho.com; s=zohoarc; b=ioda90Xui7t43Nuv5kWXVBcOLOPlrgi07KE7NL8BUkSUTJ4Gd0+mn7Fe7FZ4WybxUyYMgwYbCPgMFtLt2R8OIodGSuqVISop7qlkXCnXdtr1spba6x/1JT3nHVglQ7QOphjUcHnYepNsLZWlUDIfglT1D860bVD5qOs5uHXIS+M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1561081717; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=rF5i6pzq9tNlUQhJFdaXZR//yZxu/EIyRbH8FbNdhFc=; b=guWtdDBMJF79Z4xUkzE6Ib1i6ebV4Y78BhktJR3wq/SlUEI2CGhwIx+ciUXIHQMX9SVnf794SvYUb/DHDfjZzQ7bteam4sTdAeQfdRYU/dq3P0KkU9Tp5vCh8xvPEIHn2zxJL2AkU6UePv1c3grETkCJGHdFLjaQ5GATIdR+ins= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1561081717566742.663046617478; Thu, 20 Jun 2019 18:48:37 -0700 (PDT) Received: from localhost ([::1]:54034 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1he8f1-00005Q-W3 for importer@patchew.org; Thu, 20 Jun 2019 21:48:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40644) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1he8Za-0006My-CW for qemu-devel@nongnu.org; Thu, 20 Jun 2019 21:42:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1he8ZY-00067h-Pi for qemu-devel@nongnu.org; Thu, 20 Jun 2019 21:42:38 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:38620) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1he8ZY-00062n-G8 for qemu-devel@nongnu.org; Thu, 20 Jun 2019 21:42:36 -0400 Received: by mail-wr1-x42b.google.com with SMTP id d18so4878335wrs.5 for ; Thu, 20 Jun 2019 18:42:34 -0700 (PDT) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id d1sm1123125wru.41.2019.06.20.18.42.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Jun 2019 18:42:32 -0700 (PDT) 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; bh=rF5i6pzq9tNlUQhJFdaXZR//yZxu/EIyRbH8FbNdhFc=; b=lGnu2BHPEqEqHNamv8d/nKz63paJvo9uZ7ZuzwBub6GN7vxC7a+z/FtFbmhZofyMns D//up6rJikyxhPa0DZAtrx1hrY5gojEPYDIRj1XSRtOjWosqPBmgt4I6OSZuQavHWUzn 7abXlWBrXp6ReC8D5sivuI1wBfQGuiY7AGL8+RAg3MhESFPvHtd1Z9miqHY0B8zqq8Xp yhCYu2qPebE4byV3pvPctDf/C6oUwUbaNrDXKDbtw/wPU1tBLQRe9FJJqZXEdt9PtM0H Ox+E/WUy4MQbK2StxVjT4tVdARFHaiY1n6sb/mc5x03efomYgsIe5K+jRTAKg2bWHqO/ zp+g== 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; bh=rF5i6pzq9tNlUQhJFdaXZR//yZxu/EIyRbH8FbNdhFc=; b=XmadtQYOHLZ7uGAF6J7eec2HxYXXhr33CqAmN6nhmce7oljnYFEXXvYGyDsyrFsKDz XBaN7Hiy5bqF5+nX8s9QQEC1+Y9f/zXUtmOby0TsROkU0nL0ds86MvMAiNJuZbVAq3uo Ol70r7xnwXQj8Vn3JbpdkBF3HlExUaINh1fsfb9Ivwf1Bto7mq7mO9F8w9GpsAshMc5v fgjz2xdvmIR/NRBjBCIt96ohZHEApLjTUTITuVxHhX0TYx369y5xI+NM+3ZSpniBW3Rd WkFNX00Ag4gev83G0PcPyb3YT2EgpQ+NITtHeKPjYoe6/8ockJ/lvIONy7MGAmVZOEz2 GOjA== X-Gm-Message-State: APjAAAX3B0u5RQVk80c/qvKHcWyguKDtiOQrfJku/QOG7Bp9F/QzCyMr qyQ+DNZW0M6mtGlWec6/X3aglUUj X-Google-Smtp-Source: APXvYqyxHM7yUMpqXv45P6S3A8q2viegX08LTVyJtmcsGD2+V+9c/2SdrU5v0gOPweGz8QcDCc6lYA== X-Received: by 2002:a5d:6549:: with SMTP id z9mr30290857wrv.63.1561081352960; Thu, 20 Jun 2019 18:42:32 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Fri, 21 Jun 2019 03:42:06 +0200 Message-Id: <1561081350-3723-2-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1561081350-3723-1-git-send-email-pbonzini@redhat.com> References: <1561081350-3723-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42b Subject: [Qemu-devel] [PULL 01/25] kvm-all: Add/update fprintf's for kvm_*_ioeventfd_del X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yury Kotov Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Yury Kotov Signed-off-by: Yury Kotov Message-Id: <20190607090830.18807-1-yury-kotov@yandex-team.ru> Signed-off-by: Paolo Bonzini --- accel/kvm/kvm-all.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index b0c4bed..d2f481a 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -863,8 +863,8 @@ static void kvm_mem_ioeventfd_add(MemoryListener *liste= ner, data, true, int128_get64(section->size), match_data); if (r < 0) { - fprintf(stderr, "%s: error adding ioeventfd: %s\n", - __func__, strerror(-r)); + fprintf(stderr, "%s: error adding ioeventfd: %s (%d)\n", + __func__, strerror(-r), -r); abort(); } } @@ -881,6 +881,8 @@ static void kvm_mem_ioeventfd_del(MemoryListener *liste= ner, data, false, int128_get64(section->size), match_data); if (r < 0) { + fprintf(stderr, "%s: error deleting ioeventfd: %s (%d)\n", + __func__, strerror(-r), -r); abort(); } } @@ -897,8 +899,8 @@ static void kvm_io_ioeventfd_add(MemoryListener *listen= er, data, true, int128_get64(section->size), match_data); if (r < 0) { - fprintf(stderr, "%s: error adding ioeventfd: %s\n", - __func__, strerror(-r)); + fprintf(stderr, "%s: error adding ioeventfd: %s (%d)\n", + __func__, strerror(-r), -r); abort(); } } @@ -916,6 +918,8 @@ static void kvm_io_ioeventfd_del(MemoryListener *listen= er, data, false, int128_get64(section->size), match_data); if (r < 0) { + fprintf(stderr, "%s: error deleting ioeventfd: %s (%d)\n", + __func__, strerror(-r), -r); abort(); } } --=20 1.8.3.1