Add 2 new commands for announce parameters to the test.
Signed-off-by: Vladislav Yasevich
---
tests/test-hmp.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/test-hmp.c b/tests/test-hmp.c
index 99e35ec..f3887d1 100644
--- a/tests/test-hmp.c
+++ b/tests/test-hmp.c
@@ -65,6 +65,8
Add an HMP command to trigger self annocements.
Signend-off-by: Vladislav Yasevich
---
hmp-commands.hx | 14 ++
hmp.c | 5 +
hmp.h | 1 +
3 files changed, 20 insertions(+)
diff --git a/hmp-commands.hx b/hmp-commands.hx
index c8dd816..0efe479 100644
--- a
Add HMP command to control and read annoucment parameters.
Signed-off-by: Vladislav Yasevich
---
hmp-commands-info.hx | 13
hmp-commands.hx | 14 +
hmp.c| 86
hmp.h| 4 +++
monitor.c
It is now potentially possible to issue annouce-self command in a tight
loop. Instead of doing nother, we can reset the timeout pararameters,
especially since each instance may provide it's own values. This
allows the user to extend or cut short currently runnig timer.
Signed-off-by: Vlad
Add a qmp command that can trigger guest announcements.
Based on work of Germano Veit Michel
Signed-off-by: Vladislav Yasevich
---
migration/savevm.c | 14 ++
qapi-schema.json | 19 +++
2 files changed, 33 insertions(+)
diff --git a/migration/savevm.c b
_self mechanism.
Signed-off-by: Vladislav Yasevich
---
include/migration/vmstate.h | 1 +
include/sysemu/sysemu.h | 9 -
migration/migration.c | 2 +-
migration/savevm.c | 24 +++-
4 files changed, 29 insertions(+), 7 deletions(-)
diff --git a/in
Expose the virtio-net self annoucement capability and allow
qemu_announce_self() to call it.
Signed-off-by: Vladislav Yasevich
---
hw/net/virtio-net.c | 32 +---
1 file changed, 29 insertions(+), 3 deletions(-)
diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c
Switch qemu_announce_self and virtio annoucements to use
the announcement timer framework. This makes sure that both
timers use the same timeouts and number of annoucement attempts
Based on work by Dr. David Alan Gilbert
Signed-off-by: Vladislav Yasevich
---
hw/net/virtio-net.c
We now expose qemu_announce_self through QMP and HMP. Add a test
with some very basic packet validation (make sure we get a RARP).
Signed-off-by: Vlad Yasevich
---
tests/Makefile.include | 2 ++
tests/test-announce-self.c | 78 ++
2 files changed
can be
created through the new commands, and have the ability to reset
currently runing timers.
Thanks
Vladislav Yasevich (12):
migration: Introduce announce parameters
migration: Introduce announcement timer
migration: Switch to using announcement timer
net: Add a network devic
Introdec an annoucement timer structure and initialization to
be used by for self-annoucement.
Based on the work by Germano Veit Michel
Signed-off-by: Vlad Yasevich
---
include/migration/vmstate.h | 13 +
migration/savevm.c | 22 ++
2 files changed, 35
Some network devices have a capability to do self annoucements
(ex: virtio-new). Add infrustrcture that would allow devices
to expose this ability.
Signed-off-by: Vladislav Yasevich
---
include/net/net.h | 2 ++
migration/savevm.c | 6 ++
2 files changed, 8 insertions(+)
diff --git a
Add parameters that control RARP/GARP announcement timeouts.
The parameters structure is added to the QAPI and a qmp command
is added to set/get the parameter data.
Based on work by "Dr. David Alan Gilbert"
Signed-off-by: Vladislav Yasevich
---
include/sysemu/sysemu.h | 7
so usefull in support of exposing qemu_announce_self through
qmp/hmp.
Signed-off-by: Vladislav Yasevich
---
hw/net/virtio-net.c| 30 --
include/hw/virtio/virtio-net.h | 2 --
include/net/net.h | 2 ++
migration/savevm.c | 6 +
data.
Commit 638fb14169 (net: Make qmp_query_rx_filter() with name argument
more obvious) partially addresses this issue, by limiting the output
when the name is specified. However, when the name is not specified,
the issue still persists.
Signed-off-by: Vladislav Yasevich
---
net/net.c | 6
condition.
Signed-off-by: Vladislav Yasevich
---
hw/net/rtl8139.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c
index edbb61c..8a33466 100644
--- a/hw/net/rtl8139.c
+++ b/hw/net/rtl8139.c
@@ -1148,7 +1148,9 @@ static ssize_t
full buffer size when the buffer
full.
Vladislav Yasevich (2):
rtl8139: Fix receive buffer overflow check
rtl8139: Do not consume the packet during overflow in standard mode.
hw/net/rtl8139.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
--
1.9.3
: Vladislav Yasevich
---
hw/net/rtl8139.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c
index 8a33466..cb51613 100644
--- a/hw/net/rtl8139.c
+++ b/hw/net/rtl8139.c
@@ -1159,7 +1159,7 @@ static ssize_t rtl8139_do_receive(NetClientState *nc,
const
: Vladislav Yasevich
---
hw/net/rtl8139.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c
index edbb61c..359e001 100644
--- a/hw/net/rtl8139.c
+++ b/hw/net/rtl8139.c
@@ -1157,7 +1157,7 @@ static ssize_t rtl8139_do_receive(NetClientState *nc,
const
start, adjust it on every
receive from the network and read from the guest and can set
the number of unread of bytes to full buffer size when the buffer
full.
Vladislav Yasevich (2):
rtl8139: Do not consume the packet during overflow in standard mode.
rtl8139: correctly track full
adjsted and the special case of a full buffer is also
trapped.
The C+ register trick is used to simplify migration and not require
a new machine type. This register is not used in regular mode
and C+ mode doesn't have the same issue.
Signed-off-by: Vladislav Yasevich
---
hw/net/rtl8139.c
adjsted and the special case of a full buffer is also
trapped.
The C+ register trick is used to simplify migration and not require
a new machine type. This register is not used in regular mode
and C+ mode doesn't have the same issue.
Signed-off-by: Vladislav Yasevich
---
hw/net/rtl8139.c
: Vladislav Yasevich
---
hw/net/rtl8139.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c
index edbb61c..359e001 100644
--- a/hw/net/rtl8139.c
+++ b/hw/net/rtl8139.c
@@ -1157,7 +1157,7 @@ static ssize_t rtl8139_do_receive(NetClientState *nc,
const
.
Vladislav Yasevich (2):
rtl8139: Do not consume the packet during overflow in standard mode.
rtl8139: correctly track full receive buffer in standard mode
hw/net/rtl8139.c | 44 +++-
1 file changed, 39 insertions(+), 5 deletions(-)
--
1.9.3
on and not require a new machine type.
Signed-off-by: Vladislav Yasevich
---
hw/net/rtl8139.c | 36 ++--
1 file changed, 34 insertions(+), 2 deletions(-)
diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c
index 359e001..3d572ab 100644
--- a/hw/net/rtl8139.c
+++ b/hw/net
: Vladislav Yasevich
---
hw/net/rtl8139.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c
index edbb61c..359e001 100644
--- a/hw/net/rtl8139.c
+++ b/hw/net/rtl8139.c
@@ -1157,7 +1157,7 @@ static ssize_t rtl8139_do_receive(NetClientState *nc,
const
packet fills the buffer and thus keeps
overwriting the previous packet and never waking up the guest.
The solution here is to trap the buffer full condition and let
the guest read the data before writing more data to the rxBuffer.
Vladislav Yasevich (2):
rtl8139: Do not consume the
in addition to actual link
state. Thus is is possible to set link down at each end effectively
emulating plugging/unplugging the wire at either end. The patch
continues to preserve the old behavior where setting just
nic side down does NOT impact the backend.
Signed-off-by: Vladislav Yasevich
28 matches
Mail list logo