[PATCH] qemu_process: Use accessor for def->mem.total_memory

Ján Tomko jtomko at redhat.com
Mon Mar 15 23:05:33 UTC 2021


On a Monday in 2021, Michal Privoznik wrote:
>When connecting to the monitor, a timeout is calculated that is
>bigger the more memory guest has (because QEMU has to allocate
>and possibly zero out the memory and what not, empirically
>deducted). However, when computing the timeout the @total_memory
>mmember is accessed directly even though
>virDomainDefGetMemoryTotal() should have been used.
>
>Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
>---
> src/qemu/qemu_process.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20210316/5aa8bd24/attachment-0001.sig>


More information about the libvir-list mailing list