@@ -328,7 +328,8 @@ static VirtIOS390DeviceInfo s390_virtio_net = {
.qdev.size = sizeof(VirtIOS390Device),
.qdev.props = (Property[]) {
DEFINE_NIC_PROPERTIES(VirtIOS390Device, nic),
- DEFINE_PROP_UINT32("txtimer", VirtIOS390Device, txtimer, 1),
+ DEFINE_PROP_UINT32("txtimer", VirtIOS390Device, txtimer,
+ TXTIMER_DEFAULT),
DEFINE_PROP_INT32("txburst", VirtIOS390Device, txburst, 256),
DEFINE_PROP_END_OF_LIST(),
},
@@ -300,7 +300,8 @@ static SysBusDeviceInfo syborg_virtio_net_info = {
.qdev.props = (Property[]) {
DEFINE_NIC_PROPERTIES(SyborgVirtIOProxy, nic),
DEFINE_VIRTIO_NET_FEATURES(SyborgVirtIOProxy, host_features),
- DEFINE_PROP_UINT32("txtimer", SyborgVirtIOProxy, txtimer, 1),
+ DEFINE_PROP_UINT32("txtimer", SyborgVirtIOProxy, txtimer,
+ TXTIMER_DEFAULT),
DEFINE_PROP_INT32("txburst", SyborgVirtIOProxy, txburst, 256),
DEFINE_PROP_END_OF_LIST(),
}
@@ -695,7 +695,8 @@ static PCIDeviceInfo virtio_info[] = {
DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 3),
DEFINE_VIRTIO_NET_FEATURES(VirtIOPCIProxy, host_features),
DEFINE_NIC_PROPERTIES(VirtIOPCIProxy, nic),
- DEFINE_PROP_UINT32("txtimer", VirtIOPCIProxy, txtimer, 1),
+ DEFINE_PROP_UINT32("txtimer", VirtIOPCIProxy, txtimer,
+ TXTIMER_DEFAULT),
DEFINE_PROP_INT32("txburst", VirtIOPCIProxy, txburst, 256),
DEFINE_PROP_END_OF_LIST(),
},
@@ -183,6 +183,12 @@ void virtio_update_irq(VirtIODevice *vdev);
void virtio_bind_device(VirtIODevice *vdev, const VirtIOBindings *binding,
void *opaque);
+#ifdef CONFIG_IOTHREAD
+ #define TXTIMER_DEFAULT 0
+#else
+ #define TXTIMER_DEFAULT 1
+#endif
+
/* Base devices. */
VirtIODevice *virtio_blk_init(DeviceState *dev, BlockConf *conf);
VirtIODevice *virtio_net_init(DeviceState *dev, NICConf *conf,