Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4665247pxv; Tue, 6 Jul 2021 06:28:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw27EJrT7xkyBE7OyZY4T+DEe+og/Jiyvtg3PiqTOPRnNQkCak1HkLpb2h9Crlxqt8RFZzU X-Received: by 2002:a17:906:478b:: with SMTP id cw11mr18073445ejc.241.1625578133075; Tue, 06 Jul 2021 06:28:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625578133; cv=none; d=google.com; s=arc-20160816; b=A4DGbuH5AgciWwZlJqGONXgm+O7NQSgswImU1xAywFTnUNFICdxqD0P/26i/zSJ8L7 O2cixqgv4JS45mtJwrgUYPNibNpqRgCQ3KjkvMc1PjbyCkS4ngT2UH15S9Oe/NEesNHK xrG6cq+01yxeBBfNnwjTKhL0OLqjEWVK/rSZOvTAfJN3gMcn1dsSDpS+KWqIh4EPIozJ +y2VrpCMOqQf7m3Rd4wMLgTjqloOE2e2EJ8nvg7zqFHxeOGQsFhahikRmZRGsUdc9iB9 fZHiNzxkQCn0bTX3FGoUghDgLSYNRwSEtWnXMbhBoa3sr1AnZwiwjO+gkZH8udV2ngVl xAwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=4Oa/VPfYxGLP3gmpzmtmdJTUZPvZ5vrg9jNApBaEdpU=; b=adgrPM/UKv3ucLVlkAC1DvuHVHrMZsA9JJnroJ7oe8715csIHRg/KbtSvLiL56lpSP RvLeG0pEXIG0YMvDNvY+XeJ0fZTgb2+LyWrozlM6+2uHlpu0BC9pBeG3JT8T060dIhDR BTvwlMmvnbWdj1dVIRt9ctsB3rTbwUPKdsf5cgzKUNXs5j6COrTviQJJPrMUY+sMYfbA 9d6zeN2Ry3//0YWy1+6nbr4DapGypVmLiKWsGQSDla+iy5IbiWq+ebhGxM5uFID+1Bt1 piSHcry87ZX0ocDaUVlJbIRigV0PuNQKUBbHf9eKS1qKG3VOGcyipktjYM38euNh9zJU xUgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EIzIgYz9; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 8si14066712ejb.575.2021.07.06.06.28.28; Tue, 06 Jul 2021 06:28:53 -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=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EIzIgYz9; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231969AbhGFN27 (ORCPT + 99 others); Tue, 6 Jul 2021 09:28:59 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:59232 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231487AbhGFN26 (ORCPT ); Tue, 6 Jul 2021 09:28:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1625577979; 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=4Oa/VPfYxGLP3gmpzmtmdJTUZPvZ5vrg9jNApBaEdpU=; b=EIzIgYz9MXuuMatLBMBkF3lIDmyzPdBD1MzKvuo0Z94f7cJcufCpc+y8R2RLx98QELxwbV cQ4K354t8OvIT/INVELazPyh4m4xRpIS2hNS+8+ZPum2Z7dmGTrKtvzgV+Ky2owGGDqm4y JshBmFxZ1xaQyus4hCsHFIDVrzlN7Ys= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-495-vviUYDiOPYyE0ANzT_tItg-1; Tue, 06 Jul 2021 09:26:18 -0400 X-MC-Unique: vviUYDiOPYyE0ANzT_tItg-1 Received: by mail-ed1-f70.google.com with SMTP id j15-20020a05640211cfb0290394f9de5750so10740524edw.16 for ; Tue, 06 Jul 2021 06:26:17 -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=4Oa/VPfYxGLP3gmpzmtmdJTUZPvZ5vrg9jNApBaEdpU=; b=iF2mvMnqe2XdZoDnlqvR6f1t/wyI0BzgiXllPQF2R/qjbxreou7Ple95ZWUJTbkwaT 23CqI4tN1KHkwbsQxg+zEsb7zR7XOiLURrwkpcgMx4ODVN7/G8okgkGkgmmKKBw6JNHO j7XU4jICvZ5OZ1YVKd26SbRn0X1qvABaENHnZ/X6xQQmiS+n0iNlmMoM25nfvZU2o2Cs Z8slCTJ7NXfUP0pC3im9X4ZqOUWcpB/ScMc6sLSVHcGfB4dNynr3Vn2YGYIpVWlR7E2D mI1I13AT8Dpv28CguNKG3iFdgezhA1zyGKZkYy7RlRoGHNABfQXSlW84aVuc9pxe5SnK 06Rw== X-Gm-Message-State: AOAM530hLDG0viepy5zoEMZGSL+IYEde2Bbgd3jUBj2eoVaqakJZKUwD QptjZ5uJig77JHI88oElhxEYxobKlon457DJiZva7y0R5cEUBrLRSbklCFndic1PTrF7joadYyZ EtKwXaBX777rMpcz8Tc+fVK3T X-Received: by 2002:a17:906:e256:: with SMTP id gq22mr18594606ejb.248.1625577976956; Tue, 06 Jul 2021 06:26:16 -0700 (PDT) X-Received: by 2002:a17:906:e256:: with SMTP id gq22mr18594587ejb.248.1625577976775; Tue, 06 Jul 2021 06:26:16 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id mm27sm5679601ejb.67.2021.07.06.06.26.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Jul 2021 06:26:12 -0700 (PDT) Subject: Re: [RFC PATCH v2 12/69] KVM: Export kvm_io_bus_read for use by TDX for PV MMIO To: isaku.yamahata@intel.com, Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , erdemaktas@google.com, Connor Kuehl , Sean Christopherson , x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: isaku.yamahata@gmail.com, Sean Christopherson References: <2dd423f9764c72624f1fa6d551b45ab245c4255f.1625186503.git.isaku.yamahata@intel.com> From: Paolo Bonzini Message-ID: <9d5a774f-6fa4-d780-a314-c82155d212da@redhat.com> Date: Tue, 6 Jul 2021 15:26:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <2dd423f9764c72624f1fa6d551b45ab245c4255f.1625186503.git.isaku.yamahata@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/07/21 00:04, isaku.yamahata@intel.com wrote: > From: Sean Christopherson > > Later kvm_intel.ko will use it. > > Signed-off-by: Sean Christopherson > Signed-off-by: Isaku Yamahata > --- > virt/kvm/kvm_main.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c > index 46fb042837d2..9e52fe999c92 100644 > --- a/virt/kvm/kvm_main.c > +++ b/virt/kvm/kvm_main.c > @@ -4606,6 +4606,7 @@ int kvm_io_bus_read(struct kvm_vcpu *vcpu, enum kvm_bus bus_idx, gpa_t addr, > r = __kvm_io_bus_read(vcpu, bus, &range, val); > return r < 0 ? r : 0; > } > +EXPORT_SYMBOL_GPL(kvm_io_bus_read); > > /* Caller must hold slots_lock. */ > int kvm_io_bus_register_dev(struct kvm *kvm, enum kvm_bus bus_idx, gpa_t addr, > Reviewed-by: Paolo Bonzini