Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297047
b: refs/heads/master
c: a138fe7
h: refs/heads/master
i:
  297045: 3693fdc
  297043: b5cec82
  297039: 6cf2440
v: v3
  • Loading branch information
Xiao Guangrong authored and Avi Kivity committed Mar 5, 2012
1 parent 9773200 commit 8144a17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 6addd1aa2ca28c054820ef2966ad372f118c3f31
refs/heads/master: a138fe7535c0ec778465c7b54b1aaaf4cfd885b7
6 changes: 2 additions & 4 deletions trunk/arch/x86/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -3551,7 +3551,7 @@ static u64 mmu_pte_write_fetch_gpte(struct kvm_vcpu *vcpu, gpa_t *gpa,
* If we're seeing too many writes to a page, it may no longer be a page table,
* or we may be forking, in which case it is better to unmap the page.
*/
static bool detect_write_flooding(struct kvm_mmu_page *sp, u64 *spte)
static bool detect_write_flooding(struct kvm_mmu_page *sp)
{
/*
* Skip write-flooding detected for the sp whose level is 1, because
Expand Down Expand Up @@ -3660,10 +3660,8 @@ void kvm_mmu_pte_write(struct kvm_vcpu *vcpu, gpa_t gpa,

mask.cr0_wp = mask.cr4_pae = mask.nxe = 1;
for_each_gfn_indirect_valid_sp(vcpu->kvm, sp, gfn, node) {
spte = get_written_sptes(sp, gpa, &npte);

if (detect_write_misaligned(sp, gpa, bytes) ||
detect_write_flooding(sp, spte)) {
detect_write_flooding(sp)) {
zap_page |= !!kvm_mmu_prepare_zap_page(vcpu->kvm, sp,
&invalid_list);
++vcpu->kvm->stat.mmu_flooded;
Expand Down

0 comments on commit 8144a17

Please sign in to comment.