From: Alexander Graf Subject: Re: [PATCH 0/9] [RFC] Add support for nested SVM (kernel) Date: Mon, 1 Sep 2008 16:17:39 +0200 Message-ID: References: <1220270281-15720-1-git-send-email-agraf@suse.de> <20080901134110.GD2151@redhat.com> Mime-Version: 1.0 (Apple Message framework v926) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, joro@8bytes.org, anthony@codemonkey.ws To: "Daniel P. Berrange" Return-path: Received: from cantor2.suse.de ([195.135.220.15]:50075 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750933AbYIAORm (ORCPT ); Mon, 1 Sep 2008 10:17:42 -0400 In-Reply-To: <20080901134110.GD2151@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Sep 1, 2008, at 3:41 PM, Daniel P. Berrange wrote: > On Mon, Sep 01, 2008 at 01:57:52PM +0200, Alexander Graf wrote: >> The current generation of virtualization extensions only supports >> one VM layer. >> While we can't change that, it is pretty easy to emulate the CPU's >> behavior >> and implement the virtualization opcodes ourselves. >> >> This patchset does exactly this for SVM. Using this, a KVM can run >> within a VM. >> Since we're emulating the real CPU's behavior, this should also >> enable other >> VMMs to run within KVM. >> So far I've only tested to run KVM inside the VM though. >> >> This was created with help from Joerg Roedel. I don't really know >> how put this >> information in the patchset though. Maybe set him on signed-off-by? >> >> As always, comments and suggestions are highly welcome. > > Very useful work - I need exactly this capability for building a > libvirt Thanks ;-). The amazingly simple design of SVM really makes this easy. > integration test harness. Running xen within kvm was not letting me > test > libvirt's Xen HVM handling, and kvm/xen within qemu was too slow to be > viable. Hopefully xen/kvm within kvm will suit my test suite > perfectly. > > I'm guessing this requires that you have AMD cpus for the host ? > Would it > be much more work to support VMX for those with Intel cpus too... This is completely implementation specific. So for now this is 100% AMD only code. Also I don't really like Intel's design for VMX and while making nested VMX work might not be _that_ hard, getting it fast would probably require a lot of work and hacks. Alex > > > Daniel > -- > |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ > :| > |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org > :| > |: http://autobuild.org -o- http://search.cpan.org/~danberr/ > :| > |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 > 7D3B 9505 :|