diff options
author | Avi Kivity <avi@redhat.com> | 2010-07-13 14:27:09 +0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-08-02 06:40:45 +0300 |
commit | 0b3c933302262d83018dd5f69656bca9f28a0cd3 (patch) | |
tree | 809d6c97623ee87baa195ded38fe98a0a3df8638 /kernel/early_res.c | |
parent | 39c8c672a18c52048343d7531dfb2dcf3431ee74 (diff) |
KVM: MMU: Simplify spte fetch() function
Partition the function into three sections:
- fetching indirect shadow pages (host_level > guest_level)
- fetching direct shadow pages (page_level < host_level <= guest_level)
- the final spte (page_level == host_level)
Instead of the current spaghetti.
A slight change from the original code is that we call validate_direct_spte()
more often: previously we called it only for gw->level, now we also call it for
lower levels. The change should have no effect.
[xiao: fix regression caused by validate_direct_spte() called too late]
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'kernel/early_res.c')
0 files changed, 0 insertions, 0 deletions