commit | ffb128c89b77b44da18ccf51844a8e750e2c427a | [log] [tgz] |
---|---|---|
author | Bandan Das <bsd@redhat.com> | Tue Jul 12 18:18:49 2016 -0400 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Thu Jul 14 09:03:14 2016 +0200 |
tree | 2343268f9b507a99abf34bf20d99b1158488b67e | |
parent | 812f30b234539ccb0139f92dfdbec1e8158cf535 [diff] |
kvm: mmu: don't set the present bit unconditionally To support execute only mappings on behalf of L1 hypervisors, we need to teach set_spte() to honor all three of L1's XWR bits. As a start, add a new variable "shadow_present_mask" that will be set for non-EPT shadow paging and clear for EPT. Signed-off-by: Bandan Das <bsd@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>