Permalink
Browse files

HVM-546 kvm_paging_tmp.h should be xxx free (fixup)

  • Loading branch information...
1 parent 10cf17a commit 52508edae590d9e6afe1abeb17e2bb854c808c61 @rmustacc rmustacc committed Aug 3, 2011
Showing with 0 additions and 12 deletions.
  1. +0 −12 kvm_paging_tmpl.h
View
12 kvm_paging_tmpl.h
@@ -94,20 +94,8 @@ FNAME(cmpxchg_gpte)(struct kvm *kvm, gfn_t table_gfn, unsigned index,
page = gfn_to_page(kvm, table_gfn);
table = (pt_element_t *)page_address(page);
-#ifndef XXX
ret = CMPXCHG(&table[index], orig_pte, new_pte);
kvm_release_page_dirty(page);
-#else
- /*
- * XXX - The following needs to be made atomic...
- */
-
- ret = table[index];
- if (table[index] == orig_pte)
- table[index] = new_pte;
-
- kvm_release_page_dirty(page);
-#endif /* XXX */
return (ret != orig_pte);
}

0 comments on commit 52508ed

Please sign in to comment.