Remove unnecessary decrease_reservation() from hvm builder.
Signed-off-by: Keir Fraser <keir@xensource.com>
if ( err == nr_extents )
return 0;
- if ( err > 0 )
+ if ( err >= 0 )
{
DPRINTF("Failed allocation for dom %d: "
"%ld pages order %d addr_bits %d\n",
if ( err == nr_extents )
return 0;
- if ( err > 0 )
+ if ( err >= 0 )
{
DPRINTF("Failed deallocation for dom %d: %ld pages order %d\n",
domid, nr_extents, extent_order);
- errno = EBUSY;
+ errno = EINVAL;
err = -1;
}
if ( err == nr_extents )
return 0;
- if ( err > 0 )
+ if ( err >= 0 )
{
DPRINTF("Failed allocation for dom %d: %ld pages order %d\n",
domid, nr_extents, extent_order);
goto error_out;
}
- if ( (nr_pages > 0xa0) &&
- xc_domain_memory_decrease_reservation(
- xc_handle, dom, (nr_pages < 0xc0) ? (nr_pages - 0xa0) : 0x20,
- 0, &page_array[0xa0]) )
- {
- PERROR("Could not free VGA hole.\n");
- goto error_out;
- }
-
if ( xc_domain_translate_gpfn_list(xc_handle, dom, nr_pages,
page_array, page_array) )
{