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 X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB0A3C4727F for ; Fri, 25 Sep 2020 21:07:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5769723888 for ; Fri, 25 Sep 2020 21:07:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="C/6LGKJ1" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728662AbgIYVHM (ORCPT ); Fri, 25 Sep 2020 17:07:12 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:42894 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726694AbgIYVHM (ORCPT ); Fri, 25 Sep 2020 17:07:12 -0400 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601068030; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WtDwwcJi59z1D/HKuiCOR5O73IrRrE1wXfUfD2k4jj0=; b=C/6LGKJ1FcP3qI+aCgQKB99TThBiHCnaMbBQwg6RqrHJCUO3VIOBDF8jgJknh8gmr6/7nN +EDb1uiNIDINYDC2PxMsmlHQU0uiKqhvFsV7MB5Le5mlhQwq/GYPBRGlQkyIuEjyhJJIxv tA1TPEqN6h4Vew4ZhaZvRHyCMSe58RA= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-246-gThTercnPnS3LehKNNL1dg-1; Fri, 25 Sep 2020 17:07:08 -0400 X-MC-Unique: gThTercnPnS3LehKNNL1dg-1 Received: by mail-wm1-f69.google.com with SMTP id p20so141778wmg.0 for ; Fri, 25 Sep 2020 14:07:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=WtDwwcJi59z1D/HKuiCOR5O73IrRrE1wXfUfD2k4jj0=; b=kykEOppYpCnvW4KdIF46JeGe6wFArhJSETTSm3CW7/2G2/YshRgHxbTCXX3qGyI4dU 01INEX9vpJee23TfABF3RXSmNMc6plEgve07WB23zHvmHmvKT5CdenaaRtkkM/euKA+2 ImW+489ntWYF84qvY9tdMbPffh7rQq6MDv+fLWyh9gLrdQiRELA+SXGj7FS4NA4qU9uY hSAH6AuLsY793aZmMhvrsvrp4qauASQJ8SK3xyzYdefZzWoasGSSEtCc4Li32GSueu3U ftiDHMrN2d5iO38zuF746mVTWng6Hj+OXB6fCLPmy0cjhHhtHhxbKt76HwfcX8NWOTzg 8Yrw== X-Gm-Message-State: AOAM530oQQfsv41WXdyEawCRQfsgdH9S+ZkBRg5hW/5bc/tAXvdQ8dXZ jqS9oF0l4idBRofysKiriv0IlSldJde7SwsYgYKRUFCllsl5cXnprw3Kd0/M5RYD7g6cHJlu+0O Fqohq300QOMmuNNQKfqxm4T0X X-Received: by 2002:a05:600c:2183:: with SMTP id e3mr457974wme.49.1601068026737; Fri, 25 Sep 2020 14:07:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzepkHEOYf7m00OenFDw5LRaOwFSj9BZafaij8HANdVNw/0nzhGSsNqlZMboX6tC0BbrvI+uQ== X-Received: by 2002:a05:600c:2183:: with SMTP id e3mr457953wme.49.1601068026456; Fri, 25 Sep 2020 14:07:06 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:ec9b:111a:97e3:4baf? ([2001:b07:6468:f312:ec9b:111a:97e3:4baf]) by smtp.gmail.com with ESMTPSA id b188sm239515wmb.2.2020.09.25.14.07.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Sep 2020 14:07:05 -0700 (PDT) Subject: Re: [PATCH 0/2] KVM: VMX: Super early file refactor for TDX To: Sean Christopherson Cc: Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Xiaoyao Li References: <20200923183112.3030-1-sean.j.christopherson@intel.com> From: Paolo Bonzini Message-ID: Date: Fri, 25 Sep 2020 23:07:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200923183112.3030-1-sean.j.christopherson@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/09/20 20:31, Sean Christopherson wrote: > Rename vmx/ops.h to vmx/vmx_ops.h, and move VMX's posted interrupt support > to dedicated files in preparation for future Trust Domain Extensions (TDX) > enabling. > > These changes are somewhat premature, as full TDX enabling is months away, > but the posted interrupts change is (IMO) valuable irrespective of TDX. > > The value of the vmx_ops.h rename without TDX is debatable. I have no > problem deferring the change to the actual TDX series if there are > objections. I'm submitting the patch now as getting the rename upstream > will save us minor merge conflict pain if there are changes to vmx/ops.h > between now and whenever the TDX enabling series comes along. > > https://software.intel.com/content/www/us/en/develop/articles/intel-trust-domain-extensions.html > > Sean Christopherson (1): > KVM: VMX: Rename ops.h to vmx_ops.h > > Xiaoyao Li (1): > KVM: VMX: Extract posted interrupt support to separate files > > arch/x86/kvm/Makefile | 3 +- > arch/x86/kvm/vmx/posted_intr.c | 332 ++++++++++++++++++++++++++ > arch/x86/kvm/vmx/posted_intr.h | 99 ++++++++ > arch/x86/kvm/vmx/vmx.c | 321 +------------------------ > arch/x86/kvm/vmx/vmx.h | 92 +------ > arch/x86/kvm/vmx/{ops.h => vmx_ops.h} | 0 > 6 files changed, 440 insertions(+), 407 deletions(-) > create mode 100644 arch/x86/kvm/vmx/posted_intr.c > create mode 100644 arch/x86/kvm/vmx/posted_intr.h > rename arch/x86/kvm/vmx/{ops.h => vmx_ops.h} (100%) > Queued, thanks. Paolo