From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 A5FB1C4BA18 for ; Wed, 26 Feb 2020 18:18:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7A36224650 for ; Wed, 26 Feb 2020 18:18:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582741081; bh=t0PoTwyJCBzBCWA1G1RoanVyuAr5XB+d6N2ka4/kQJg=; h=Subject:To:Cc:From:Date:List-ID:From; b=j4pZYBoGAYLhFbtgDUjn4z2logo4zwO1K1W+upX/yEoFKXcxy1+NgHmPKlaLD3LIL O9d5iX6J3nsmAgiZYX0LBlmOYNnVrnGCPAOZ05B3unqNTEz8J6NZz0ACdu5SbrqnHr vhISndGBnNlgld1Ikfeb1KrEkJAY9sj5sksAfP0o= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726970AbgBZSSB (ORCPT ); Wed, 26 Feb 2020 13:18:01 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:39027 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726956AbgBZSSB (ORCPT ); Wed, 26 Feb 2020 13:18:01 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 7C659220BD; Wed, 26 Feb 2020 13:18:00 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 26 Feb 2020 13:18:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=W/7azV ayQ1f5A8h/LsRXzan1Y46FY9T4M5Nm7JiantM=; b=J/55S1gAzxuTy4aH6ecWuA 1N9/u/GPssnRYqK3Gi70A1flD/RBH+3kl8EKzET67WjrJDXtMxdOuZ/wJ02Ox2Vu Xu4Nvt1E1+mdk3vRMw9QVN12F/501o05gUOqIOhCFZffdLpvVsw7CZZgKFu/TlDB dhtkS/6coHa0xAJj/jXesrby0blW8/G3fq9QnjIsEM2zhVdXmuEbACabXByf6GBr NK/Rf/3mizbwu3cgHXVa1WtzsYzSGA/pECGeIEc2wsJfvRmqcfrdrOxFYqi8uTeG YJdZN5Kv+X9Gt6VCo1O4seI/E2km1rfs4CNsjbo6+m0FDlWCuS+h7q23AvIeVs5w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrleeggdduudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvffhfffkgggtgfesthekredttd dtlfenucfhrhhomhepoehgrhgvghhkhheslhhinhhugihfohhunhgurghtihhonhdrohhr gheqnecukfhppeekfedrkeeirdekledruddtjeenucevlhhushhtvghrufhiiigvpedune curfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhhdrtghomh X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 21C23328005E; Wed, 26 Feb 2020 13:18:00 -0500 (EST) Subject: FAILED: patch "[PATCH] KVM: nVMX: Don't emulate instructions in guest mode" failed to apply to 4.9-stable tree To: pbonzini@redhat.com, oupton@google.com Cc: From: Date: Wed, 26 Feb 2020 19:17:49 +0100 Message-ID: <158274106914255@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org The patch below does not apply to the 4.9-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 07721feee46b4b248402133228235318199b05ec Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 4 Feb 2020 15:26:29 -0800 Subject: [PATCH] KVM: nVMX: Don't emulate instructions in guest mode 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 Signed-off-by: Paolo Bonzini diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index dcca514ffd42..5801a86f9c24 100644 --- a/arch/x86/kvm/vmx/vmx.c +++ b/arch/x86/kvm/vmx/vmx.c @@ -7164,7 +7164,7 @@ static int vmx_check_intercept(struct kvm_vcpu *vcpu, } /* TODO: check more intercepts... */ - return X86EMUL_CONTINUE; + return X86EMUL_UNHANDLEABLE; } #ifdef CONFIG_X86_64