mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
qemu: deprecate QEMU_CAPS_VHOST_NET
Implied by QEMU >= 1.2.0. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
0a45b3643f
commit
c1f684eac1
@ -3631,7 +3631,6 @@ static qemuMonitorCallbacks callbacks = {
|
||||
static void
|
||||
virQEMUCapsInitQMPBasic(virQEMUCapsPtr qemuCaps)
|
||||
{
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_VHOST_NET);
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_NODEFCONFIG);
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_BOOT_MENU);
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_FSDEV);
|
||||
|
@ -91,7 +91,7 @@ typedef enum {
|
||||
|
||||
/* 30 */
|
||||
X_QEMU_CAPS_RTC, /* The -rtc flag for clock options */
|
||||
QEMU_CAPS_VHOST_NET, /* vhost-net support available */
|
||||
X_QEMU_CAPS_VHOST_NET, /* vhost-net support available */
|
||||
X_QEMU_CAPS_RTC_TD_HACK, /* -rtc-td-hack available */
|
||||
QEMU_CAPS_NO_HPET, /* -no-hpet flag is supported */
|
||||
QEMU_CAPS_NO_KVM_PIT, /* -no-kvm-pit-reinjection supported */
|
||||
|
@ -8478,8 +8478,7 @@ qemuBuildInterfaceCommandLine(virQEMUDriverPtr driver,
|
||||
|
||||
memset(vhostfd, -1, vhostfdSize * sizeof(vhostfd[0]));
|
||||
|
||||
if (qemuInterfaceOpenVhostNet(def, net, qemuCaps,
|
||||
vhostfd, &vhostfdSize) < 0)
|
||||
if (qemuInterfaceOpenVhostNet(def, net, vhostfd, &vhostfdSize) < 0)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
@ -895,8 +895,7 @@ qemuDomainAttachNetDevice(virQEMUDriverPtr driver,
|
||||
tapfd, &tapfdSize) < 0)
|
||||
goto cleanup;
|
||||
iface_connected = true;
|
||||
if (qemuInterfaceOpenVhostNet(vm->def, net, priv->qemuCaps,
|
||||
vhostfd, &vhostfdSize) < 0)
|
||||
if (qemuInterfaceOpenVhostNet(vm->def, net, vhostfd, &vhostfdSize) < 0)
|
||||
goto cleanup;
|
||||
break;
|
||||
|
||||
@ -916,8 +915,7 @@ qemuDomainAttachNetDevice(virQEMUDriverPtr driver,
|
||||
VIR_NETDEV_VPORT_PROFILE_OP_CREATE) < 0)
|
||||
goto cleanup;
|
||||
iface_connected = true;
|
||||
if (qemuInterfaceOpenVhostNet(vm->def, net, priv->qemuCaps,
|
||||
vhostfd, &vhostfdSize) < 0)
|
||||
if (qemuInterfaceOpenVhostNet(vm->def, net, vhostfd, &vhostfdSize) < 0)
|
||||
goto cleanup;
|
||||
break;
|
||||
|
||||
@ -936,8 +934,7 @@ qemuDomainAttachNetDevice(virQEMUDriverPtr driver,
|
||||
tapfd, tapfdSize) < 0)
|
||||
goto cleanup;
|
||||
iface_connected = true;
|
||||
if (qemuInterfaceOpenVhostNet(vm->def, net, priv->qemuCaps,
|
||||
vhostfd, &vhostfdSize) < 0)
|
||||
if (qemuInterfaceOpenVhostNet(vm->def, net, vhostfd, &vhostfdSize) < 0)
|
||||
goto cleanup;
|
||||
break;
|
||||
|
||||
|
@ -624,7 +624,6 @@ qemuInterfaceBridgeConnect(virDomainDefPtr def,
|
||||
int
|
||||
qemuInterfaceOpenVhostNet(virDomainDefPtr def,
|
||||
virDomainNetDefPtr net,
|
||||
virQEMUCapsPtr qemuCaps,
|
||||
int *vhostfd,
|
||||
size_t *vhostfdSize)
|
||||
{
|
||||
@ -645,8 +644,7 @@ qemuInterfaceOpenVhostNet(virDomainDefPtr def,
|
||||
/* If qemu doesn't support vhost-net mode (including the -netdev and
|
||||
* -device command options), don't try to open the device.
|
||||
*/
|
||||
if (!(virQEMUCapsGet(qemuCaps, QEMU_CAPS_VHOST_NET) &&
|
||||
qemuDomainSupportsNicdev(def, net))) {
|
||||
if (!qemuDomainSupportsNicdev(def, net)) {
|
||||
if (net->driver.virtio.name == VIR_DOMAIN_NET_BACKEND_TYPE_VHOST) {
|
||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||
"%s", _("vhost-net is not supported with "
|
||||
|
@ -56,7 +56,6 @@ int qemuInterfaceBridgeConnect(virDomainDefPtr def,
|
||||
|
||||
int qemuInterfaceOpenVhostNet(virDomainDefPtr def,
|
||||
virDomainNetDefPtr net,
|
||||
virQEMUCapsPtr qemuCaps,
|
||||
int *vhostfd,
|
||||
size_t *vhostfdSize);
|
||||
#endif /* __QEMU_INTERFACE_H__ */
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='no-hpet'/>
|
||||
<flag name='no-kvm-pit'/>
|
||||
<flag name='pci-configfd'/>
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='no-hpet'/>
|
||||
<flag name='no-kvm-pit'/>
|
||||
<flag name='pci-configfd'/>
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='no-hpet'/>
|
||||
<flag name='no-kvm-pit'/>
|
||||
<flag name='pci-configfd'/>
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='no-hpet'/>
|
||||
<flag name='no-kvm-pit'/>
|
||||
<flag name='pci-configfd'/>
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='nodefconfig'/>
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='nodefconfig'/>
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='nodefconfig'/>
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='no-hpet'/>
|
||||
<flag name='no-kvm-pit'/>
|
||||
<flag name='pci-configfd'/>
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='nodefconfig'/>
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='nodefconfig'/>
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='nodefconfig'/>
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='enable-kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='nodefconfig'/>
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='no-hpet'/>
|
||||
<flag name='no-kvm-pit'/>
|
||||
<flag name='nodefconfig'/>
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='no-hpet'/>
|
||||
<flag name='no-kvm-pit'/>
|
||||
<flag name='pci-configfd'/>
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='no-hpet'/>
|
||||
<flag name='no-kvm-pit'/>
|
||||
<flag name='pci-configfd'/>
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='nodefconfig'/>
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='nodefconfig'/>
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='no-hpet'/>
|
||||
<flag name='no-kvm-pit'/>
|
||||
<flag name='pci-configfd'/>
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='nodefconfig'/>
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='no-hpet'/>
|
||||
<flag name='no-kvm-pit'/>
|
||||
<flag name='pci-configfd'/>
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='nodefconfig'/>
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='no-hpet'/>
|
||||
<flag name='no-kvm-pit'/>
|
||||
<flag name='pci-configfd'/>
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='nodefconfig'/>
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='nodefconfig'/>
|
||||
<flag name='boot-menu'/>
|
||||
<flag name='fsdev'/>
|
||||
|
@ -4,7 +4,6 @@
|
||||
<selfvers>0</selfvers>
|
||||
<usedQMP/>
|
||||
<flag name='kvm'/>
|
||||
<flag name='vhost-net'/>
|
||||
<flag name='no-hpet'/>
|
||||
<flag name='no-kvm-pit'/>
|
||||
<flag name='pci-configfd'/>
|
||||
|
Loading…
Reference in New Issue
Block a user