From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755561Ab0IFQB5 (ORCPT ); Mon, 6 Sep 2010 12:01:57 -0400 Received: from va3ehsobe006.messaging.microsoft.com ([216.32.180.16]:25433 "EHLO VA3EHSOBE009.bigfish.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754937Ab0IFP5n (ORCPT ); Mon, 6 Sep 2010 11:57:43 -0400 X-SpamScore: -3 X-BigFish: VS-3(zz4015Lzz1202hzz8275dhz32i87h2a8h61h) X-Spam-TCS-SCL: 0:0 X-FB-DOMAIN-IP-MATCH: fail X-WSS-ID: 0L8C1L6-02-79S-02 X-M-MSG: From: Joerg Roedel To: Avi Kivity , Marcelo Tosatti CC: Alexander Graf , joro@8bytes.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/27] Nested Paging Virtualization for KVM v3 (now with fixed Cc-List) Date: Mon, 6 Sep 2010 17:55:39 +0200 Message-ID: <1283788566-29186-1-git-send-email-joerg.roedel@amd.com> X-Mailer: git-send-email 1.7.0.4 MIME-Version: 1.0 Content-Type: text/plain X-Reverse-DNS: ausb3extmailp02.amd.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (Now with correct Cc-list. I accidentially copied the wrong line from MAINTAINERS in the first post of this. Sorry for the double-post) Hi Avi, Marcelo, here is finally the third round of my NPT virtualization patches for KVM. It took a while to get everything running (including KVM itself) on 32 bit again to actually test it. But testing on 32 bit host and with a 32 bit hypervisor was a very good idea. I found some serious bugs and shortcomings in my code that are fixed now in v3. The patchset was tested in a number of combinations: host(64|32e) ->kvm(shadow|npt) ->guest(64|32e|32) ->test(boot|kbuild) host(64|32e) ->kvm(npt) ->guest(64|32e|32) ->kvm(shadow|kvm) ->guest(64|32e|32) ->test(boot|kbuild) Only the valid combinations where tested of course, so no 64 bit on 32 bit combinations were tested. Except for that I tested all of the above combinations and all worked without any regressions. Other changes since v2 are: * Addressed the review comments from v2: - Rebased everything to latest upstream code - renamed nested_mmu to walk_mmu to make its meaning more clear - the gva_to_gpa functions are not longer swapped between the two mmu states which makes it more consistent - Moved struct vcpu page fault data into seperate sub-struct for better readability - Other minor stuff (coding style, typos) - Renamed the kvm_*_page_x86 functions to kvm_*_page_mmu so that they can be made more generic later. * Made everything work on 32 bit - Introduced mmu->lm_root pointer to let the softmmu shadow 32 bit page tables with a long-mode page table. The lm_root page-table root always just points to the mmu.pae_root, so this builds entirely on the pae-shadow code. - Split mmu_alloc_roots into a shadow and direct_map version to simplify the code and to not break the direct_map paths anymore when changing something in that function. * Probably other changes I forgot about This patchset applies on todays avi/master + the three patches I sent end of last week. These patches are necessary for some of the tests above to run. For the curious and impatient user I put everything in a branch on kernel.org. If you want to test it you can pull the tree from git://git.kernel.org/pub/scm/linux/kernel/git/joro/linux-2.6-kvm.git npt-virt-v3 Please review and/or apply these patches if considered good enough. Otherwise I appreciate your feedback. Thanks, Joerg