Go to file
Gabriel L. Somlo 6a2acedb19 e1000: emulate auto-negotiation during external link status change
This patch emulates auto-negotiation when the network link status
is modified externally (i.e. via "set_link <id> off/on").

Also, a couple of cleanup items:
  - unset PHY status reg. AUTONEG_COMPLETE during link_down()
  - set PHY status reg. AUTONEG_COMPLETE during autoneg_timer() only
    if we actually brought the link up.
  - group all checks for "can we, and should we autonegotiate?"
    together for more clarity.

Signed-off-by: Gabriel Somlo <somlo@cmu.edu>
Reviewed-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2014-06-23 17:38:00 +03:00
audio audio: Drop superfluous conditionals around g_free() 2014-06-13 12:34:54 +02:00
backends hostmem: add properties for NUMA memory policy 2014-06-19 18:44:21 +03:00
block sheepdog: fix NULL dereference in sd_create 2014-06-23 16:36:13 +08:00
bsd-user
default-configs pc: implement pc-dimm device abstraction 2014-06-19 16:41:47 +03:00
disas
docs block: asynchronously stop the VM on I/O errors 2014-06-23 16:36:13 +08:00
dtc@bc895d6d09
fpu
fsdev
gdb-xml
hw e1000: emulate auto-negotiation during external link status change 2014-06-23 17:38:00 +03:00
include vhost: block migration if backend does not log memory 2014-06-23 17:37:59 +03:00
libcacard Merge remote-tracking branch 'remotes/bonzini/configure' into staging 2014-06-11 15:36:48 +01:00
libdecnumber libdecnumber: Fix decNumberSetBCD 2014-06-16 13:24:29 +02:00
linux-headers linux-headers: update linux headers to kvm/next 2014-06-16 13:24:41 +02:00
linux-user target-mips: implement UserLocal Register 2014-06-18 18:10:47 +02:00
net Add the vhost-user netdev backend to the command line 2014-06-19 18:44:18 +03:00
pc-bios Update OpenBIOS images 2014-06-20 23:59:19 +01:00
pixman@97336fad32
po
qapi qapi/string-output-visitor: fix bugs 2014-06-19 18:44:22 +03:00
qga
qobject json-parser: drop superfluous assignment for token variable 2014-06-11 10:10:29 -04:00
qom qom: introduce object_property_get_enum and object_property_get_uint16List 2014-06-19 18:44:19 +03:00
roms Update OpenBIOS images 2014-06-20 23:59:19 +01:00
scripts linux-headers: include psci.h 2014-06-16 13:24:41 +02:00
slirp
stubs libqemustub: add more stubs for qemu-char 2014-06-23 17:37:59 +03:00
sysconfigs/target
target-alpha
target-arm target-arm: Introduce per-CPU field for PSCI version 2014-06-19 18:33:04 +01:00
target-cris
target-i386 target-i386: Use Common ShiftRows and InvShiftRows Tables 2014-06-16 13:24:33 +02:00
target-lm32 vl: allow other threads to do qemu_system_vmstop_request 2014-06-23 16:36:13 +08:00
target-m68k
target-microblaze
target-mips target-mips: copy CP0_Config1 into DisasContext 2014-06-20 22:14:13 +02:00
target-moxie
target-openrisc
target-ppc PPC: KVM: Make pv hcall endian agnostic 2014-06-16 13:24:46 +02:00
target-s390x
target-sh4
target-sparc
target-unicore32
target-xtensa
tcg tcg/optimize: Don't special case TCG_OPF_CALL_CLOBBER 2014-06-18 11:39:02 -07:00
tests qtest: fix vhost-user-test unbalanced mutex locks 2014-06-23 17:37:59 +03:00
trace
ui vnc: cleanups and fixes 2014-06-20 16:57:28 +01:00
util QemuOpts: check NULL opts in qemu_opt_get functions 2014-06-21 16:40:14 +08:00
.exrc
.gitignore
.gitmodules PPC: Add u-boot firmware for e500 2014-06-16 13:24:35 +02:00
.mailmap
.travis.yml
CODING_STYLE
COPYING
COPYING.LIB
Changelog
HACKING
LICENSE
MAINTAINERS Merge remote-tracking branch 'remotes/kvm/uq/master' into staging 2014-06-20 19:25:18 +01:00
Makefile
Makefile.objs
Makefile.target NUMA: move numa related code to new file numa.c 2014-06-19 18:44:18 +03:00
README
VERSION
aio-posix.c
aio-win32.c
arch_init.c migration: catch unknown flags in ram_load 2014-06-16 04:55:27 +02:00
async.c
balloon.c
block-migration.c
block.c block: asynchronously stop the VM on I/O errors 2014-06-23 16:36:13 +08:00
blockdev-nbd.c
blockdev.c blockdev: Remove unused DriveInfo reference count 2014-06-16 17:23:19 +08:00
blockjob.c
bt-host.c
bt-vhci.c
configure Merge remote-tracking branch 'remotes/kvm/uq/master' into staging 2014-06-20 19:25:18 +01:00
coroutine-gthread.c
coroutine-sigaltstack.c
coroutine-ucontext.c
coroutine-win32.c
cpu-exec.c
cpus.c vl: allow other threads to do qemu_system_vmstop_request 2014-06-23 16:36:13 +08:00
cputlb.c
device-hotplug.c blockdev: Remove unused DriveInfo reference count 2014-06-16 17:23:19 +08:00
device_tree.c
disas.c monitor: QEMU Monitor Instruction Disassembly Incorrect for PowerPC LE Mode 2014-06-16 13:24:26 +02:00
dma-helpers.c
dump.c dump: Make DumpState and endian conversion routines available for arch-specific dump code 2014-06-16 13:24:36 +02:00
exec.c hostmem: add property to map memory with MAP_SHARED 2014-06-19 18:44:20 +03:00
gdbstub.c
hmp-commands.hx Add the vhost-user netdev backend to the command line 2014-06-19 18:44:18 +03:00
hmp.c qapi/hmp: use 'backend' instead of 'device' with memory backend 2014-06-23 17:37:59 +03:00
hmp.h hmp: add info memdev 2014-06-19 18:44:21 +03:00
iohandler.c
ioport.c
iothread.c
kvm-all.c Merge remote-tracking branch 'remotes/kvm/uq/master' into staging 2014-06-20 19:25:18 +01:00
kvm-stub.c Add kvm_eventfds_enabled function 2014-06-19 16:41:54 +03:00
main-loop.c
memory.c hostmem: add property to map memory with MAP_SHARED 2014-06-19 18:44:20 +03:00
memory_mapping.c
migration-exec.c
migration-fd.c
migration-rdma.c rdma: Fix block during rdma migration 2014-06-16 04:55:27 +02:00
migration-tcp.c
migration-unix.c
migration.c migration: catch unknown flags in ram_load 2014-06-16 04:55:27 +02:00
module-common.c
monitor.c qapi/hmp: use 'backend' instead of 'device' with memory backend 2014-06-23 17:37:59 +03:00
nbd.c
numa.c numa: handle mmaped memory allocation failure correctly 2014-06-19 18:44:22 +03:00
os-posix.c
os-win32.c
page_cache.c
qapi-schema.json qapi/hmp: use 'backend' instead of 'device' with memory backend 2014-06-23 17:37:59 +03:00
qdev-monitor.c
qdict-test-data.txt
qemu-bridge-helper.c
qemu-char.c console: move chardev declarations to sysemu/char.h 2014-06-23 10:56:20 +01:00
qemu-coroutine-io.c
qemu-coroutine-lock.c
qemu-coroutine-sleep.c
qemu-coroutine.c
qemu-doc.texi
qemu-file.c
qemu-img-cmds.hx
qemu-img.c cleanup QEMUOptionParameter 2014-06-16 17:23:21 +08:00
qemu-img.texi
qemu-io-cmds.c
qemu-io.c
qemu-log.c
qemu-nbd.c
qemu-nbd.texi
qemu-options-wrapper.h
qemu-options.h
qemu-options.hx numa: add -numa node,memdev= option 2014-06-19 18:44:19 +03:00
qemu-seccomp.c
qemu-tech.texi
qemu-timer.c
qemu.nsi
qemu.sasl
qmp-commands.hx qmp: add query-acpi-ospm-status command 2014-06-19 18:44:22 +03:00
qmp.c qmp: add query-acpi-ospm-status command 2014-06-19 18:44:22 +03:00
qtest.c
rules.mak rules.mak: remove $(sort) from extract-libs 2014-06-16 16:01:50 +01:00
savevm.c migration: introduce self_announce_delay() 2014-06-19 16:41:54 +03:00
softmmu_template.h
spice-qemu-char.c
tcg-runtime.c
tci.c
thread-pool.c
thunk.c
tpm.c
trace-events trace: pc: add PC_DIMM slot & address allocation 2014-06-19 16:41:50 +03:00
translate-all.c memory: move preallocation code out of exec.c 2014-06-19 18:44:19 +03:00
translate-all.h
user-exec.c
version.rc
vl.c vl: allow other threads to do qemu_system_vmstop_request 2014-06-23 16:36:13 +08:00
vmstate.c
xbzrle.c
xen-common-stub.c
xen-common.c
xen-hvm-stub.c
xen-hvm.c
xen-mapcache.c

README

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team