diff options
| author | Marcelo Tosatti | 2014-02-04 19:41:53 +0100 |
|---|---|---|
| committer | Paolo Bonzini | 2014-02-27 19:30:51 +0100 |
| commit | f9a49dfa0202348b543983d61fab441b7374a874 (patch) | |
| tree | ece887ea04798c73e8706530688b46c9e4675c78 /include/exec/user | |
| parent | kvm-all: exit in case max vcpus exceeded (diff) | |
| download | qemu-f9a49dfa0202348b543983d61fab441b7374a874.tar.gz qemu-f9a49dfa0202348b543983d61fab441b7374a874.tar.xz qemu-f9a49dfa0202348b543983d61fab441b7374a874.zip | |
file_ram_alloc: unify mem-path,mem-prealloc error handling
-mem-prealloc asks to preallocate memory residing on -mem-path path.
Currently QEMU exits in case:
- Memory file has been created but allocation via explicit write
fails.
And it fallbacks to malloc in case:
- Querying huge page size fails.
- Lack of sync MMU support.
- Open fails.
- mmap fails.
Have the same behaviour for all cases: fail in case -mem-path and
-mem-prealloc are specified for regions where the requested size is
suitable for hugepages.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/exec/user')
0 files changed, 0 insertions, 0 deletions
