« Previous | Next » 

Revision 0628c182

ID0628c18267bbe8d44f0faf3e71acf0ae31bea7fd

Added by Markus Armbruster almost 11 years ago

exec: Clean up fall back when -mem-path allocation fails

With -mem-path, qemu_ram_alloc_from_ptr() first tries to allocate
accordingly, but when it fails, it falls back to normal allocation.

The fall back allocation code used to be effectively identical to the
"-mem-path not given" code, until it started to diverge in commit
432d268. I believe the code still works, but clean it up anyway: drop
the special fall back allocation code, and fall back to the ordinary
"-mem-path not given" code instead.

Reviewed-by: Paolo Bonzini <>
Signed-off-by: Markus Armbruster <>
Acked-by: Laszlo Ersek <>
Acked-by: Stefano Stabellini <>
Message-id:
Signed-off-by: Anthony Liguori <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences