diff options
author | Avi Kivity <avi@qumranet.com> | 2007-05-31 10:56:54 +0200 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-07-16 11:05:43 +0200 |
commit | 63b1ad24d2695db3ec1cc8b10760e130e1a1f04b (patch) | |
tree | b1a74434132f0c3398a21d00337bdbef9661eaa8 /drivers/kvm/mmu.c | |
parent | KVM: MMU: Pass the guest pde to set_pte_common (diff) | |
download | linux-63b1ad24d2695db3ec1cc8b10760e130e1a1f04b.tar.xz linux-63b1ad24d2695db3ec1cc8b10760e130e1a1f04b.zip |
KVM: MMU: Fold fix_read_pf() into set_pte_common()
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/mmu.c')
-rw-r--r-- | drivers/kvm/mmu.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/kvm/mmu.c b/drivers/kvm/mmu.c index a7631502f22b..2079d69f186a 100644 --- a/drivers/kvm/mmu.c +++ b/drivers/kvm/mmu.c @@ -972,23 +972,6 @@ static void inject_page_fault(struct kvm_vcpu *vcpu, kvm_arch_ops->inject_page_fault(vcpu, addr, err_code); } -static inline int fix_read_pf(u64 *shadow_ent) -{ - if ((*shadow_ent & PT_SHADOW_USER_MASK) && - !(*shadow_ent & PT_USER_MASK)) { - /* - * If supervisor write protect is disabled, we shadow kernel - * pages as user pages so we can trap the write access. - */ - *shadow_ent |= PT_USER_MASK; - *shadow_ent &= ~PT_WRITABLE_MASK; - - return 1; - - } - return 0; -} - static void paging_free(struct kvm_vcpu *vcpu) { nonpaging_free(vcpu); |