#
c924f36a |
| 01-Dec-2010 |
Michael S. Tsirkin <mst@redhat.com> |
Merge remote branch 'origin/master' into pci
Conflicts: Makefile.objs hw/virtio.c
|
#
b90c73cf |
| 19-Nov-2010 |
Stefan Weil <weil@mail.berlios.de> |
pci: Replace unneeded type casts in calls of pci_register_bar
There is no need for these type casts (as other existing code shows). So re-write the first argument without type cast (and remove a rel
pci: Replace unneeded type casts in calls of pci_register_bar
There is no need for these type casts (as other existing code shows). So re-write the first argument without type cast (and remove a related TODO comment).
Cc: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
show more ...
|
#
43ad7e3e |
| 11-Nov-2010 |
Jes Sorensen <Jes.Sorensen@redhat.com> |
Add missing braces
This patch adds missing braces around if/else statements that call macros which are likely to result in errors if the macro is changed. It also makes the code comply better with C
Add missing braces
This patch adds missing braces around if/else statements that call macros which are likely to result in errors if the macro is changed. It also makes the code comply better with CODING_STYLE.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|
#
1f892feb |
| 05-Nov-2010 |
Alex Williamson <alex.williamson@redhat.com> |
e1000: Fix TCP checksum overflow with TSO
When adding the length to the pseudo header, we're not properly accounting for overflow.
From: Mark Wu <dwu@redhat.com> Signed-off-by: Alex Williamson <ale
e1000: Fix TCP checksum overflow with TSO
When adding the length to the pseudo header, we're not properly accounting for overflow.
From: Mark Wu <dwu@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
show more ...
|
#
e685b4eb |
| 05-Nov-2010 |
Alex Williamson <alex.williamson@redhat.com> |
e1000: Fix TCP checksum overflow with TSO
When adding the length to the pseudo header, we're not properly accounting for overflow.
From: Mark Wu <dwu@redhat.com> Signed-off-by: Alex Williamson <ale
e1000: Fix TCP checksum overflow with TSO
When adding the length to the pseudo header, we're not properly accounting for overflow.
From: Mark Wu <dwu@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
show more ...
|
#
78aeb23e |
| 18-Sep-2010 |
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> |
e1000: Pad short frames to minimum size (60 bytes)
The OpenIndiana (Solaris) e1000g driver drops frames that are too long or too short. It expects to receive frames of at least the Ethernet minimum
e1000: Pad short frames to minimum size (60 bytes)
The OpenIndiana (Solaris) e1000g driver drops frames that are too long or too short. It expects to receive frames of at least the Ethernet minimum size. ARP requests in particular are small and will be dropped if they are not padded appropriately, preventing a Solaris VM from becoming visible on the network.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
show more ...
|
#
a05e8a6e |
| 02-Sep-2010 |
Michael S. Tsirkin <mst@redhat.com> |
qemu: e1000 fix TOR math
Patch b0b900070c7cb29bbefb732ec00397abe5de6d73 made TOR valuer incorrect: the spec says it should always include the CRC field. No one seems to use this field, but better to
qemu: e1000 fix TOR math
Patch b0b900070c7cb29bbefb732ec00397abe5de6d73 made TOR valuer incorrect: the spec says it should always include the CRC field. No one seems to use this field, but better to stick to spec.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
show more ...
|
#
7ed6184b |
| 26-Jul-2010 |
Anthony Liguori <aliguori@us.ibm.com> |
Merge remote branch 'mst/for_anthony' into staging
|
#
9651ac55 |
| 10-Jul-2010 |
Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> |
e1000: Fix wrong microwire EEPROM state initialization
This change fixes initialization of e1000's microwire EEPROM internal state values so that qemu's e1000 emulation works on NetBSD, which doesn'
e1000: Fix wrong microwire EEPROM state initialization
This change fixes initialization of e1000's microwire EEPROM internal state values so that qemu's e1000 emulation works on NetBSD, which doesn't use Intel's em driver but has its own wm driver for the Intel i8254x Gigabit Ethernet.
Previously set_eecd() function in e1000.c clears EEPROM internal state values on SK rising edge during CS==L, but according to FM93C06 EEPROM (which is MicroWire compatible) data sheet, EEPROM internal status should be cleared on CS rise edge regardless of SK input: "... a rising edge on this (CS) signal is required to reset the internal state-machine to accept a new cycle .." and nothing should be changed during CS (chip select) is inactive.
Intel's em driver seems to explicitly raise SK output after CS is negated in em_standby_eeprom() so many other OSes that use Intel's driver don't have this problem even on the previous e1000.c implementation, but I can't find any articles that say the MICROWIRE or EEPROM spec requires such sequence, and actually hardware works fine without it (i.e. real i82540EM has been working on NetBSD).
This fix also changes initialization to clear each state value in struct eecd_state individually rather than using memset() against the whole structre. The old_eecd member stores the last SK and CS signal levels and it should be preserved even after reset of internal EEPROM state to detect next signal edges for proper EEPROM emulation.
Signed-off-by: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
show more ...
|
#
55e8d1ce |
| 12-Jul-2010 |
Michael S. Tsirkin <mst@redhat.com> |
e1000: secrc support
Add support for secrc field. Reportedly needed by old RHEL guests.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
|
#
b0b90007 |
| 12-Jul-2010 |
Michael S. Tsirkin <mst@redhat.com> |
e1000: fix access 4 bytes beyond buffer end
We do range check for size, and get size as buffer, but copy size + 4 bytes (4 is for FCS). Let's copy size bytes but put size + 4 in length.
Signed-off-
e1000: fix access 4 bytes beyond buffer end
We do range check for size, and get size as buffer, but copy size + 4 bytes (4 is for FCS). Let's copy size bytes but put size + 4 in length.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
show more ...
|
#
27124888 |
| 14-Jun-2010 |
Jes Sorensen <Jes.Sorensen@redhat.com> |
Change #define DEBUG to #define E1000_DEBUG in hw/e1000.c
Change #define DEBUG to #define E1000_DEBUG in hw/e1000.c to make it possible to build QEMU with -DDEBUG
Signed-off-by: Jes Sorensen <Jes.S
Change #define DEBUG to #define E1000_DEBUG in hw/e1000.c
Change #define DEBUG to #define E1000_DEBUG in hw/e1000.c to make it possible to build QEMU with -DDEBUG
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|
#
af2960f9 |
| 14-May-2010 |
Blue Swirl <blauwirbel@gmail.com> |
e1000: make some tables 'const'
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
|
#
98835fe3 |
| 31-Mar-2010 |
Thomas Monjalon <thomas@monjalon.net> |
e1000: fix build on Ubuntu with _FORTIFY_SOURCE
There was a pointer cast warning on Ubuntu since _FORTIFY_SOURCE has been reenabled.
_FORTIFY_SOURCE had been disabled by 4a24470497360d8b77568b83008
e1000: fix build on Ubuntu with _FORTIFY_SOURCE
There was a pointer cast warning on Ubuntu since _FORTIFY_SOURCE has been reenabled.
_FORTIFY_SOURCE had been disabled by 4a24470497360d8b77568b83008d0e9d6eb0787d and reenabled by 849583050d5f6f782718be8cb50688978973fbea.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
show more ...
|
#
ea3fdd5d |
| 06-Jan-2010 |
Anthony Liguori <aliguori@us.ibm.com> |
Merge remote branch 'mst/for_anthony' into staging
|
#
2758aa52 |
| 23-Dec-2009 |
Michael S. Tsirkin <mst@redhat.com> |
e1000: add link to data sheet
Link to data sheet at intel.com so people can find it.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
|
#
a9cbacb0 |
| 10-Dec-2009 |
Michael S. Tsirkin <mst@redhat.com> |
e1000: switch to symbolic names for pci registers
No functional changes. I verified that the generated object binary does not change.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Ju
e1000: switch to symbolic names for pci registers
No functional changes. I verified that the generated object binary does not change.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Juan Quintela <quintela@redhat.com> Acked-by: Glauber Costa <glommer@gmail.com>
show more ...
|
#
c7493749 |
| 18-Dec-2009 |
Anthony Liguori <aliguori@us.ibm.com> |
e1000: Don't muck with PCI commmand register
Otherwise, the driver does not work in Linux after the INT_DISABLE changes in PCI.
Michael Tsirkin had a patch to do this, I'm not sure what happened to
e1000: Don't muck with PCI commmand register
Otherwise, the driver does not work in Linux after the INT_DISABLE changes in PCI.
Michael Tsirkin had a patch to do this, I'm not sure what happened to it.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|
#
8c52c8f3 |
| 18-Dec-2009 |
Gerd Hoffmann <kraxel@redhat.com> |
pci romfiles: add property, add default to PCIDeviceInfo
This patch adds a romfile property to the pci bus. It allows to specify a romfile to load into the rom bar of the pci device. The default v
pci romfiles: add property, add default to PCIDeviceInfo
This patch adds a romfile property to the pci bus. It allows to specify a romfile to load into the rom bar of the pci device. The default value comes from a new field in PCIDeviceInfo. The property allows to change the file and also to disable the rom loading using an empty string.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|
#
c2039bd0 |
| 18-Dec-2009 |
Anthony Liguori <aliguori@us.ibm.com> |
Support PCI based option rom loading
Currently, we preload option roms into the option rom space in memory. This prevents DDIM from functioning correctly which severely limits the number of roms we
Support PCI based option rom loading
Currently, we preload option roms into the option rom space in memory. This prevents DDIM from functioning correctly which severely limits the number of roms we can support.
This patch introduces a pci_add_option_rom() which registers the PCI_ROM_ADDRESS bar which points to our option rom. It also converts over the cirrus vga adapter, the rtl8139, virtio, and the e1000 to use this new mechanism.
The result is that PXE boot functions even with three unique types of cards.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|
#
b10fec9b |
| 19-Nov-2009 |
Stefan Weil <weil@mail.berlios.de> |
e1000: Fix warning from code review
A code review run by Steve Grubb complained about code in e1000.c:
In hw/e1000.c at line 89, vlan is declared to be 4 bytes. At line 382 is an attempt to do a me
e1000: Fix warning from code review
A code review run by Steve Grubb complained about code in e1000.c:
In hw/e1000.c at line 89, vlan is declared to be 4 bytes. At line 382 is an attempt to do a memmove over it with a size of 12.
This was fixed by splitting the memmove in two calls and adding a comment to the declaration of vlan and data.
Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|
#
be73cfe2 |
| 02-Dec-2009 |
Juan Quintela <quintela@redhat.com> |
savevm: Port to qdev.vmsd all devices that have qdev
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
|
#
a03e2aec |
| 25-Nov-2009 |
Mark McLoughlin <markmc@redhat.com> |
net: convert e1000 to NICState
Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
|
#
a00b2335 |
| 31-Oct-2009 |
Kay Ackermann <kay.ackermann@uni-ulm.de> |
e1000 fix: read access to some registers is missing.
While writing working on an e1000 driver for my university's OS I noticed that some registers aren't readable in QEMU, but they should be readabl
e1000 fix: read access to some registers is missing.
While writing working on an e1000 driver for my university's OS I noticed that some registers aren't readable in QEMU, but they should be readable as stated in Intels Driver Developer Manual (and also verified on real hardware).
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|
#
89e8b13c |
| 30-Oct-2009 |
Isaku Yamahata <yamahata@valinux.co.jp> |
pci: introduce FMT_PCIBUS for printf format for pcibus_t.
This patch is preliminary for 64bit BAR. Later pcibus_t will be changed from uint32_t to uint64_t. Introduce FMT_PCIBUS for printf format fo
pci: introduce FMT_PCIBUS for printf format for pcibus_t.
This patch is preliminary for 64bit BAR. Later pcibus_t will be changed from uint32_t to uint64_t. Introduce FMT_PCIBUS for printf format for pcibus_t.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
show more ...
|