Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80775
b: refs/heads/master
c: 230c9a8
h: refs/heads/master
i:
  80773: 16f3c1d
  80771: 2564fe1
  80767: e8ec969
v: v3
  • Loading branch information
Avi Kivity committed Jan 30, 2008
1 parent acd6510 commit c426cad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 050e64992f90abee4e1e77b57fe7abf1ba22d330
refs/heads/master: 230c9a8f2354dc51f55bf81147f408d8fc2f3dd1
26 changes: 6 additions & 20 deletions trunk/drivers/kvm/paging_tmpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,11 @@ static int FNAME(walk_addr)(struct guest_walker *walker,
return 0;
}

static void FNAME(set_pte_common)(struct kvm_vcpu *vcpu,
u64 *shadow_pte,
pt_element_t gpte,
u64 access_bits,
int user_fault,
int write_fault,
int *ptwrite,
struct guest_walker *walker,
gfn_t gfn)
static void FNAME(set_pte)(struct kvm_vcpu *vcpu, pt_element_t gpte,
u64 *shadow_pte, u64 access_bits,
int user_fault, int write_fault,
int *ptwrite, struct guest_walker *walker,
gfn_t gfn)
{
int dirty = gpte & PT_DIRTY_MASK;
u64 spte;
Expand All @@ -206,6 +202,7 @@ static void FNAME(set_pte_common)(struct kvm_vcpu *vcpu,
__FUNCTION__, *shadow_pte, (u64)gpte, access_bits,
write_fault, user_fault, gfn);

access_bits &= gpte;
/*
* We don't set the accessed bit, since we sometimes want to see
* whether the guest actually used the pte (in order to detect
Expand Down Expand Up @@ -275,17 +272,6 @@ static void FNAME(set_pte_common)(struct kvm_vcpu *vcpu,
vcpu->last_pte_updated = shadow_pte;
}

static void FNAME(set_pte)(struct kvm_vcpu *vcpu, pt_element_t gpte,
u64 *shadow_pte, u64 access_bits,
int user_fault, int write_fault, int *ptwrite,
struct guest_walker *walker, gfn_t gfn)
{
access_bits &= gpte;
FNAME(set_pte_common)(vcpu, shadow_pte,
gpte, access_bits, user_fault, write_fault,
ptwrite, walker, gfn);
}

static void FNAME(update_pte)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *page,
u64 *spte, const void *pte, int bytes,
int offset_in_pte)
Expand Down

0 comments on commit c426cad

Please sign in to comment.