Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1737235pxb; Sat, 15 Jan 2022 22:45:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzfnJJo1kEJRUo9+al6f82OyKhDoGzpU6fNHDqmUlEWOO/2wokZKI9GN7oowBd4kT5Hf3SQ X-Received: by 2002:a63:9dc8:: with SMTP id i191mr14398260pgd.601.1642315520464; Sat, 15 Jan 2022 22:45:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642315520; cv=none; d=google.com; s=arc-20160816; b=SXOonn7+zxq9XLichy3VSz1AkEgFZmufI+Xad+ds1+bovN8xQ3RfLE+U1MmUeUKnW6 g0Ma7X/PaUGKcn4ijGeSZvAQbwu0GRU3K69bBkSEFDB6aWsTLBnaemNTPWZ4LIOGPk85 gnx3YLPDolzp64zROTPJI3OiMbpZnfSG8OqyZ7PMm/RUpHUFAOw/EooR5sCwn2MUy53O 4KlO0D4ZVAPkpOipsodDuXLUM/RcfVTkn/B0jE4XNGZ2onxM67gkv5GokhNgRmJ9Qfn7 Cm3+iDY0iqOEA8Hx7MCDUqkQDuNvopIWO+fb8qIiBHBwLPt6g4EswbKwAA/qz0WRr8MA RO/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XDUwwnpPc5KwpAAkqbYEfqsdrcjLzqvdebpXHdKPZLY=; b=Q19PQOutqGlw3oOunYICjH1Wv/yv9PkYTKpQcDLeseU3wJFi7tDp8FjnkfFiJhcVPD TD1Z5qVmlmbmjtZfYslzNewGU6MAVA7MZSs0e/064WoOa1BCsSuiJHCy+D2oMG3DV3CH 04JBw0s3D7GkBJ7D1JvC0m6iBqeiccbBwUXME/BIUqXi1H8w+5+X8qnxs+kTtJgg0H8e RPlYYkcjuilJPh905oRaHP1QbBGGGyu7/jsGgvap7VBmESEf2OFR+MeO+UQxLcX0ZLUo bLBsmqI0r1DH5hsy1hHVGlShJfDzvNhJ6nHlvcEwkQa7tmPebqZQy2gcq7e9wA65vWl8 AA7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=UNo+2Swr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h23si2740818pgv.186.2022.01.15.22.44.58; Sat, 15 Jan 2022 22:45:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=UNo+2Swr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230326AbiAOMQG (ORCPT + 99 others); Sat, 15 Jan 2022 07:16:06 -0500 Received: from mail.skyhub.de ([5.9.137.197]:39292 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229486AbiAOMQF (ORCPT ); Sat, 15 Jan 2022 07:16:05 -0500 Received: from zn.tnic (dslb-088-067-202-008.088.067.pools.vodafone-ip.de [88.67.202.8]) (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 EBF011EC0532; Sat, 15 Jan 2022 13:15:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1642248960; 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:in-reply-to:in-reply-to: references:references; bh=XDUwwnpPc5KwpAAkqbYEfqsdrcjLzqvdebpXHdKPZLY=; b=UNo+2SwrTtGsfgL6nkTxji4FyiiWt124eMOwE5dgY0RyvznkitqoY4NS9beAvTYNeCfIsw FSf8ezvDCOuMsJGa99DDxC4efUghIBXlmBUz7MTi204T00FyxYndyi3rr62wD2jDmJ3sVg jNSMHJBU1OpNccW8u4vPVNsPvO4Xe20= Date: Sat, 15 Jan 2022 13:16:00 +0100 From: Borislav Petkov To: "Kirill A. Shutemov" Cc: tglx@linutronix.de, mingo@redhat.com, dave.hansen@intel.com, luto@kernel.org, peterz@infradead.org, sathyanarayanan.kuppuswamy@linux.intel.com, aarcange@redhat.com, ak@linux.intel.com, dan.j.williams@intel.com, david@redhat.com, hpa@zytor.com, jgross@suse.com, jmattson@google.com, joro@8bytes.org, jpoimboe@redhat.com, knsathya@kernel.org, pbonzini@redhat.com, sdeep@vmware.com, seanjc@google.com, tony.luck@intel.com, vkuznets@redhat.com, wanpengli@tencent.com, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 10/26] x86/tdx: Support TDX guest port I/O at decompression time Message-ID: References: <20211214150304.62613-1-kirill.shutemov@linux.intel.com> <20211214150304.62613-11-kirill.shutemov@linux.intel.com> <20220115010155.ss2hnyotw4a3nljf@black.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220115010155.ss2hnyotw4a3nljf@black.fi.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 15, 2022 at 04:01:55AM +0300, Kirill A. Shutemov wrote: > Do you see it differently? Do you want to switch to #VE here? I'm just comparing to what SEV does and wondering why you guys do it differently. But if you think hypercalls is easier, fine by me. The thing I don't like about that patch is you mixing up kernel proper io helpers with the decompressor code instead of modifying the ones in arch/x86/boot/boot.h. We need to hammer out how the code sharing between kernel proper and the decompressor should be done but that ain't it, especially if there are already special io helpers in the decompressor. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette