Received: by 10.223.164.202 with SMTP id h10csp63203wrb; Thu, 9 Nov 2017 02:48:37 -0800 (PST) X-Google-Smtp-Source: ABhQp+SqD7jV6iP/9eU0QOx5GohqWbf5rlsCPKL2YibZ+vVWoMl82GaMBhC+vBxV4qwPszTqdrSd X-Received: by 10.159.246.139 with SMTP id c11mr17480pls.371.1510224517261; Thu, 09 Nov 2017 02:48:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510224517; cv=none; d=google.com; s=arc-20160816; b=BcS2mw3KFPS1SRiz+5w4WXiTIXEswqVzpgN82FZEsZIpN5bsC9TjXowCgxhSLs5mdN h3lLXaVXvtTVcZsH7Gycec8spznnjqIqGEj4zewH/m57I89SYAGcqJMF7Xb3VkMB44+L CF0GQJ/zEs/9LaF6tEBvWM24UVX+kY/+CwX2c/NKu2+gfIcI4SGPxBT4PoZhbu4M+z2L IIFXbGajFwiqnRCbukbJQX9NKmb6fxZA9+FTAAbT6gxSODkW2XJqVDYpFEeEa+souCkv 5J7BmHbW6BCcxo+rzy7HqQ8k12d0atfxGMdc3k1G7ZyMRBinu8snvZwBAEbRwoX/KStZ EyPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=MKh8/wEWsV3kCiMKqRJEoXS89PBj91he7gQAvk1zrrE=; b=v+DYYbgTtlSeVZTNsU5zXEGZR3V0zYKUifh0G7e9TmgmNOLdMpV9LfAhwlI6MNjyFq 86RAXfl6be2Vrffo0dpj8XqVLJkJvZCOR6aLqUp229p+maAp9Uqh+Q5w3YFzb+6I/kgC IvlNISQX4WtupdOxhXS9j8ClaD4pAOCfY+mNvq4XP7B4CutVaQcPq+Y39rdamB6KrHUs kPP5CXmXPRQM2m92fbAfS4w8CUnWrpZzhPraJ8hogtXdaRAWiuk5oBEtBdxVbGk2GVzb wps22h7LNuDxrka6ZrHRYiQWS5LiLuczMRpkmG6MzHG4sTV9LXtotuBq3D6OwS7/f5Ut KNEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DNo3SzOP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x1si3357866pfj.295.2017.11.09.02.48.25; Thu, 09 Nov 2017 02:48:37 -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=@gmail.com header.s=20161025 header.b=DNo3SzOP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753063AbdKIKrr (ORCPT + 81 others); Thu, 9 Nov 2017 05:47:47 -0500 Received: from mail-oi0-f41.google.com ([209.85.218.41]:45975 "EHLO mail-oi0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752930AbdKIKrp (ORCPT ); Thu, 9 Nov 2017 05:47:45 -0500 Received: by mail-oi0-f41.google.com with SMTP id f66so4111045oib.2; Thu, 09 Nov 2017 02:47:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=MKh8/wEWsV3kCiMKqRJEoXS89PBj91he7gQAvk1zrrE=; b=DNo3SzOPMapZhwSg5OtlpcjqhTkUsCSCyn1UvNhWPdMfm6NJ/8Ho4X+4Q+eZ6JzFkq GBTzygmwx6k2P8okNGsFYAUJghAGIDBMOUVk3rNuaMSOaYi1Bt4ecvU9Qf/KrtoAtCph /9g0mIDBmJcPPI8WA0Mzt/Ud7YbnfWMicY/A0VIcDlUkzlxB3QYPP1JRsmsBSyyiAYmo m6uI2Fb1Kc7075SQsy17h1/smlEZdbqJIgbA60V7xMHMflfQ1iKCxNi+12T/u1UQWmIo FGVLqNoUCH3F3h0O+OmlFjv2Kn+b7Udsj+510rxT5Q6uIF/0AvEoLhp3HmswYWUqI4+v aFSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=MKh8/wEWsV3kCiMKqRJEoXS89PBj91he7gQAvk1zrrE=; b=D4mNgcoiHqgWiRs60WWzYOT4ue+YFSwmEYD6gB7invC8UmMCZQ8Dm1dLQCDDjvvVcX KCLJQUHp0opZp11kdmB8kxA3EJrlkrSWcUsnm9MIa/tTfVvpavBZOFYdJQMEwS7IbTn7 vHAy132VHa/B/1OdVq61dOz9lyZmfNZac7H8iIgebMGryM0+YH9h09PfvPgJGzePJiwN FXdgfwrgMXzEB6j1v5nKVIXaVUNo2GaHOCVAlK6/D37ZphT/jMHdv+ipnMksvpM8Zy5O KLe6Ny189JvZeDll3+07JE3FdtctniuYz6FcopWFRAOenkiuzYRnIa9MA50Fg//jaZ3d FjTw== X-Gm-Message-State: AJaThX4MMIId8GND78d/Cwc+y+9L5D6IQfUJNQoknosz4+77SJQNAHtq 9bTjbnSHNuv+VF+7XBBIAbygQrSIAXPphfYbfkk= X-Received: by 10.202.171.76 with SMTP id u73mr15388oie.155.1510224464975; Thu, 09 Nov 2017 02:47:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.74.53.27 with HTTP; Thu, 9 Nov 2017 02:47:44 -0800 (PST) In-Reply-To: <3201561c-55c4-8edb-41bc-d4247520f61c@redhat.com> References: <1509670249-4907-1-git-send-email-wanpeng.li@hotmail.com> <1509670249-4907-3-git-send-email-wanpeng.li@hotmail.com> <50b82c53-1e57-88a9-25bd-76697bf2d048@oracle.com> <3201561c-55c4-8edb-41bc-d4247520f61c@redhat.com> From: Wanpeng Li Date: Thu, 9 Nov 2017 18:47:44 +0800 Message-ID: Subject: Re: [PATCH v5 3/3] KVM: nVMX: Fix mmu context after VMLAUNCH/VMRESUME failure To: Paolo Bonzini Cc: Jim Mattson , Krish Sadhukhan , LKML , kvm list , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Wanpeng Li Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2017-11-09 18:40 GMT+08:00 Paolo Bonzini : > On 09/11/2017 01:37, Wanpeng Li wrote: >> 2017-11-09 5:47 GMT+08:00 Jim Mattson : >>> I realize now that there are actually many other problems with >>> deferring some control field checks to the hardware VM-entry of >>> vmcs02. When there is an invalid control field, the vCPU should just >>> fall through to the next instruction, without any state modifiation >>> other than the ALU flags and the VM-instruction error field of the >>> current VMCS. However, in preparation for the hardware VM-entry of >>> vmcs02, we have already changed quite a bit of the vCPU state: the >>> MSRs on the VM-entry MSR-load list, DR7, IA32_DEBUGCTL, the entire >>> FLAGS register, etc. All of these changes should be undone, and we're >>> not prepared to do that. (For instance, what was the old DR7 value >>> that needs to be restored?) >> I didn't observe real issue currently, and I hope this patchset can >> catch the upcoming merge window. Then we can dig more into your >> concern. > > Can any of you write a simple testcase for just one bug (e.g. DR7)? Jim you can have a try for your concern, I have already tried tons of stress testing and didn't observe any issue. Regards, Wanpeng Li From 1583584737015553408@xxx Thu Nov 09 10:41:31 +0000 2017 X-GM-THRID: 1583003100143951555 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread