Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5988004ybc; Wed, 27 Nov 2019 12:59:06 -0800 (PST) X-Google-Smtp-Source: APXvYqxe792EHF8GXuoCE0VTYTEFR/5loTAGPjs1yHsudY/2Gw1I0iOxFafsnOVbRZBHg/EcrG9U X-Received: by 2002:aa7:d517:: with SMTP id y23mr3555042edq.213.1574888346270; Wed, 27 Nov 2019 12:59:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574888346; cv=none; d=google.com; s=arc-20160816; b=e+fGgMN3/2ERGQnwf1Bb5aTfauR6CeALo/xi6nA5PiR65e4ied4Z0DwZvHDImWRXqO wLQt115T4BcYNAB2DnzeaGCupEgFVyrFNCp3bQDeZBUFF3ea6kdjemTKAstnhsKpPjT+ /JVp1k2ET5w80e/64BK/qtMZ0dt3R761d2tHnS2/V2VijFWny2SX02/y3JXqrYFL7r8Z xwvmmt4gGjSuw4KRSbyD5qPznoE6XCRzEO34a3z6JZJ07YiSNoO1C4IH/BtK9MJaVyHH RcuIC+yz7sstK4Zxa3A596sgQ1qFaQCT3ITQm9pM959d+wf9IZyCMIXRhN5/ONz15THY pJNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=EIcvrJSS6TXhdrRTEkR7YXnh1pycx49SAEsOmufnQIA=; b=OkXtEVheRx+dctnJMpaefR6xMR/wqtuNBFxUHFVWNyQFUbLvTXGY4R321kZ4emwJG0 rDGU7SbQ8ofdQVTcKfSOt+QBBxIo7c0CtDm5cqpU0xF9ieGm2arrzGI/jHTMQvatXs51 nvdWuwJnixrjEZTDUZFD1PndGdPdcnGTh2AGGeEbLVEgQI9joeZOx2LHMuvvmYM8unV6 fsk91yWIl6KujatY/vA2FRRkE1FMqLY4nT7NiAaYppxxmimUdv12fN5i8WZ+WIqsj6LJ 0L3tYzU8dyXYnFBBYsVjkXRYIv8eYzdi8hdd0RkS5OoK6gTk2NKzza24+w0+IMkq8NbI uFow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zuQNE8Rr; 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 e7si12659162ede.66.2019.11.27.12.58.42; Wed, 27 Nov 2019 12:59:06 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=zuQNE8Rr; 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 S1730679AbfK0U5s (ORCPT + 99 others); Wed, 27 Nov 2019 15:57:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:48896 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730862AbfK0U5p (ORCPT ); Wed, 27 Nov 2019 15:57:45 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D70AA217BA; Wed, 27 Nov 2019 20:57:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888264; bh=3SEdrihkurXXWwhveA9C1m9/FJwxrnHVGWM1zca4RWk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zuQNE8RrL8+sdSa4VXvEKfCrlnJSj53DiV9qP0neBeZjZjEMj+B5cN+MNsV9nAI6f 3QLg+3NdIIltn4q8Tz71YYqLf5w0c7t/jzz9rxgY53LpID3jqugH+uxBkTnMOrngQ4 v+JxqDj1szm9xKnbW/wB1x+QNol55HnO4CxjiZQk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Uros Bizjak , Paolo Bonzini , Sasha Levin Subject: [PATCH 4.19 068/306] KVM/x86: Fix invvpid and invept register operand size in 64-bit mode Date: Wed, 27 Nov 2019 21:28:38 +0100 Message-Id: <20191127203119.753706595@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Uros Bizjak [ Upstream commit 5ebb272b2ea7e02911a03a893f8d922d49f9bb4a ] Register operand size of invvpid and invept instruction in 64-bit mode has always 64 bits. Adjust inline function argument type to reflect correct size. Signed-off-by: Uros Bizjak Signed-off-by: Paolo Bonzini Signed-off-by: Sasha Levin --- arch/x86/kvm/vmx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index bdf019f322117..0b7559bf15ea7 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -2079,7 +2079,7 @@ static int __find_msr_index(struct vcpu_vmx *vmx, u32 msr) return -1; } -static inline void __invvpid(int ext, u16 vpid, gva_t gva) +static inline void __invvpid(unsigned long ext, u16 vpid, gva_t gva) { struct { u64 vpid : 16; @@ -2094,7 +2094,7 @@ static inline void __invvpid(int ext, u16 vpid, gva_t gva) BUG_ON(error); } -static inline void __invept(int ext, u64 eptp, gpa_t gpa) +static inline void __invept(unsigned long ext, u64 eptp, gpa_t gpa) { struct { u64 eptp, gpa; -- 2.20.1