summaryrefslogtreecommitdiffstats
path: root/thunk.c
diff options
context:
space:
mode:
authorHu Tao <hutao@cn.fujitsu.com>2014-09-09 13:28:00 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2014-09-09 13:41:44 +0200
commit557529dd600fb0f1fc52e86c9679afa6a9368bc8 (patch)
tree83a1adc8cecd05384e8adade9481203e4bf1ad92 /thunk.c
parentd42e2de7bc0af5ff08143312d4a22c01e7da3da1 (diff)
downloadhqemu-557529dd600fb0f1fc52e86c9679afa6a9368bc8.zip
hqemu-557529dd600fb0f1fc52e86c9679afa6a9368bc8.tar.gz
exec: report error when memory < hpagesize
Report an error when memory < hpagesize in file_ram_alloc() so callers can handle the error. If user adds a memory-backend-file object using object_add command, specifying a size that is less than huge page size, qemu will core dump with message: Bad ram offset fffffffffffff000 Aborted (core dumped) This patch fixes the problem. With this patch, qemu reports error message like: qemu-system-x86_64: -object memory-backend-file,mem-path=/hugepages,id=mem-file0,size=1M: memory size 0x100000 must be equal to or larger than huge page size 0x200000 Signed-off-by: Hu Tao <hutao@cn.fujitsu.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'thunk.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud