qemu_domain.c: make qemuDomainGetMemorySizeAlignment() public

Next patch will use it outside of qemu_domain.c.

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Daniel Henrique Barboza 2020-07-30 16:48:00 -03:00 committed by Michal Privoznik
parent 8d8088b8d9
commit 4fa2202d88
2 changed files with 3 additions and 1 deletions

View File

@ -8024,7 +8024,7 @@ qemuDomainAgentAvailable(virDomainObjPtr vm,
}
static unsigned long long
unsigned long long
qemuDomainGetMemorySizeAlignment(const virDomainDef *def)
{
/* PPC requires the memory sizes to be rounded to 256MiB increments, so

View File

@ -751,6 +751,8 @@ bool qemuDomainDiskBlockJobIsActive(virDomainDiskDefPtr disk);
bool qemuDomainHasBlockjob(virDomainObjPtr vm, bool copy_only)
ATTRIBUTE_NONNULL(1);
unsigned long long qemuDomainGetMemorySizeAlignment(const virDomainDef *def);
int qemuDomainAlignMemorySizes(virDomainDefPtr def);
int qemuDomainMemoryDeviceAlignSize(virDomainDefPtr def,
virDomainMemoryDefPtr mem);