OSDN Git Service

vhost-user-test: always use 256 MiB of guest memory
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 15 Nov 2018 09:50:15 +0000 (10:50 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 7 Mar 2019 16:28:42 +0000 (17:28 +0100)
commit0f9fe58009cfecc263d1eaf1146348abae0e40db
treeb3dbe14b83e4836233ff2ee6b893deb4f6fa6e04
parent6bd4a6d4b867fab1f94f9fe3d1b19d02ac3d684b
vhost-user-test: always use 256 MiB of guest memory

Some tests are using a small amount of RAM for the guest (2 MiB) in order to
save host memory, others are using 512 MiB.

However, pSeries machines only support multiples of 256 MiB.  Using 256
MiB of memory does not use more host memory than now, even for the
migration test that starts two guests, and it allows running the test on
pSeries too.

This of course is not optimal, it would be nice to let the qgraph machine object
judge how much memory to provide.  This is left for future work, together
with a more generic framework that wraps the QEMU command line.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/vhost-user-test.c