diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-07-25 19:06:04 +0200 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-07-25 04:06:04 +0200 |
commit | 44653eae1407f79dff6f52fcf594ae84cb165ec4 (patch) | |
tree | 9c8f356f6c294678a05dbc983e60b8b5d864b7bc /mm/mm_init.c | |
parent | virtio: clarify that ABI is usable by any implementations (diff) | |
download | linux-44653eae1407f79dff6f52fcf594ae84cb165ec4.tar.xz linux-44653eae1407f79dff6f52fcf594ae84cb165ec4.zip |
virtio: don't always force a notification when ring is full
We force notification when the ring is full, even if the host has
indicated it doesn't want to know. This seemed like a good idea at
the time: if we fill the transmit ring, we should tell the host
immediately.
Unfortunately this logic also applies to the receiving ring, which is
refilled constantly. We should introduce real notification thesholds
to replace this logic. Meanwhile, removing the logic altogether breaks
the heuristics which KVM uses, so we use a hack: only notify if there are
outgoing parts of the new buffer.
Here are the number of exits with lguest's crappy network implementation:
Before:
network xmit 7859051 recv 236420
After:
network xmit 7858610 recv 118136
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'mm/mm_init.c')
0 files changed, 0 insertions, 0 deletions