From patchwork Wed Nov 17 03:40:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wang, Shane" X-Patchwork-Id: 330401 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oAH3eQ74023614 for ; Wed, 17 Nov 2010 03:40:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759587Ab0KQDkV (ORCPT ); Tue, 16 Nov 2010 22:40:21 -0500 Received: from mga02.intel.com ([134.134.136.20]:16490 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757675Ab0KQDkU (ORCPT ); Tue, 16 Nov 2010 22:40:20 -0500 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 16 Nov 2010 19:40:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.59,209,1288594800"; d="scan'208";a="678248965" Received: from gw-vmm.sh.intel.com (HELO localhost.localdomain) ([10.239.48.110]) by orsmga001.jf.intel.com with ESMTP; 16 Nov 2010 19:40:17 -0800 From: Shane Wang To: avi@redhat.com, mtosatti@redhat.com Cc: jan.kiszka@siemens.com, kvm@vger.kernel.org, joseph.cihula@intel.com, shane.wang@intel.com Subject: [PATCH]KVM: VMX: Inform user about INTEL_TXT dependency Date: Wed, 17 Nov 2010 11:40:17 +0800 Message-Id: <1289965217-14270-1-git-send-email-shane.wang@intel.com> X-Mailer: git-send-email 1.6.0 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 (demeter1.kernel.org [140.211.167.41]); Wed, 17 Nov 2010 03:40:27 +0000 (UTC) diff -r b1a2deff4c64 arch/x86/kvm/vmx.c --- a/arch/x86/kvm/vmx.c Wed Nov 17 12:47:42 2010 -0500 +++ b/arch/x86/kvm/vmx.c Wed Nov 17 12:49:52 2010 -0500 @@ -1306,8 +1306,11 @@ && tboot_enabled()) return 1; if (!(msr & FEATURE_CONTROL_VMXON_ENABLED_OUTSIDE_SMX) - && !tboot_enabled()) + && !tboot_enabled()) { + printk(KERN_WARNING "kvm: disable TXT in the BIOS or " + " activate TXT before enabling KVM\n"); return 1; + } } return 0;