On 09/01/23 7:37 pm, Daniel P. Berrangé wrote:
Loooking at the RDMA code it takes the str, and treats it
as an IPv4 address:
addr = g_new(InetSocketAddress, 1);
if (!inet_parse(addr, host_port, NULL)) {
rdma->port = atoi(addr->port);
rdma->host = g_strdup(addr->host);
rdma->host_port = g_strdup(host_port);
}
so we really ought to accept an InetSocketAddress struct
directly
{ 'struct': 'MigrateRdmaAddr',
'data' : {'rdma-str': 'InetSocketAddress' } }
Yes, It resembles to InetSocketAddress. Will make the relevant changes in
rdma.c file.
With this, I had a small question in mind, do qemu need to develop /
leverage some functionality to check the correctness for host or port.
So that if the user enters an invalid host address, they get an error
message to enter correct address, if trying to migrate via qmp command line
interface.