Return-Path: <SRS0=mLYK=4P=vger.kernel.org=stable-owner@kernel.org> 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=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 36653C11D3D for <stable@archiver.kernel.org>; Thu, 27 Feb 2020 14:41:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 005E124656 for <stable@archiver.kernel.org>; Thu, 27 Feb 2020 14:41:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582814503; bh=LPARPR7VR2ulVbDbpMAudNuf9UmJAfhMGdKZiL9gBGs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=Jzf2gUGCisYfmh7JiUnlOPd4C7vi8ULC0zuIy3anSHaH4WrawXEfzfFCtgkUGXoOe Nkaitoci7YOtrQ+TQqmILFOyx+j70jsOuZf5aExZpSOAeDWz1Z+ci1Y143lK/ZU/OP uOjCYpcATUWEXCsa9+HTRwxT0IPgTZaxbPgsCA+8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729283AbgB0NvE (ORCPT <rfc822;stable@archiver.kernel.org>); Thu, 27 Feb 2020 08:51:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:49724 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730883AbgB0NvE (ORCPT <rfc822;stable@vger.kernel.org>); Thu, 27 Feb 2020 08:51:04 -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 376F02469F; Thu, 27 Feb 2020 13:51:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582811463; bh=LPARPR7VR2ulVbDbpMAudNuf9UmJAfhMGdKZiL9gBGs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c5SIAMD4XGjkl+sa4jTqRULAE3isSuZTSsBBoIP4it3kSqQ/PhFbRaHHPkueJvp/Z lbuOi1NafeqC+7P90HDfgXfA9SjwWO+vdL9T/CUVI5QUR8JW/PNPFfeqBHtsWz5ygF u6/5rC/PgVOt1xWL8hnUg0tfEwKXHuRkjXpw1FxY= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Oliver Upton <oupton@google.com>, Paolo Bonzini <pbonzini@redhat.com>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.9 143/165] KVM: nVMX: Dont emulate instructions in guest mode Date: Thu, 27 Feb 2020 14:36:57 +0100 Message-Id: <20200227132251.823667554@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200227132230.840899170@linuxfoundation.org> References: <20200227132230.840899170@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org
From: Paolo Bonzini <pbonzini@redhat.com> [ Upstream commit 07721feee46b4b248402133228235318199b05ec ] vmx_check_intercept is not yet fully implemented. To avoid emulating instructions disallowed by the L1 hypervisor, refuse to emulate instructions by default. Cc: stable@vger.kernel.org [Made commit, added commit msg - Oliver] Signed-off-by: Oliver Upton <oupton@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org> --- arch/x86/kvm/vmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
--- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -11354,7 +11354,7 @@ static int vmx_check_intercept(struct kv } /* TODO: check more intercepts... */ - return X86EMUL_CONTINUE; + return X86EMUL_UNHANDLEABLE; } #ifdef CONFIG_X86_64