From: Alexander Graf Subject: [PATCH 0/9] [RFC] Add support for nested SVM (kernel) Date: Mon, 1 Sep 2008 13:57:52 +0200 Message-ID: <1220270281-15720-1-git-send-email-agraf@suse.de> Cc: joro@8bytes.org, anthony@codemonkey.ws, Alexander Graf To: kvm@vger.kernel.org Return-path: Received: from ns.suse.de ([195.135.220.2]:34997 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753556AbYIAL6E (ORCPT ); Mon, 1 Sep 2008 07:58:04 -0400 Sender: kvm-owner@vger.kernel.org List-ID: 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. Alexander Graf (9): Add CPUID feature flag for SVM Clean up VINTR setting Implement GIF, clgi and stgi Add helper functions for nested SVM Allow setting the SVME bit Implement hsave Add VMLOAD and VMSAVE handlers Add VMRUN handler Add VMEXIT handler and intercepts arch/x86/kvm/kvm_svm.h | 13 + arch/x86/kvm/svm.c | 716 +++++++++++++++++++++++++++++++++++++++++- arch/x86/kvm/svm.h | 2 + include/asm-x86/cpufeature.h | 1 + 4 files changed, 720 insertions(+), 12 deletions(-)