diff options
author | Avi Kivity <avi@redhat.com> | 2010-05-27 13:35:58 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-06-09 17:48:37 +0200 |
commit | 69325a122580d3a7b26589e8efdd6663001c3297 (patch) | |
tree | 714358f2e6229e699740bc249b2327b10ba67854 /virt/kvm/iommu.c | |
parent | KVM: MMU: invalidate and flush on spte small->large page size change (diff) | |
download | linux-69325a122580d3a7b26589e8efdd6663001c3297.tar.xz linux-69325a122580d3a7b26589e8efdd6663001c3297.zip |
KVM: MMU: Remove user access when allowing kernel access to gpte.w=0 page
If cr0.wp=0, we have to allow the guest kernel access to a page with pte.w=0.
We do that by setting spte.w=1, since the host cr0.wp must remain set so the
host can write protect pages. Once we allow write access, we must remove
user access otherwise we mistakenly allow the user to write the page.
Reviewed-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'virt/kvm/iommu.c')
0 files changed, 0 insertions, 0 deletions