From: Amit Shah Subject: VMX: Fix long mode activation Date: Fri, 20 Feb 2009 22:53:36 +0530 Message-ID: <1235150617-15927-1-git-send-email-amit.shah@redhat.com> Cc: kvm@vger.kernel.org To: avi@redhat.com Return-path: Received: from mx2.redhat.com ([66.187.237.31]:33258 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754439AbZBTRXb (ORCPT ); Fri, 20 Feb 2009 12:23:31 -0500 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n1KHNUWS001690 for ; Fri, 20 Feb 2009 12:23:30 -0500 Sender: kvm-owner@vger.kernel.org List-ID: This patch correctly sets the host vmx state to shadow guest state when it enters long mode. With this fix, we can have is_long_mode() test for EFER.LMA instead of EFER.LME which was done in commit 3a001629eea909b2aa97f001a9db4700f15d986b but reverted in commit 5e23049e86dd298b72e206b420513dbc3a240cd9 because it broke Windows x64 guests. Please apply and then revert 5e23049e86dd298b72e206b420513dbc3a240cd9 or re-cherry-pick 3a001629eea909b2aa97f001a9db4700f15d986b. Amit