Skip to content

Commit 75d26b7

Browse files
committed
Ignore page_collection_lock
1 parent 994813a commit 75d26b7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

qemu/accel/tcg/translate-all.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,7 @@ static gint tb_page_addr_cmp(gconstpointer ap, gconstpointer bp, gpointer udata)
650650
struct page_collection *
651651
page_collection_lock(struct uc_struct *uc, tb_page_addr_t start, tb_page_addr_t end)
652652
{
653+
#if 0
653654
struct page_collection *set = g_malloc(sizeof(*set));
654655
tb_page_addr_t index;
655656
PageDesc *pd;
@@ -664,9 +665,7 @@ page_collection_lock(struct uc_struct *uc, tb_page_addr_t start, tb_page_addr_t
664665
assert_no_pages_locked();
665666

666667
retry:
667-
#if 0
668668
g_tree_foreach(set->tree, page_entry_lock, NULL);
669-
#endif
670669

671670
for (index = start; index <= end; index++) {
672671
TranslationBlock *tb;
@@ -677,9 +676,7 @@ page_collection_lock(struct uc_struct *uc, tb_page_addr_t start, tb_page_addr_t
677676
continue;
678677
}
679678
if (page_trylock_add(uc, set, index << TARGET_PAGE_BITS)) {
680-
#if 0
681679
g_tree_foreach(set->tree, page_entry_unlock, NULL);
682-
#endif
683680
goto retry;
684681
}
685682
assert_page_locked(pd);
@@ -688,21 +685,24 @@ page_collection_lock(struct uc_struct *uc, tb_page_addr_t start, tb_page_addr_t
688685
(tb->page_addr[1] != -1 &&
689686
page_trylock_add(uc, set, tb->page_addr[1]))) {
690687
/* drop all locks, and reacquire in order */
691-
#if 0
692688
g_tree_foreach(set->tree, page_entry_unlock, NULL);
693-
#endif
694689
goto retry;
695690
}
696691
}
697692
}
698693
return set;
694+
#else
695+
return NULL;
696+
#endif
699697
}
700698

701699
void page_collection_unlock(struct page_collection *set)
702700
{
701+
#if 0
703702
/* entries are unlocked and freed via page_entry_destroy */
704703
g_tree_destroy(set->tree);
705704
g_free(set);
705+
#endif
706706
}
707707

708708
static void page_lock_pair(struct uc_struct *uc, PageDesc **ret_p1, tb_page_addr_t phys1,

0 commit comments

Comments
 (0)