Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1887293pxv; Fri, 2 Jul 2021 15:11:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0A+PF5wvj7Xiqc1sQFwGWDAlNkWdNzlksLmiShYjVBNr6E3XW6Z1ZZlf3dhGl75arCDjc X-Received: by 2002:a17:907:9691:: with SMTP id hd17mr1936694ejc.51.1625263902670; Fri, 02 Jul 2021 15:11:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625263902; cv=none; d=google.com; s=arc-20160816; b=A3D/+tDrQltmNgr9PmXtLo/HzoUP679whH2AouM6abnZeoqYxp3fwxWvq9tFG/8Yqm jTZ0zJN0dlDSDf85esLjnzoq+CwBEy2tthSOkYwWTzvbvS0POluZi0Q9HRrUkZIqMyQA nc3MsS6nTuNfj0mEK6qB5VeiQOZdCghZu8jpNQAvfUhoP2huon1mxYOO78uAaf9OHtr1 mKeX6NHdDJhOl5cRRLz0YxfWPkxHIOffN464J48N8Kz8FqTphWvOwR4VQzhFhgu+e5ji SfQXDiYj2KYbUTlvy9K89ua4OxKDP8/xbKRCk9UefyGn3N47lwaS3DdIbbFuNvHXQBo5 JoWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=29Gmmi0E39AAH+pipEKqdTP/9LjDgrowiAt+EVYavY4=; b=aiW//T52DC3VcaUAeOvIlD9S5RdxOLVeb4NbnOmz7E6Nmtl1YUlqJEyC86oAIehlEE 9r1aeHzPhjaN5Z6yPoao1NxqH81EHd01fr62N7RoThFBOjX5jOh1ZwZqHXftIRFZjqb2 JFLqe43u9ZhCeA1uBZrIvH2t+UReihCLQnZdpCf5k0lHA8or52emDv28U4Ho0U32GM/z vznHiljXHZ3CVdFX8+PZG6ZnuJvBFS8TynPAx8yc3xArx3AX+6Q8axC8bSfCTtwVdZWo kWf/DUBR2C/oVR7krC/rHHKT7OrEbtEYepTg2rDycmrnsQp073Gjc6eG6ECOQZ3UGH1v bAxQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm4si4500818ejc.194.2021.07.02.15.11.19; Fri, 02 Jul 2021 15:11:42 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234578AbhGBWKe (ORCPT + 99 others); Fri, 2 Jul 2021 18:10:34 -0400 Received: from mga02.intel.com ([134.134.136.20]:51168 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233022AbhGBWHy (ORCPT ); Fri, 2 Jul 2021 18:07:54 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10033"; a="195951892" X-IronPort-AV: E=Sophos;i="5.83,320,1616482800"; d="scan'208";a="195951892" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2021 15:05:21 -0700 X-IronPort-AV: E=Sophos;i="5.83,320,1616482800"; d="scan'208";a="642814707" Received: from ls.sc.intel.com (HELO localhost) ([143.183.96.54]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2021 15:05:21 -0700 From: isaku.yamahata@intel.com To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Paolo Bonzini , 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@intel.com, isaku.yamahata@gmail.com, Sean Christopherson Subject: [RFC PATCH v2 12/69] KVM: Export kvm_io_bus_read for use by TDX for PV MMIO Date: Fri, 2 Jul 2021 15:04:18 -0700 Message-Id: <2dd423f9764c72624f1fa6d551b45ab245c4255f.1625186503.git.isaku.yamahata@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, -- 2.25.1