Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2567411imm; Fri, 20 Jul 2018 00:34:09 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeKmBhfrsDaHI2qBPpfgNIavEj2aJIkcZV5Yl2obiPI2FgWcR6UKUtFKdKvuJLZY4VAKYwj X-Received: by 2002:a63:d916:: with SMTP id r22-v6mr946412pgg.381.1532072048964; Fri, 20 Jul 2018 00:34:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532072048; cv=none; d=google.com; s=arc-20160816; b=XwfhJfliZZDrD6yp9YIWdG03IqFZD7WBCmiIWSVQeGfNwpyRvVFWbr0yBJjMfs2q2g Wi5u/fuQLwtHKClQR5t5Qzgb0jWL9WgfEsb8pny5lhLBTHoT5ccTa495PWMQz3jRdYNu RVNCtq8kt01jGjhuKvY0CIpPwssreDIypI91Fq62LVTX5qWBCGcC88pWTk7gAyjw0mOa 4oIWwig/YycpSOmfbzMrp5gdH7vnjTW7eJ3TiqdQlLsqW3cMxg8exfACe6mDTLPyb0Zi 8VjTud5U0yaXjt6Cw7UeMd89439LHGke7bRZ/cT0w/momXKB7oStnR4WaPCavXCIxwId hcSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=xkfBxXGmsxyKG/WrkuATIPqQwxLRuFD6Q3+eZILXt2I=; b=wgzyKQuPjdu7T/xQInbBQBS5mLPWkiH05GsgCcnAVeVqeUSodxD1lelgkaYjN/IC6T rc+7LQkbkuyg16yYJWXONh0m+OK9Nz4M7rwo6jd+eb05KoTnScJ23RadBBKeZ/HoN6zR r+h5GuNy+RXzyKbQs2vMROOZwI09t3yPFsTavtt/W+3eEut+0Kyygoaj9odpI7WnLKm/ WVTgXULTKM/ptYxAwCPywRVOiTAek53c63k378p5JVp0l6i6FdMYV0VBl8bkMw2O1NTU C15CMRkUkUq+2A5hb3MqxfGFxv8Ad6tS1hpv1x9RWOUK6Fu02MMLYCU95RqzF1tysUCb XQ+w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u30-v6si1261784pfl.87.2018.07.20.00.33.46; Fri, 20 Jul 2018 00:34:08 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727333AbeGTITv (ORCPT + 99 others); Fri, 20 Jul 2018 04:19:51 -0400 Received: from mail.skyhub.de ([5.9.137.197]:47806 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727026AbeGTITv (ORCPT ); Fri, 20 Jul 2018 04:19:51 -0400 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id kEOG6nptlX3S; Fri, 20 Jul 2018 09:32:54 +0200 (CEST) Received: from nazgul.tnic (77-85-109-49.ip.btc-net.bg [77.85.109.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 4A7C51EC06DA; Fri, 20 Jul 2018 09:32:54 +0200 (CEST) Date: Fri, 20 Jul 2018 09:32:45 +0200 From: Borislav Petkov To: Dave Young , lijiang Cc: bhe@redhat.com, linux-kernel@vger.kernel.org, mingo@redhat.com, tglx@linutronix.de, hpa@zytor.com, ebiederm@xmission.com, joro@8bytes.org, thomas.lendacky@amd.com, kexec@lists.infradead.org, iommu@lists.linux-foundation.org Subject: Re: [PATCH 1/5 V5] Add a function(ioremap_encrypted) for kdump when AMD sme enabled Message-ID: <20180720073245.GA26926@nazgul.tnic> References: <4ae1cfb5-0a4b-2aac-2575-024e2c74826f@redhat.com> <895db996-febd-d50c-91af-4f1ef3d27bd8@redhat.com> <20180703111428.GB5748@zn.tnic> <4fbb843b-9597-a48b-8b6f-00e354b91950@redhat.com> <20180709092901.GA22182@nazgul.tnic> <20180713170857.GB17896@nazgul.tnic> <33453712-9b0b-e8b9-08a6-de09e0806dd6@redhat.com> <20180720052304.GA9146@dhcp-128-65.nay.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180720052304.GA9146@dhcp-128-65.nay.redhat.com> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 20, 2018 at 01:23:04PM +0800, Dave Young wrote: > > Here, it doesn't need to dump MMIO space of the previous kernel, when the > > kdump kernel boot, the MMIO address will be remapped in decryption manners, > > but the MMIO address don't belong to the range of the crash reserved memory, > > for the kdump kernel, the MMIO space(address) and IOMMU device table(address) > > are outside address, whereas, the IOMMU device table is encrypted in the first > > kernel, the kdump kernel will need to copy the content of IOMMU device table > > from the first kernel when the kdump kernel boot, so the IOMMU device table will > > be remapped in encryption manners. -ENOFCKINGPARSE I believe you're the only one who understands that humongous sentence. How about using a fullstop from time to time. And WTF is "encryption manners"? > > So some of them require to be remapped in encryption manners, and some(address) > > require to be remapped in decryption manners. > There could be some misunderstanding here. Hell yeah there's a misunderstanding! Can you folks first relax, sit down and explain the whole problem in *plain* English using *simple* sentences. *Not* like the unparseable mess above. Use simple, declaratory sentences and don't even try to sound fancy: "The first kernel boots. It's memory is encrypted... Now, the second kernel boots. It must do A because of B. In order to do A, it needs to do C. Because D..." And so on. Explain what the problem is first. Then explain the proposed solution. Explain *why* it needs to be done this way. When you've written your explanation, try to read it as someone who doesn't know kdump and *think* hard whether your explanation makes sense. If it doesn't, fix it and read it again. Rinse and repeat. Until it is clear to unenlightened readers too. It is about time this hurried throwing of half-baked patches at maintainers and seeing what sticks, stops! -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. --