Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp3552515ybe; Sun, 15 Sep 2019 18:30:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8dB3lVzSZtx6J4wB+xd7UZLy0qv5bYIXKn1j4yWE3uuUOHeYn+CvhBV+IPuMUYtIp+DOb X-Received: by 2002:a17:906:6d95:: with SMTP id h21mr24456888ejt.192.1568597403357; Sun, 15 Sep 2019 18:30:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568597403; cv=none; d=google.com; s=arc-20160816; b=eFGZCg/l9wvPXDeIkyUlAueFIrGPn4D2FYSm0vCD8uvL4cP6542+BwqasTScaVeKK8 8V+jHRevAzaMjWIYI/2LanqHPNBCLpGiRtxYwqMm4RaOQFFzpw0Ugdkv1it27LhAcr4i ha4FdpIRIMZPrb9fp1ynyxmuB6hUpV0Nyk5WzKkB66GE0zQo/bu2ohG1dvBRwwFTOZcm ZdPRly9KN9Fs8xYJP3E7vzgSEIug7knIq77jk4Kled9Y6C4e3cic1K2rvXd3AJTQkZ8q n/vEYsz5WTeCM/ce6bcCQfElSLBvX9d+j1KCOND46Lz4+7LcbMTTZ8WiKVqokQW4NcAI vPKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=eGVYxA39zyTmXP4tez/JioJTBpSbvTCv5XmW+awgs2A=; b=U0TSaMB1kqxI371OasJrSLr0k3MFCX0JGiewLwQyDp+igcy2xCK/T2nIWRPix4iXIT kHloUqhg/TB8xwQ2pFxHApXGGcDRnUT0+OCEc1VhI2bbHjy3AeoQ+L0Zkg4aF2oSDhCF 74Ivi4ewneek63Y9i+01e9LcNJnCu5U8iN40uoOfXEM4AftRtXFD/kEbZ75fvo/aGA1g atfvFg74oZPnme6JSUidv270XiLt6MiJudglbr3qo+gSF+XpPfQnj8h5RJP2ULacaW0A saEqnAi0jArdwrnb0kdRnvQAceRW0sj2nc+EBAR+P2nE2XSwHdI1C7xj+uMEO2eD4UqW FehA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qn19si18271660ejb.355.2019.09.15.18.29.05; Sun, 15 Sep 2019 18:30:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727224AbfIOTBd (ORCPT + 99 others); Sun, 15 Sep 2019 15:01:33 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:57466 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726406AbfIOTBc (ORCPT ); Sun, 15 Sep 2019 15:01:32 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id C100081DBB; Sun, 15 Sep 2019 21:01:16 +0200 (CEST) Date: Sun, 15 Sep 2019 21:01:30 +0200 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Ladi Prosek , Vitaly Kuznetsov , Liran Alon , Paolo Bonzini , Sasha Levin Subject: Re: [PATCH 4.19 043/190] KVM: hyperv: define VP assist page helpers Message-ID: <20190915190130.GA18580@amd> References: <20190913130559.669563815@linuxfoundation.org> <20190913130603.202370862@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BOKacYhQ+x31HxR3" Content-Disposition: inline In-Reply-To: <20190913130603.202370862@linuxfoundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri 2019-09-13 14:04:58, Greg Kroah-Hartman wrote: > [ Upstream commit 72bbf9358c3676bd89dc4bd8fb0b1f2a11c288fc ] >=20 > The state related to the VP assist page is still managed by the LAPIC > code in the pv_eoi field. I don't get it. > =20 > +bool kvm_hv_assist_page_enabled(struct kvm_vcpu *vcpu) > +{ > + if (!(vcpu->arch.hyperv.hv_vapic & HV_X64_MSR_VP_ASSIST_PAGE_ENABLE)) > + return false; > + return vcpu->arch.pv_eoi.msr_val & KVM_MSR_ENABLED; > +} > +EXPORT_SYMBOL_GPL(kvm_hv_assist_page_enabled); > + > +bool kvm_hv_get_assist_page(struct kvm_vcpu *vcpu, > + struct hv_vp_assist_page *assist_page) > +{ > + if (!kvm_hv_assist_page_enabled(vcpu)) > + return false; > + return !kvm_read_guest_cached(vcpu->kvm, &vcpu->arch.pv_eoi.data, > + assist_page, sizeof(*assist_page)); > +} > +EXPORT_SYMBOL_GPL(kvm_hv_get_assist_page); > + This adds two functions, but not their users. What bug is it fixing? I don't see any users in the next patch, either. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --BOKacYhQ+x31HxR3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl1+iooACgkQMOfwapXb+vI8ngCfXco/aA0VMJBsbUO38fe/wpPJ cBoAoK6tWg+FgybP5rJY1suLqWYyQu53 =nMqr -----END PGP SIGNATURE----- --BOKacYhQ+x31HxR3--