mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-13 16:15:19 +00:00
qemuBuildHostNetProps: Remove 'vhostfd' machinery
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
a7241f85f6
commit
4b3e730c77
@ -4210,8 +4210,6 @@ virJSONValue *
|
||||
qemuBuildHostNetProps(virDomainNetDef *net,
|
||||
char **tapfd,
|
||||
size_t tapfdSize,
|
||||
char **vhostfd,
|
||||
size_t vhostfdSize,
|
||||
const char *slirpfd)
|
||||
{
|
||||
virDomainNetType netType = virDomainNetGetActualType(net);
|
||||
@ -4277,14 +4275,6 @@ qemuBuildHostNetProps(virDomainNetDef *net,
|
||||
|
||||
if (nfds > 1)
|
||||
vhostfd_field = "s:vhostfds";
|
||||
} else if (vhostfdSize > 0) {
|
||||
vhost = true;
|
||||
|
||||
for (i = 0; i < vhostfdSize; i++)
|
||||
virBufferAsprintf(&buf, "%s:", vhostfd[i]);
|
||||
|
||||
if (vhostfdSize > 1)
|
||||
vhostfd_field = "s:vhostfds";
|
||||
}
|
||||
|
||||
virBufferTrim(&buf, ":");
|
||||
@ -8970,7 +8960,6 @@ qemuBuildInterfaceCommandLine(virQEMUDriver *driver,
|
||||
|
||||
if (!(hostnetprops = qemuBuildHostNetProps(net,
|
||||
tapfdName, tapfdSize,
|
||||
NULL, 0,
|
||||
slirpfdName)))
|
||||
goto cleanup;
|
||||
|
||||
|
@ -89,8 +89,6 @@ virJSONValue *
|
||||
qemuBuildHostNetProps(virDomainNetDef *net,
|
||||
char **tapfd,
|
||||
size_t tapfdSize,
|
||||
char **vhostfd,
|
||||
size_t vhostfdSize,
|
||||
const char *slirpfd);
|
||||
|
||||
int
|
||||
|
@ -1426,7 +1426,6 @@ qemuDomainAttachNetDevice(virQEMUDriver *driver,
|
||||
|
||||
if (!(netprops = qemuBuildHostNetProps(net,
|
||||
tapfdName, tapfdSize,
|
||||
NULL, 0,
|
||||
slirpfdName)))
|
||||
goto cleanup;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user