mirror of https://gitee.com/openkylin/libvirt.git
qemu: command: Rename qemuBuildHostNetStr -> qemuBuildHostNetProps
The function is already returning JSON properties, rename it accordingly. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
1dbb7cef70
commit
a6577204d7
|
@ -3936,13 +3936,13 @@ qemuBuildNicDevProps(virDomainDef *def,
|
|||
|
||||
|
||||
virJSONValue *
|
||||
qemuBuildHostNetStr(virDomainNetDef *net,
|
||||
char **tapfd,
|
||||
size_t tapfdSize,
|
||||
char **vhostfd,
|
||||
size_t vhostfdSize,
|
||||
const char *slirpfd,
|
||||
const char *vdpadev)
|
||||
qemuBuildHostNetProps(virDomainNetDef *net,
|
||||
char **tapfd,
|
||||
size_t tapfdSize,
|
||||
char **vhostfd,
|
||||
size_t vhostfdSize,
|
||||
const char *slirpfd,
|
||||
const char *vdpadev)
|
||||
{
|
||||
bool is_tap = false;
|
||||
virDomainNetType netType = virDomainNetGetActualType(net);
|
||||
|
@ -8975,10 +8975,10 @@ qemuBuildInterfaceCommandLine(virQEMUDriver *driver,
|
|||
if (chardev)
|
||||
virCommandAddArgList(cmd, "-chardev", chardev, NULL);
|
||||
|
||||
if (!(hostnetprops = qemuBuildHostNetStr(net,
|
||||
tapfdName, tapfdSize,
|
||||
vhostfdName, vhostfdSize,
|
||||
slirpfdName, vdpafdName)))
|
||||
if (!(hostnetprops = qemuBuildHostNetProps(net,
|
||||
tapfdName, tapfdSize,
|
||||
vhostfdName, vhostfdSize,
|
||||
slirpfdName, vdpafdName)))
|
||||
goto cleanup;
|
||||
|
||||
if (qemuBuildNetdevCommandlineFromJSON(cmd, hostnetprops, qemuCaps) < 0)
|
||||
|
|
|
@ -87,13 +87,14 @@ qemuBuildChrDeviceProps(const virDomainDef *vmdef,
|
|||
virJSONValue *
|
||||
qemuBuildChannelGuestfwdNetdevProps(virDomainChrDef *chr);
|
||||
|
||||
virJSONValue *qemuBuildHostNetStr(virDomainNetDef *net,
|
||||
char **tapfd,
|
||||
size_t tapfdSize,
|
||||
char **vhostfd,
|
||||
size_t vhostfdSize,
|
||||
const char *slirpfd,
|
||||
const char *vdpadev);
|
||||
virJSONValue *
|
||||
qemuBuildHostNetProps(virDomainNetDef *net,
|
||||
char **tapfd,
|
||||
size_t tapfdSize,
|
||||
char **vhostfd,
|
||||
size_t vhostfdSize,
|
||||
const char *slirpfd,
|
||||
const char *vdpadev);
|
||||
|
||||
/* Current, best practice */
|
||||
virJSONValue *
|
||||
|
|
|
@ -1459,10 +1459,10 @@ qemuDomainAttachNetDevice(virQEMUDriver *driver,
|
|||
vdpafdName = g_strdup_printf("/dev/fdset/%d", fdinfo.fdset);
|
||||
}
|
||||
|
||||
if (!(netprops = qemuBuildHostNetStr(net,
|
||||
tapfdName, tapfdSize,
|
||||
vhostfdName, vhostfdSize,
|
||||
slirpfdName, vdpafdName))) {
|
||||
if (!(netprops = qemuBuildHostNetProps(net,
|
||||
tapfdName, tapfdSize,
|
||||
vhostfdName, vhostfdSize,
|
||||
slirpfdName, vdpafdName))) {
|
||||
ignore_value(qemuDomainObjExitMonitor(driver, vm));
|
||||
goto cleanup;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue