qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/8] migration: Add precopy initial data handshake


From: Avihai Horon
Subject: Re: [PATCH 2/8] migration: Add precopy initial data handshake
Date: Mon, 15 May 2023 10:56:59 +0300
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1


On 14/05/2023 19:42, Cédric Le Goater wrote:
External email: Use caution opening links or attachments


Hello Avihai,

+static int loadvm_handle_initial_data_enable(MigrationIncomingState *mis)
+{
+    InitialDataInfo buf;
+    SaveStateEntry *se;
+    ssize_t read_size;
+
+    read_size = qemu_get_buffer(mis->from_src_file, (void *)&buf, sizeof(buf));
+    if (read_size != sizeof(buf)) {
+        error_report("%s: Could not get data buffer, read_size %ld, len %lu",

please use %zd and %zu for ssize_t.

Ah, right. Sure will change.

Thanks.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]