From patchwork Tue Apr 20 02:19:02 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manish Regmi X-Patchwork-Id: 93596 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o3K2JGLB000833 for ; Tue, 20 Apr 2010 02:19:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753077Ab0DTCTJ (ORCPT ); Mon, 19 Apr 2010 22:19:09 -0400 Received: from mail-vw0-f46.google.com ([209.85.212.46]:54996 "EHLO mail-vw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752421Ab0DTCTH (ORCPT ); Mon, 19 Apr 2010 22:19:07 -0400 Received: by vws5 with SMTP id 5so2610008vws.19 for ; Mon, 19 Apr 2010 19:19:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:content-type :content-transfer-encoding; bh=6eLvlRJlaL9Tn87suU9IhrrfKbkko7namtlD6Dw/uXQ=; b=YbTIBjqKF35LzZywBX0JEs70H3zZigSH23dn4Aq4ltG5xeSAQI+T6TMjO+FYul8vQR Q512kOlwAEahtdPrIwQPV8mWMW1VoDM/crLje05EDZLCIYS3nxAWaPJMuDYXq0J49D7+ cTI+X8SAo6/Rnjl9vgZJN+qMSNuQjPVRerFLc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; b=FWfw9Wwneon1Oh/oxEh5kKe9Eo8bOt/4hfjyqoKq3olwdfHXhu+AFauKwnCLbgp+zL UC4Gx2FpVLHeg8iJUrFvKfuTiP3AGHwxLYyNWt6OBM4917RKO30s80lUMWgZ2mwmQns0 /PtC8fYS0OENLaJZcE1gCrO0l/L200EzS977Y= Received: by 10.220.122.86 with SMTP id k22mr2341616vcr.145.1271729945285; Mon, 19 Apr 2010 19:19:05 -0700 (PDT) Received: from [192.168.1.100] (ip68-97-41-155.ok.ok.cox.net [68.97.41.155]) by mx.google.com with ESMTPS id s9sm13591892vcr.3.2010.04.19.19.19.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 19 Apr 2010 19:19:04 -0700 (PDT) Message-ID: <4BCD0F16.2080701@gmail.com> Date: Mon, 19 Apr 2010 21:19:02 -0500 From: Manish Regmi User-Agent: Thunderbird 2.0.0.24 (X11/20100411) MIME-Version: 1.0 To: kvm@vger.kernel.org CC: avi@redhat.com Subject: [PATCH 1/1 V2] clear leftmost bit when exit failure is vm entry type Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 20 Apr 2010 02:19:17 +0000 (UTC) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 0b896ac..e0ca917 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -3642,7 +3642,7 @@ static void vmx_complete_interrupts(struct vcpu_vmx *vmx) exit_intr_info = vmcs_read32(VM_EXIT_INTR_INFO); - vmx->exit_reason = vmcs_read32(VM_EXIT_REASON); + vmx->exit_reason = vmcs_read32(VM_EXIT_REASON) & ~VMX_EXIT_REASONS_FAILED_VMENTRY; /* Handle machine checks before interrupts are enabled */ if ((vmx->exit_reason == EXIT_REASON_MCE_DURING_VMENTRY)