Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1269543pxa; Fri, 28 Aug 2020 08:12:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLPOK4mHQvw8+UBYNSbLpknGuGrWooiUlBioLUz4K1nTgaBJL/QhgRnJIG5Ydx8WY26uX1 X-Received: by 2002:a17:906:970e:: with SMTP id k14mr2443437ejx.417.1598627578669; Fri, 28 Aug 2020 08:12:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598627578; cv=none; d=google.com; s=arc-20160816; b=rlCyUvfj058rkFuLS+whUiw7yxAv1+nAH26u3bryQMr+r6NHXhhgGxo+YMxT8GsvL6 OqYuWbKBW5yCv6XoCBVGtZ58oXBInQk6I+mfOt4ejYASYLTJ9eIJLmJl8wymFH1L4fBh D6qwgp95YJh/R/1GZdc8ETwPjEaW4XU+k7iSO1jrxoJYeou4SiH0w0ZHqF9YKorm4Idc iLbF8ykL7zGhCyMex8wVT/vejzMfV8LL9l0J3oVRGrz/KJKD1G28E7SnOtdBs5FCHECi aAFR7EwiLWOY9Lbl113dCMoCHBmptC+WhJNA0h2CqRQORyWozy5zGkZiTUrG64p3fyyq jnZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=W7kRTit/NoWCrV6s0X1OousX0dNQ2oe81sw0mMzwiVI=; b=I04GTDaxtYo4I53ckfsDIEpHWXO9ux35lKCbqWdLR1FuGO0VGqovVGuIhB0GwHz3Yv He8gBfORHeSOC586oiOavEqqmmwrdtmOsjGNCTRrR091ivQj3NKvqJFy1FpE1NnwGIfr v9nwAisG6jsGHDeihnd3eQ90TaGaqwuyq+76QVBn9vuWSa2oNmNrMqOBOQ0s6kA/O7jN fWVV+PQXrvrYeSIfuVfGRIGwVYRZXlR9ES/CkJVdoMh9ABsM1ZsN6zUc/4h/EMQvnjns VX8Wz7QRNkWKEPEXUMJwsGq/6pm2J292U64fRBqCn79PMI98BQ5u7Bf9E4zsPniV7SBr k47g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=HSnWUujv; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h17si836319ejq.352.2020.08.28.08.12.35; Fri, 28 Aug 2020 08:12:58 -0700 (PDT) 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=fail header.i=@gmail.com header.s=20161025 header.b=HSnWUujv; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728217AbgH1PJy (ORCPT + 99 others); Fri, 28 Aug 2020 11:09:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726197AbgH1PJf (ORCPT ); Fri, 28 Aug 2020 11:09:35 -0400 Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9A7DC061264; Fri, 28 Aug 2020 08:09:34 -0700 (PDT) Received: by mail-qk1-x742.google.com with SMTP id o12so1205822qki.13; Fri, 28 Aug 2020 08:09:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=W7kRTit/NoWCrV6s0X1OousX0dNQ2oe81sw0mMzwiVI=; b=HSnWUujveg28vCj8uX2R+iiQq4k/5RDX/XgGqrmN9R/zNCTuyrRG1J0ms852pLywu8 lFqJ/BPTgfN0uGT9yMjeui+9d0az0yQ/8GBSYXbgXFjRAESD4TgKm/TWozU3jZhx0VV6 14LAQjW2igCplnEnQxePMQh3A0HyYqMMVOZ0cSReYqtKaPQMFMVMkQopL/BLOrCthcOM MUG/vdrbZnbSR2JPm/mSTli0wwQ5RW1Rnb2QkBdSQFn5eWM+AraW9W6WPnhzkJDMyTEZ +E8leqfNv+TU/gPyFFo7vQjDxadNKQDIxSpEgzgT45xPgDxiiHiR1ZXFXoVLt2FA+mn4 ubuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:date:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=W7kRTit/NoWCrV6s0X1OousX0dNQ2oe81sw0mMzwiVI=; b=lHLcqgyZLQ4kiCkjyD6jwcs+Kgw5miXpwkr7LNTTzKCJRxu6lta7mZVkLA2qiG+pGD wxf2obMdQR4lwA+V3t+FRLIH2nrA8ewFCIRIYaw65nid5l3XZMxPNf6C8MsFb8dO5Jlx lR2VZi04HAFyW4ndC9KP0Wf+/7/O2tHDvBMw3PozCnN56Ke75f5Z5X5bd8uKbyY9XbGd 5Dc5ILC2dICM7e/9ree2GTq+WzxZYcgTaNHyEZW6v2aBGupBLqrIgrxLlCLFfyrJhORH KBT9ozfKOE+JrLpvn63Er8uEKLBFVXTcvxu2f0yPymxXFsNcKZArbhEskXWhilTAyTys WR5Q== X-Gm-Message-State: AOAM531kmvKPKOhqTq9eh3IMuKdJpRkvnt1C5Ad7bg/qFJAfnRbe7BLF fp8M/nKD1yiDztEbbsNtnjk= X-Received: by 2002:a37:ec6:: with SMTP id 189mr1686250qko.38.1598627371481; Fri, 28 Aug 2020 08:09:31 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id x31sm1276971qtx.97.2020.08.28.08.09.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 08:09:30 -0700 (PDT) From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Fri, 28 Aug 2020 11:09:28 -0400 To: Joerg Roedel Cc: Arvind Sankar , x86@kernel.org, Joerg Roedel , hpa@zytor.com, Andy Lutomirski , Dave Hansen , Peter Zijlstra , Jiri Slaby , Dan Williams , Tom Lendacky , Juergen Gross , Kees Cook , David Rientjes , Cfir Cohen , Erdem Aktas , Masami Hiramatsu , Mike Stunes , Sean Christopherson , Martin Radev , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCH v6 13/76] x86/boot/compressed/64: Add IDT Infrastructure Message-ID: <20200828150928.GA1203097@rani.riverdale.lan> References: <20200824085511.7553-1-joro@8bytes.org> <20200824085511.7553-14-joro@8bytes.org> <20200827152657.GA669574@rani.riverdale.lan> <20200828121226.GC13881@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200828121226.GC13881@8bytes.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 28, 2020 at 02:12:26PM +0200, Joerg Roedel wrote: > Hi Arvind, > > On Thu, Aug 27, 2020 at 11:26:57AM -0400, Arvind Sankar wrote: > > On Mon, Aug 24, 2020 at 10:54:08AM +0200, Joerg Roedel wrote: > > > + pushq %rsi > > > + call load_stage1_idt > > > + popq %rsi > > > + > > > > Do we need the functions later in the series or could this just use lidt > > directly? > > The function also sets up the actual IDT entries in the table before > doing the lidt, so this needs to be a call to a C function. Setting up > IDT entries in assembly does not result in readable code. > Ah ok, I missed that in the later patches. Thanks.