summaryrefslogtreecommitdiff
path: root/kvm_paging_tmpl.h
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2011-08-03 00:47:04 +0000
committerRobert Mustacchi <rm@joyent.com>2011-08-03 00:47:04 +0000
commit52508edae590d9e6afe1abeb17e2bb854c808c61 (patch)
treedf6c1572616d59da1927de3744cff7b61c5a817c /kvm_paging_tmpl.h
parent10cf17a0972ff311b06524fac6c26abb20f023f5 (diff)
downloadillumos-kvm-52508edae590d9e6afe1abeb17e2bb854c808c61.tar.gz
HVM-546 kvm_paging_tmp.h should be xxx free (fixup)
Diffstat (limited to 'kvm_paging_tmpl.h')
-rw-r--r--kvm_paging_tmpl.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/kvm_paging_tmpl.h b/kvm_paging_tmpl.h
index f154f57..93bd9f9 100644
--- a/kvm_paging_tmpl.h
+++ b/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);
}