commit | 651dd37a9ce6fdacdcd75da86619c62111efcbc2 | [log] [tgz] |
---|---|---|
author | Joerg Roedel <joerg.roedel@amd.com> | Fri Sep 10 17:30:59 2010 +0200 |
committer | Avi Kivity <avi@redhat.com> | Sun Oct 24 10:52:42 2010 +0200 |
tree | 62b8c506c076b4c66e1c144d6e831db551c61749 | |
parent | d41d1895eb856b5d1c82f3be106b7a3e75e4216b [diff] |
KVM: MMU: Refactor mmu_alloc_roots function This patch factors out the direct-mapping paths of the mmu_alloc_roots function into a seperate function. This makes it a lot easier to avoid all the unnecessary checks done in the shadow path which may break when running direct. In fact, this patch already fixes a problem when running PAE guests on a PAE shadow page table. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@redhat.com>