From: oritw@il.ibm.com Subject: Nested VMX support v4 Date: Thu, 10 Dec 2009 20:38:22 +0200 Message-ID: <1260470309-7166-1-git-send-email-oritw@il.ibm.com> Cc: kvm@vger.kernel.org, oritw@il.ibm.com, benami@il.ibm.com, abelg@il.ibm.com, muli@il.ibm.com, aliguori@us.ibm.com, mdday@us.ibm.com To: avi@redhat.com Return-path: Received: from mtagate7.de.ibm.com ([195.212.17.167]:56449 "EHLO mtagate7.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761392AbZLJSiZ (ORCPT ); Thu, 10 Dec 2009 13:38:25 -0500 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate7.de.ibm.com (8.13.1/8.13.1) with ESMTP id nBAIcV34028618 for ; Thu, 10 Dec 2009 18:38:31 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id nBAIcVfr1282128 for ; Thu, 10 Dec 2009 19:38:31 +0100 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id nBAIcVQZ005027 for ; Thu, 10 Dec 2009 19:38:31 +0100 Sender: kvm-owner@vger.kernel.org List-ID: Avi, We have addressed all of the comments, please apply. The following patches implement nested VMX support. The patches enable a guest to use the VMX APIs in order to run its own nested guest (i.e., enable running other hypervisors which use VMX under KVM). The current patches support running Linux under a nested KVM using shadow page table (with bypass_guest_pf disabled). Reworking EPT support to mesh cleanly with the current shadow paging design per Avi's comments is a work-in-progress. The current patches support multiple nested hypervisors, which can run multiple guests. Only 64-bit nested hypervisors are supported. SMP is supported. Additional patches for running Windows under nested KVM, and Linux under nested VMware server, are currently running in the lab, and will be sent as a follow-on patchset. This patches were written by: Orit Wasserman, oritw il.ibm.com Ben-Ami Yassor, benami il.ibm.com Abel Gordon, abelg il.ibm.com Muli Ben-Yehuda, muli il.ibm.com With contributions by: Anthony Liguori, aliguori us.ibm.com Mike Day, mdday us.ibm.com This work was inspired by the nested SVM support by Alexander Graf and Joerg Roedel. Changes since v3: Added support for 32-bit nested guests Added support for multiple nested guests Added support for multiple nested hypervisors Implemented VMX instruction decoding Implemented CR0.TS handling for nested