From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB3B2C433F5 for ; Thu, 17 Mar 2022 12:15:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233485AbiCQMQU (ORCPT ); Thu, 17 Mar 2022 08:16:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230208AbiCQMQT (ORCPT ); Thu, 17 Mar 2022 08:16:19 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 091091B9FE9 for ; Thu, 17 Mar 2022 05:15:03 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1647519301; 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: in-reply-to:in-reply-to:references:references; bh=vQcwj0LCiNAHVBDuF6Px80QfKbCwTCGxWCoZrupQZlo=; b=Cjnvxh1S31RQnn6USOycwCisBPoWwiBl84bXrF3YGtIin0snrNpZ5NKUAgxq7Tp9cbiS/R iT+wcGvZSEPy78X8oEm0xA4YWiQknikW5GSKiYcFxQPMfGgxhJ+vwrsC0EDj2kj87Iga4Q ToWIYXntUp//ShJdGMM7YHbUed4uS0x6ofR3oQCtOwEs9DbWIRpNE0MRtghK9tUBYfN1Ly 9f4vaW1BocTQOfAjw42edVEcYr1QZHVVausXKWBi9MxOQopkjuISQ8HUwwKH69EcS584UZ ABVDMib+XjgKnxS/HmQLLPfxxDchI2I6luEgOxIq61ZlVxxbuXpfvh/aab2gIA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1647519301; 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: in-reply-to:in-reply-to:references:references; bh=vQcwj0LCiNAHVBDuF6Px80QfKbCwTCGxWCoZrupQZlo=; b=GSDqsu2Co2UbhVlGw+G/o0fMIDXTI+hzQfocP9Hu3KVgdkFRmkNYddiwivo4zMwHD0sCLl enUQ+k7PxxaEz8AQ== To: "Kirill A. Shutemov" , mingo@redhat.com, bp@alien8.de, dave.hansen@intel.com, luto@kernel.org, peterz@infradead.org Cc: 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, thomas.lendacky@amd.com, brijesh.singh@amd.com, x86@kernel.org, linux-kernel@vger.kernel.org, "Kirill A. Shutemov" , Dave Hansen Subject: Re: [PATCHv6 16/30] x86/boot: Port I/O: add decompression-time support for TDX In-Reply-To: <20220316020856.24435-17-kirill.shutemov@linux.intel.com> References: <20220316020856.24435-1-kirill.shutemov@linux.intel.com> <20220316020856.24435-17-kirill.shutemov@linux.intel.com> Date: Thu, 17 Mar 2022 13:15:01 +0100 Message-ID: <87a6do22t6.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 16 2022 at 05:08, Kirill A. Shutemov wrote: > void early_tdx_detect(void) > { > u32 eax, sig[3]; > @@ -23,4 +94,12 @@ void early_tdx_detect(void) > > /* Cache TDX guest feature status */ > tdx_guest_detected = true; > + > + /* Use hypercalls instead of I/O instructions */ > + inb = tdx_inb; Eeew. What's wrong with writing this out? pio_ops.inb = tdx_inb; So it becomes obvious what this is about? Thanks, tglx