vhost,e1000 fixes
This fixes a bug in vhost error handling (also triggers build warning with vhost enabled) and fixes e1000 handling of short frames.
Discussion on best ways to fix the e1000 issue is still ongoing but the bug is severe enough for some guests and the fix is safe enough that I feel we should have it fixed ASAP and look for that perfect approach later.
Both fixes are 0.13 material IMO.
The following changes since commit 952afb719f3c965bae12b5bd5f0f0f7ed0251cb8:
mingw: use ASLR, no-SEH and DEP if available (2010-09-19 08:36:34 +0000)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu.git for_anthony
Michael S. Tsirkin (1):
vhost: fix infinite loop on error path
Stefan Hajnoczi (1):
e1000: Pad short frames to minimum size (60 bytes)
hw/e1000.c | 10 ++++++++++ hw/vhost_net.c | 2 +- 2 files changed, 11 insertions(+), 1 deletions(-)
Signature · 1 line
MST
Quoted 4 lines · Michael S. Tsirkin
This fixes a bug in vhost error handling (also triggers build warning with vhost enabled) and fixes e1000 handling of short frames.
Quoted 8 lines
Discussion on best ways to fix the e1000 issue is still ongoing but the bug is severe enough for some guests and the fix is safe enough that I feel we should have it fixed ASAP and look for that perfect approach later.
Both fixes are 0.13 material IMO.
Pulled. Thanks.
Regards,
Anthony LIguori
Quoted 17 lines
The following changes since commit
952afb719f3c965bae12b5bd5f0f0f7ed0251cb8:mingw: use ASLR, no-SEH and DEP if available (2010-09-19 08:36:34 +0000)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu.gitfor_anthonyMichael S. Tsirkin (1):
vhost: fix infinite loop on error pathStefan Hajnoczi (1):
e1000: Pad short frames to minimum size (60 bytes)hw/e1000.c | 10 ++++++++++ hw/vhost_net.c | 2 +- 2 files changed, 11 insertions(+), 1 deletions(-)
Quoted 14 lines · Michael S. Tsirkin
This fixes a bug in vhost error handling (also triggers build warning with vhost enabled) and fixes e1000 handling of short frames.
Discussion on best ways to fix the e1000 issue is still ongoing but the bug is severe enough for some guests and the fix is safe enough that I feel we should have it fixed ASAP and look for that perfect approach later.
Both fixes are 0.13 material IMO.
The following changes since commit
952afb719f3c965bae12b5bd5f0f0f7ed0251cb8:
Quoted 7 lines
mingw: use ASLR, no-SEH and DEP if available (2010-09-19 08:36:34 +0000)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu.gitfor_anthonyMichael S. Tsirkin (1):
vhost: fix infinite loop on error path
I don't think your fix is correct either, it will call the ioctl() with file.index == -1. How about int i; for (i = file.index; i >= 0; i--) { file.index = i;... ?
Quoted 17 lines · Blue Swirl
Quoted 16 lines · Michael S. Tsirkin
This fixes a bug in vhost error handling (also triggers build warning with vhost enabled) and fixes e1000 handling of short frames.
Discussion on best ways to fix the e1000 issue is still ongoing but the bug is severe enough for some guests and the fix is safe enough that I feel we should have it fixed ASAP and look for that perfect approach later.
Both fixes are 0.13 material IMO.
The following changes since commit
952afb719f3c965bae12b5bd5f0f0f7ed0251cb8:mingw: use ASLR, no-SEH and DEP if available (2010-09-19 08:36:34 +0000)
Quoted 8 lines
Quoted 5 lines
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu.gitfor_anthonyMichael S. Tsirkin (1):
vhost: fix infinite loop on error pathI don't think your fix is correct either, it will call the
ioctl()with file.index == -1.
This is my patch:
- while (--file.index >= 0) {
+ while (file.index-- > 0) {
int r = ioctl(net->dev.control, VHOST_NET_SET_BACKEND, &file);
assert(r >= 0);
}For ioctl to get called with -1, index needs to be 0 before the decrement, and while won't be entered ... what am I missing?
Quoted 2 lines
How about int i; for (i = file.index; i >= 0;
i--) { file.index = i;... ?
Quoted 35 lines · Michael S. Tsirkin
Quoted 17 lines · Blue Swirl
Quoted 16 lines · Michael S. Tsirkin
This fixes a bug in vhost error handling (also triggers build warning with vhost enabled) and fixes e1000 handling of short frames.
Discussion on best ways to fix the e1000 issue is still ongoing but the bug is severe enough for some guests and the fix is safe enough that I feel we should have it fixed ASAP and look for that perfect approach later.
Both fixes are 0.13 material IMO.
The following changes since commit
952afb719f3c965bae12b5bd5f0f0f7ed0251cb8:mingw: use ASLR, no-SEH and DEP if available (2010-09-19 08:36:34 +0000)
Quoted 8 lines
Quoted 5 lines
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu.gitfor_anthonyMichael S. Tsirkin (1):
vhost: fix infinite loop on error pathI don't think your fix is correct either, it will call the
ioctl()with file.index == -1.This is my patch:
- while (--file.index >= 0) {
+ while (file.index-- > 0) {
int r =ioctl(net->dev.control, VHOST_NET_SET_BACKEND, &file); assert(r >= 0);
}
Quoted 3 lines
For ioctl to get called with -1, index needs to be 0 before the decrement, and while won't be entered ... what am I missing?
Then ioctl() won't be called at all. Is that correct?
Quoted 36 lines · Blue Swirl
Quoted 35 lines · Michael S. Tsirkin
Quoted 17 lines · Blue Swirl
Quoted 16 lines · Michael S. Tsirkin
This fixes a bug in vhost error handling (also triggers build warning with vhost enabled) and fixes e1000 handling of short frames.
Discussion on best ways to fix the e1000 issue is still ongoing but the bug is severe enough for some guests and the fix is safe enough that I feel we should have it fixed ASAP and look for that perfect approach later.
Both fixes are 0.13 material IMO.
The following changes since commit
952afb719f3c965bae12b5bd5f0f0f7ed0251cb8:mingw: use ASLR, no-SEH and DEP if available (2010-09-19 08:36:34 +0000)
Quoted 8 lines
Quoted 5 lines
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/mst/qemu.gitfor_anthonyMichael S. Tsirkin (1):
vhost: fix infinite loop on error pathI don't think your fix is correct either, it will call the
ioctl()with file.index == -1.This is my patch:
- while (--file.index >= 0) {
+ while (file.index-- > 0) {
int r =ioctl(net->dev.control, VHOST_NET_SET_BACKEND, &file); assert(r >= 0);
}
Quoted 5 lines
Quoted 3 lines
For ioctl to get called with -1, index needs to be 0 before the decrement, and while won't be entered ... what am I missing?
Then
ioctl()won't be called at all. Is that correct?
Yes, this means the first vq SET_BACKEND call failed so nothing needs to be reverted.
Signature · 1 line
MST