virDomainNetDefPtr net,
virQEMUCapsPtr qemuCaps,
int *tapfd,
- int *tapfdSize)
+ size_t *tapfdSize)
{
const char *brname;
int ret = -1;
virDomainNetDefPtr net,
virQEMUCapsPtr qemuCaps,
int *vhostfd,
- int *vhostfdSize)
+ size_t *vhostfdSize)
{
size_t i;
const char *vhostnet_path = net->backend.vhost;
"but is unavailable"));
goto error;
}
- VIR_WARN("Unable to open vhost-net. Opened so far %zu, requested %d",
+ VIR_WARN("Unable to open vhost-net. Opened so far %zu, requested %zu",
i, *vhostfdSize);
*vhostfdSize = i;
break;
virDomainNetDefPtr net,
int vlan,
int bootindex,
- int vhostfdSize,
+ size_t vhostfdSize,
virQEMUCapsPtr qemuCaps)
{
virBuffer buf = VIR_BUFFER_INITIALIZER;
if (usingVirtio && vhostfdSize > 1) {
/* As advised at http://www.linux-kvm.org/page/Multiqueue
* we should add vectors=2*N+2 where N is the vhostfdSize */
- virBufferAsprintf(&buf, ",mq=on,vectors=%d", 2 * vhostfdSize + 2);
+ virBufferAsprintf(&buf, ",mq=on,vectors=%zu", 2 * vhostfdSize + 2);
}
if (vlan == -1)
virBufferAsprintf(&buf, ",netdev=host%s", net->info.alias);
char type_sep,
int vlan,
char **tapfd,
- int tapfdSize,
+ size_t tapfdSize,
char **vhostfd,
- int vhostfdSize)
+ size_t vhostfdSize)
{
bool is_tap = false;
virBuffer buf = VIR_BUFFER_INITIALIZER;
int ret = -1;
char *nic = NULL, *host = NULL;
int *tapfd = NULL;
- int tapfdSize = 0;
+ size_t tapfdSize = 0;
int *vhostfd = NULL;
- int vhostfdSize = 0;
+ size_t vhostfdSize = 0;
char **tapfdName = NULL;
char **vhostfdName = NULL;
int actualType = virDomainNetGetActualType(net);
char type_sep,
int vlan,
char **tapfd,
- int tapfdSize,
+ size_t tapfdSize,
char **vhostfd,
- int vhostfdSize);
+ size_t vhostfdSize);
/* Legacy, pre device support */
char *qemuBuildNicStr(virDomainNetDefPtr net,
virDomainNetDefPtr net,
int vlan,
int bootindex,
- int vhostfdSize,
+ size_t vhostfdSize,
virQEMUCapsPtr qemuCaps);
char *qemuDeviceDriveHostAlias(virDomainDiskDefPtr disk,
virDomainNetDefPtr net,
virQEMUCapsPtr qemuCaps,
int *tapfd,
- int *tapfdSize)
+ size_t *tapfdSize)
ATTRIBUTE_NONNULL(2);
int qemuPhysIfaceConnect(virDomainDefPtr def,
virDomainNetDefPtr net,
virQEMUCapsPtr qemuCaps,
int *vhostfd,
- int *vhostfdSize);
+ size_t *vhostfdSize);
int qemuNetworkPrepareDevices(virDomainDefPtr def);
qemuDomainObjPrivatePtr priv = vm->privateData;
char **tapfdName = NULL;
int *tapfd = NULL;
- int tapfdSize = 0;
+ size_t tapfdSize = 0;
char **vhostfdName = NULL;
int *vhostfd = NULL;
- int vhostfdSize = 0;
+ size_t vhostfdSize = 0;
char *nicstr = NULL;
char *netstr = NULL;
virNetDevVPortProfilePtr vport = NULL;
int virNetDevTapCreate(char **ifname,
const char *tunpath,
int *tapfd,
- int tapfdSize,
+ size_t tapfdSize,
unsigned int flags)
{
size_t i;
int virNetDevTapCreate(char **ifname,
const char *tunpath ATTRIBUTE_UNUSED,
int *tapfd,
- int tapfdSize,
+ size_t tapfdSize,
unsigned int flags ATTRIBUTE_UNUSED)
{
int s;
int virNetDevTapCreate(char **ifname ATTRIBUTE_UNUSED,
const char *tunpath ATTRIBUTE_UNUSED,
int *tapfd ATTRIBUTE_UNUSED,
- int tapfdSize ATTRIBUTE_UNUSED,
+ size_t tapfdSize ATTRIBUTE_UNUSED,
unsigned int flags ATTRIBUTE_UNUSED)
{
virReportSystemError(ENOSYS, "%s",
const unsigned char *vmuuid,
const char *tunpath,
int *tapfd,
- int tapfdSize,
+ size_t tapfdSize,
virNetDevVPortProfilePtr virtPortProfile,
virNetDevVlanPtr virtVlan,
unsigned int flags)
int virNetDevTapCreate(char **ifname,
const char *tunpath,
int *tapfd,
- int tapfdSize,
+ size_t tapfdSize,
unsigned int flags)
ATTRIBUTE_NONNULL(1) ATTRIBUTE_RETURN_CHECK;
const unsigned char *vmuuid,
const char *tunpath,
int *tapfd,
- int tapfdSize,
+ size_t tapfdSize,
virNetDevVPortProfilePtr virtPortProfile,
virNetDevVlanPtr virtVlan,
unsigned int flags)