Received: by 10.223.176.46 with SMTP id f43csp4387991wra; Tue, 23 Jan 2018 08:43:17 -0800 (PST) X-Google-Smtp-Source: AH8x224St3RMX/vXechHZ8s+kNdfQ6tysZs7F+miy0aqUyjpCEUkx9h5LgWe/UhR0uWITI0lcD21 X-Received: by 10.36.125.15 with SMTP id b15mr4536658itc.36.1516725797487; Tue, 23 Jan 2018 08:43:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516725797; cv=none; d=google.com; s=arc-20160816; b=LrBNNQTCTMFTw2cSb47usvm+avRIsWjEJMd31t4c3rZ+uGabFDgFiLeT58RlWuEyV1 nuz2TwxJ5w4au8EEB7acyI+qihu/vIOmGo9htkj8nEY3eCgBFDbeI4hSmZebW6nAqYCa b9zSUAMCO6aKc9J9+8jpkm7f2PQd7zOqeKf55eYRStkczt5/yLR56P2tMYQitDa5Fab3 FcNfr+W4pP0rZJfSE+gPDWOzmWqQZy7ou2x241OeNXFMGQU0bsUPa5K3OxaHsIL1EnmI tglYqxNyfhTDmyThvBo4T/CFp5C4zpkhr4lsW0X0ufi5kv8/czRRhSdKhfqKcv3JDfwg 27SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:arc-authentication-results; bh=v85MEZVYscR7mS4i5KYwX2dPhyNAwEm4GyprryS3D6M=; b=IiH7ij/eazoOuFcrxDqBmuEDwDh1wfyNPgS8t6GKG6D1t/0kp7r8L0Kr6p51qKC09f s8IRDKtGGn19XDUz28h00DQTc8UfJvEmpu9xQWxFpybPRQY03c9E6vUpxqyLqavzONVS 4yzBIK4jJiFRn7qKK4pLB9BAffmXZMum7VddLLPgGzRdLaY9oIEpshN4WY/ZOXnJtNIu jwmu2GpHXpAYoIJGAIA3aM0BWUrQc+qf9atO6Sgnt5im4xZZ+7GRP6kr8h10054PLOaI HNagyV+/Wd2w9CZco6iOwwHOliQwu55p4jeuIgwsgA/H7H6Qz4XzCW+A7BP8ht+hFhh5 HChw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c76si15704187iod.220.2018.01.23.08.43.04; Tue, 23 Jan 2018 08:43:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751478AbeAWQk5 (ORCPT + 99 others); Tue, 23 Jan 2018 11:40:57 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45240 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751224AbeAWQk4 (ORCPT ); Tue, 23 Jan 2018 11:40:56 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5F4DFC099447; Tue, 23 Jan 2018 16:40:56 +0000 (UTC) Received: from localhost (ovpn-112-59.ams2.redhat.com [10.36.112.59]) by smtp.corp.redhat.com (Postfix) with ESMTP id E796B600C8; Tue, 23 Jan 2018 16:40:42 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= To: linux-kernel@vger.kernel.org Cc: bhe@redhat.com, slp@redhat.com, mst@redhat.com, somlo@cmu.edu, xiaolong.ye@intel.com, peterx@redhat.com, qemu-devel@nongnu.org, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Subject: [PATCH v10 0/4] fw_cfg: add DMA operations & etc/vmcoreinfo support Date: Tue, 23 Jan 2018 17:40:37 +0100 Message-Id: <20180123164041.30339-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 23 Jan 2018 16:40:56 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This series adds DMA operations support to the qemu fw_cfg kernel module and populates "etc/vmcoreinfo" with vmcoreinfo location details (since qemu 2.11). v10: - merged Peter Xu fix "[PATCH] fw_cfg: don't use DMA mapping for fw_cfg device" (fixing fw-cfg+viommu configuration) - switch back to kalloc'd struct vmci, to fix DMA garbage operations - do not attempt to write vmcoreinfo if the entry exists but DMA isn't supported - removed a copy-pasta memset() on write operation error Marc-André Lureau (4): fw_cfg: add DMA register fw_cfg: do DMA read operation crash: export paddr_vmcoreinfo_note() fw_cfg: write vmcoreinfo details drivers/firmware/qemu_fw_cfg.c | 267 ++++++++++++++++++++++++++++++++++++----- kernel/crash_core.c | 1 + 2 files changed, 236 insertions(+), 32 deletions(-) -- 2.16.0.rc1.1.gef27df75a1