Re: [PATCH 2/9] kvm: qemu: Fix virtio_net tx timer

Avi Kivity
2008-07-26T09:48:30Z

Mark McLoughlin wrote:
> The current virtio_net tx timer is 2ns, which doesn't
> make any sense. Set it to a more reasonable 150us
> instead.
>
> Signed-off-by: Mark McLoughlin <markmc@redhat.com>
> ---
> qemu/hw/virtio-net.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/qemu/hw/virtio-net.c b/qemu/hw/virtio-net.c
> index 2e57e5a..31867f1 100644
> --- a/qemu/hw/virtio-net.c
> +++ b/qemu/hw/virtio-net.c
> @@ -26,7 +26,7 @@
> #define VIRTIO_NET_F_MAC 5
> #define VIRTIO_NET_F_GS0 6
>
> -#define TX_TIMER_INTERVAL (1000 / 500)
> +#define TX_TIMER_INTERVAL (150000) /* 150 us */
>
>

Ouch.

--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.