From: Alexander Graf Subject: Re: [PATCH 9/9] Allow setting the SVME bit v5 Date: Thu, 30 Oct 2008 21:46:22 +0100 Message-ID: <449C077F-31AF-4FD7-9DCD-6BF122BFF3FC@suse.de> References: <1224522290-11740-1-git-send-email-agraf@suse.de> <1224522290-11740-2-git-send-email-agraf@suse.de> <1224522290-11740-3-git-send-email-agraf@suse.de> <1224522290-11740-4-git-send-email-agraf@suse.de> <1224522290-11740-5-git-send-email-agraf@suse.de> <1224522290-11740-6-git-send-email-agraf@suse.de> <1224522290-11740-7-git-send-email-agraf@suse.de> <1224522290-11740-8-git-send-email-agraf@suse.de> <1224522290-11740-9-git-send-email-agraf@suse.de> <1224522290-11740-10-git-send-email-agraf@suse.de> <490A0822.4030607@codemonkey.ws> <490A09D7.4000704@redhat.com> Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Cc: Anthony Liguori , kvm@vger.kernel.org, joro@8bytes.org To: Avi Kivity Return-path: Received: from ns2.suse.de ([195.135.220.15]:49067 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753116AbYJ3Uq3 (ORCPT ); Thu, 30 Oct 2008 16:46:29 -0400 In-Reply-To: <490A09D7.4000704@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 30.10.2008, at 20:24, Avi Kivity wrote: > Anthony Liguori wrote: >>> +static int nested = 0; >>> +module_param(nested, int, S_IRUGO); >>> >> >> Instead of doing this as a module parameter, we could either avoid >> advertising SVM support in cpuid from userspace or we could disable >> SVM in the BIOS. >> >> I really like the later approach because it gives a better error >> message within the guest. We could also keep the module parameter >> but it would be nice to support disabling SVM in userspace too. > > We do need to expose svme in KVM_GET_SUPPORTED_CPUID, so userspace > can enable it if it wants. But I'd like to keep the module > parameter (defaulting to off) until this has been tested better. Sure, but we can do both. Joerg was bugging me before a lot because he wanted to have SVM switched on on a per-guest basis. This would basically enable us to do that - still guarded by the kernel module parameter. Alex