Skip to content

Commit

Permalink
xen/balloon: remove BUG_ON in increase_reservation
Browse files Browse the repository at this point in the history
The BUG_ON in increase_reservation is wrong as we have P2M entry
ballooned out page set to balloon scratch page, so it might have a valid
P2M entry at that point.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
  • Loading branch information
Wei Liu authored and Stefano Stabellini committed Sep 11, 2013
1 parent 2bad07c commit 6a6f6e7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/xen/balloon.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,6 @@ static enum bp_state increase_reservation(unsigned long nr_pages)
BUG_ON(page == NULL);

pfn = page_to_pfn(page);
BUG_ON(!xen_feature(XENFEAT_auto_translated_physmap) &&
phys_to_machine_mapping_valid(pfn));

set_phys_to_machine(pfn, frame_list[i]);

Expand Down

0 comments on commit 6a6f6e7

Please sign in to comment.