* [PULL 0/8] Net patches
@ 2022-02-14 3:59 Jason Wang
2022-02-14 3:59 ` [PULL 1/8] hw/net/vmxnet3: Log guest-triggerable errors using LOG_GUEST_ERROR Jason Wang
` (8 more replies)
0 siblings, 9 replies; 22+ messages in thread
From: Jason Wang @ 2022-02-14 3:59 UTC (permalink / raw)
To: peter.maydell; +Cc: Jason Wang, qemu-devel
The following changes since commit 48033ad678ae2def43bf0d543a2c4c3d2a93feaf:
Merge remote-tracking branch 'remotes/vsementsov/tags/pull-nbd-2022-02-09-v2' into staging (2022-02-12 22:04:07 +0000)
are available in the git repository at:
https://github.com/jasowang/qemu.git tags/net-pull-request
for you to fetch changes up to 9d6267b240c114d1a3cd314a08fd6e1339d34b83:
net/eth: Don't consider ESP to be an IPv6 option header (2022-02-14 11:50:44 +0800)
----------------------------------------------------------------
----------------------------------------------------------------
Nick Hudson (1):
hw/net: e1000e: Clear ICR on read when using non MSI-X interrupts
Peter Foley (2):
net/tap: Set return code on failure
net: Fix uninitialized data usage
Philippe Mathieu-Daudé (1):
hw/net/vmxnet3: Log guest-triggerable errors using LOG_GUEST_ERROR
Rao Lei (1):
net/filter: Optimize filter_send to coroutine
Thomas Jansen (1):
net/eth: Don't consider ESP to be an IPv6 option header
Zhang Chen (2):
net/colo-compare.c: Optimize compare order for performance
net/colo-compare.c: Update the default value comments
hw/net/e1000e_core.c | 5 ++++
hw/net/trace-events | 1 +
hw/net/vmxnet3.c | 4 +++-
net/colo-compare.c | 28 +++++++++++-----------
net/eth.c | 1 -
net/filter-mirror.c | 66 +++++++++++++++++++++++++++++++++++++++++-----------
net/tap-linux.c | 1 +
net/tap.c | 1 +
8 files changed, 78 insertions(+), 29 deletions(-)
^ permalink raw reply [flat|nested] 22+ messages in thread
* [PULL 1/8] hw/net/vmxnet3: Log guest-triggerable errors using LOG_GUEST_ERROR
2022-02-14 3:59 [PULL 0/8] Net patches Jason Wang
@ 2022-02-14 3:59 ` Jason Wang
2022-02-14 3:59 ` [PULL 2/8] net/tap: Set return code on failure Jason Wang
` (7 subsequent siblings)
8 siblings, 0 replies; 22+ messages in thread
From: Jason Wang @ 2022-02-14 3:59 UTC (permalink / raw)
To: peter.maydell
Cc: Dike, Jason Wang, Philippe Mathieu-Daudé, qemu-devel, Duhao
From: Philippe Mathieu-Daudé <philmd@redhat.com>
The "Interrupt Cause" register (VMXNET3_REG_ICR) is read-only.
Write accesses are ignored. Log them with as LOG_GUEST_ERROR
instead of aborting:
[R +0.239743] writeq 0xe0002031 0x46291a5a55460800
ERROR:hw/net/vmxnet3.c:1819:vmxnet3_io_bar1_write: code should not be reached
Thread 1 "qemu-system-i38" received signal SIGABRT, Aborted.
(gdb) bt
#3 0x74c397d3 in __GI_abort () at abort.c:79
#4 0x76d3cd4c in g_assertion_message (domain=<optimized out>, file=<optimized out>, line=<optimized out>, func=<optimized out>, message=<optimized out>) at ../glib/gtestutils.c:3223
#5 0x76d9d45f in g_assertion_message_expr
(domain=0x0, file=0x59fc2e53 "hw/net/vmxnet3.c", line=1819, func=0x59fc11e0 <__func__.vmxnet3_io_bar1_write> "vmxnet3_io_bar1_write", expr=<optimized out>)
at ../glib/gtestutils.c:3249
#6 0x57e80a3a in vmxnet3_io_bar1_write (opaque=0x62814100, addr=56, val=70, size=4) at hw/net/vmxnet3.c:1819
#7 0x58c2d894 in memory_region_write_accessor (mr=0x62816b90, addr=56, value=0x7fff9450, size=4, shift=0, mask=4294967295, attrs=...) at softmmu/memory.c:492
#8 0x58c2d1d2 in access_with_adjusted_size (addr=56, value=0x7fff9450, size=1, access_size_min=4, access_size_max=4, access_fn=
0x58c2d290 <memory_region_write_accessor>, mr=0x62816b90, attrs=...) at softmmu/memory.c:554
#9 0x58c2bae7 in memory_region_dispatch_write (mr=0x62816b90, addr=56, data=70, op=MO_8, attrs=...) at softmmu/memory.c:1504
#10 0x58bfd034 in flatview_write_continue (fv=0x606000181700, addr=0xe0002038, attrs=..., ptr=0x7fffb9e0, len=1, addr1=56, l=1, mr=0x62816b90)
at softmmu/physmem.c:2782
#11 0x58beba00 in flatview_write (fv=0x606000181700, addr=0xe0002031, attrs=..., buf=0x7fffb9e0, len=8) at softmmu/physmem.c:2822
#12 0x58beb589 in address_space_write (as=0x608000015f20, addr=0xe0002031, attrs=..., buf=0x7fffb9e0, len=8) at softmmu/physmem.c:2914
Reported-by: Dike <dike199774@qq.com>
Reported-by: Duhao <504224090@qq.com>
BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=2032932
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
---
hw/net/vmxnet3.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hw/net/vmxnet3.c b/hw/net/vmxnet3.c
index f65af4e..0b7acf7 100644
--- a/hw/net/vmxnet3.c
+++ b/hw/net/vmxnet3.c
@@ -1816,7 +1816,9 @@ vmxnet3_io_bar1_write(void *opaque,
case VMXNET3_REG_ICR:
VMW_CBPRN("Write BAR1 [VMXNET3_REG_ICR] = %" PRIx64 ", size %d",
val, size);
- g_assert_not_reached();
+ qemu_log_mask(LOG_GUEST_ERROR,
+ "%s: write to read-only register VMXNET3_REG_ICR\n",
+ TYPE_VMXNET3);
break;
/* Event Cause Register */
--
2.7.4
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [PULL 2/8] net/tap: Set return code on failure
2022-02-14 3:59 [PULL 0/8] Net patches Jason Wang
2022-02-14 3:59 ` [PULL 1/8] hw/net/vmxnet3: Log guest-triggerable errors using LOG_GUEST_ERROR Jason Wang
@ 2022-02-14 3:59 ` Jason Wang
2022-02-14 3:59 ` [PULL 3/8] net: Fix uninitialized data usage Jason Wang
` (6 subsequent siblings)
8 siblings, 0 replies; 22+ messages in thread
From: Jason Wang @ 2022-02-14 3:59 UTC (permalink / raw)
To: peter.maydell
Cc: Patrick Venture, Jason Wang, Peter Foley, qemu-devel,
Philippe Mathieu-Daudé
From: Peter Foley <pefoley@google.com>
Match the other error handling in this function.
Fixes: e7b347d0bf6 ("net: detect errors from probing vnet hdr flag for TAP devices")
Reviewed-by: Patrick Venture <venture@google.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Peter Foley <pefoley@google.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
---
net/tap.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/tap.c b/net/tap.c
index f716be3..c5cbeaa 100644
--- a/net/tap.c
+++ b/net/tap.c
@@ -900,6 +900,7 @@ int net_init_tap(const Netdev *netdev, const char *name,
if (i == 0) {
vnet_hdr = tap_probe_vnet_hdr(fd, errp);
if (vnet_hdr < 0) {
+ ret = -1;
goto free_fail;
}
} else if (vnet_hdr != tap_probe_vnet_hdr(fd, NULL)) {
--
2.7.4
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [PULL 3/8] net: Fix uninitialized data usage
2022-02-14 3:59 [PULL 0/8] Net patches Jason Wang
2022-02-14 3:59 ` [PULL 1/8] hw/net/vmxnet3: Log guest-triggerable errors using LOG_GUEST_ERROR Jason Wang
2022-02-14 3:59 ` [PULL 2/8] net/tap: Set return code on failure Jason Wang
@ 2022-02-14 3:59 ` Jason Wang
2022-02-14 3:59 ` [PULL 4/8] net/colo-compare.c: Optimize compare order for performance Jason Wang
` (5 subsequent siblings)
8 siblings, 0 replies; 22+ messages in thread
From: Jason Wang @ 2022-02-14 3:59 UTC (permalink / raw)
To: peter.maydell
Cc: Patrick Venture, Jason Wang, qemu-devel,
Philippe Mathieu-Daudé, Hao Wu, Peter Foley
From: Peter Foley <pefoley@google.com>
e.g.
1109 15:16:20.151506 Uninitialized bytes in ioctl_common_pre at offset 0 inside [0x7ffc516af9b8, 4)
1109 15:16:20.151659 ==588974==WARNING: MemorySanitizer: use-of-uninitialized-value
1109 15:16:20.312923 #0 0x5639b88acb21 in tap_probe_vnet_hdr_len third_party/qemu/net/tap-linux.c:183:9
1109 15:16:20.312952 #1 0x5639b88afd66 in net_tap_fd_init third_party/qemu/net/tap.c:409:9
1109 15:16:20.312954 #2 0x5639b88b2d1b in net_init_tap_one third_party/qemu/net/tap.c:681:19
1109 15:16:20.312956 #3 0x5639b88b16a8 in net_init_tap third_party/qemu/net/tap.c:912:13
1109 15:16:20.312957 #4 0x5639b8890175 in net_client_init1 third_party/qemu/net/net.c:1110:9
1109 15:16:20.312958 #5 0x5639b888f912 in net_client_init third_party/qemu/net/net.c:1208:15
1109 15:16:20.312960 #6 0x5639b8894aa5 in net_param_nic third_party/qemu/net/net.c:1588:11
1109 15:16:20.312961 #7 0x5639b900cd18 in qemu_opts_foreach third_party/qemu/util/qemu-option.c:1135:14
1109 15:16:20.312962 #8 0x5639b889393c in net_init_clients third_party/qemu/net/net.c:1612:9
1109 15:16:20.312964 #9 0x5639b717aaf3 in qemu_create_late_backends third_party/qemu/softmmu/vl.c:1962:5
1109 15:16:20.312965 #10 0x5639b717aaf3 in qemu_init third_party/qemu/softmmu/vl.c:3694:5
1109 15:16:20.312967 #11 0x5639b71083b8 in main third_party/qemu/softmmu/main.c:49:5
1109 15:16:20.312968 #12 0x7f464de1d8d2 in __libc_start_main (/usr/grte/v5/lib64/libc.so.6+0x628d2)
1109 15:16:20.312969 #13 0x5639b6bbd389 in _start /usr/grte/v5/debug-src/src/csu/../sysdeps/x86_64/start.S:120
1109 15:16:20.312970
1109 15:16:20.312975 Uninitialized value was stored to memory at
1109 15:16:20.313393 #0 0x5639b88acbee in tap_probe_vnet_hdr_len third_party/qemu/net/tap-linux.c
1109 15:16:20.313396 #1 0x5639b88afd66 in net_tap_fd_init third_party/qemu/net/tap.c:409:9
1109 15:16:20.313398 #2 0x5639b88b2d1b in net_init_tap_one third_party/qemu/net/tap.c:681:19
1109 15:16:20.313399 #3 0x5639b88b16a8 in net_init_tap third_party/qemu/net/tap.c:912:13
1109 15:16:20.313400 #4 0x5639b8890175 in net_client_init1 third_party/qemu/net/net.c:1110:9
1109 15:16:20.313401 #5 0x5639b888f912 in net_client_init third_party/qemu/net/net.c:1208:15
1109 15:16:20.313403 #6 0x5639b8894aa5 in net_param_nic third_party/qemu/net/net.c:1588:11
1109 15:16:20.313404 #7 0x5639b900cd18 in qemu_opts_foreach third_party/qemu/util/qemu-option.c:1135:14
1109 15:16:20.313405 #8 0x5639b889393c in net_init_clients third_party/qemu/net/net.c:1612:9
1109 15:16:20.313407 #9 0x5639b717aaf3 in qemu_create_late_backends third_party/qemu/softmmu/vl.c:1962:5
1109 15:16:20.313408 #10 0x5639b717aaf3 in qemu_init third_party/qemu/softmmu/vl.c:3694:5
1109 15:16:20.313409 #11 0x5639b71083b8 in main third_party/qemu/softmmu/main.c:49:5
1109 15:16:20.313410 #12 0x7f464de1d8d2 in __libc_start_main (/usr/grte/v5/lib64/libc.so.6+0x628d2)
1109 15:16:20.313412 #13 0x5639b6bbd389 in _start /usr/grte/v5/debug-src/src/csu/../sysdeps/x86_64/start.S:120
1109 15:16:20.313413
1109 15:16:20.313417 Uninitialized value was stored to memory at
1109 15:16:20.313791 #0 0x5639b88affbd in net_tap_fd_init third_party/qemu/net/tap.c:400:26
1109 15:16:20.313826 #1 0x5639b88b2d1b in net_init_tap_one third_party/qemu/net/tap.c:681:19
1109 15:16:20.313829 #2 0x5639b88b16a8 in net_init_tap third_party/qemu/net/tap.c:912:13
1109 15:16:20.313831 #3 0x5639b8890175 in net_client_init1 third_party/qemu/net/net.c:1110:9
1109 15:16:20.313836 #4 0x5639b888f912 in net_client_init third_party/qemu/net/net.c:1208:15
1109 15:16:20.313838 #5 0x5639b8894aa5 in net_param_nic third_party/qemu/net/net.c:1588:11
1109 15:16:20.313839 #6 0x5639b900cd18 in qemu_opts_foreach third_party/qemu/util/qemu-option.c:1135:14
1109 15:16:20.313841 #7 0x5639b889393c in net_init_clients third_party/qemu/net/net.c:1612:9
1109 15:16:20.313843 #8 0x5639b717aaf3 in qemu_create_late_backends third_party/qemu/softmmu/vl.c:1962:5
1109 15:16:20.313844 #9 0x5639b717aaf3 in qemu_init third_party/qemu/softmmu/vl.c:3694:5
1109 15:16:20.313845 #10 0x5639b71083b8 in main third_party/qemu/softmmu/main.c:49:5
1109 15:16:20.313846 #11 0x7f464de1d8d2 in __libc_start_main (/usr/grte/v5/lib64/libc.so.6+0x628d2)
1109 15:16:20.313847 #12 0x5639b6bbd389 in _start /usr/grte/v5/debug-src/src/csu/../sysdeps/x86_64/start.S:120
1109 15:16:20.313849
1109 15:16:20.313851 Uninitialized value was created by an allocation of 'ifr' in the stack frame of function 'tap_probe_vnet_hdr'
1109 15:16:20.313855 #0 0x5639b88ac680 in tap_probe_vnet_hdr third_party/qemu/net/tap-linux.c:151
1109 15:16:20.313856
1109 15:16:20.313878 SUMMARY: MemorySanitizer: use-of-uninitialized-value third_party/qemu/net/tap-linux.c:183:9 in tap_probe_vnet_hdr_len
Fixes: dc69004c7d8 ("net: move tap_probe_vnet_hdr() to tap-linux.c")
Reviewed-by: Hao Wu <wuhaotsh@google.com>
Reviewed-by: Patrick Venture <venture@google.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Peter Foley <pefoley@google.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
---
net/tap-linux.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/tap-linux.c b/net/tap-linux.c
index 9584769..5e70b93 100644
--- a/net/tap-linux.c
+++ b/net/tap-linux.c
@@ -150,6 +150,7 @@ void tap_set_sndbuf(int fd, const NetdevTapOptions *tap, Error **errp)
int tap_probe_vnet_hdr(int fd, Error **errp)
{
struct ifreq ifr;
+ memset(&ifr, 0, sizeof(ifr));
if (ioctl(fd, TUNGETIFF, &ifr) != 0) {
/* TUNGETIFF is available since kernel v2.6.27 */
--
2.7.4
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [PULL 4/8] net/colo-compare.c: Optimize compare order for performance
2022-02-14 3:59 [PULL 0/8] Net patches Jason Wang
` (2 preceding siblings ...)
2022-02-14 3:59 ` [PULL 3/8] net: Fix uninitialized data usage Jason Wang
@ 2022-02-14 3:59 ` Jason Wang
2022-02-14 3:59 ` [PULL 5/8] net/colo-compare.c: Update the default value comments Jason Wang
` (4 subsequent siblings)
8 siblings, 0 replies; 22+ messages in thread
From: Jason Wang @ 2022-02-14 3:59 UTC (permalink / raw)
To: peter.maydell; +Cc: Jason Wang, Zhang Chen, leirao, qemu-devel
From: Zhang Chen <chen.zhang@intel.com>
COLO-compare use the glib function g_queue_find_custom to dump
another VM's networking packet to compare. But this function always
start find from the queue->head(here is the newest packet), It will
reduce the success rate of comparison. So this patch reversed
the order of the queues for performance.
Signed-off-by: Zhang Chen <chen.zhang@intel.com>
Reported-by: leirao <lei.rao@intel.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
---
net/colo-compare.c | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/net/colo-compare.c b/net/colo-compare.c
index b966e7e..216de5a 100644
--- a/net/colo-compare.c
+++ b/net/colo-compare.c
@@ -197,7 +197,7 @@ static void colo_compare_inconsistency_notify(CompareState *s)
/* Use restricted to colo_insert_packet() */
static gint seq_sorter(Packet *a, Packet *b, gpointer data)
{
- return a->tcp_seq - b->tcp_seq;
+ return b->tcp_seq - a->tcp_seq;
}
static void fill_pkt_tcp_info(void *data, uint32_t *max_ack)
@@ -421,13 +421,13 @@ pri:
if (g_queue_is_empty(&conn->primary_list)) {
return;
}
- ppkt = g_queue_pop_head(&conn->primary_list);
+ ppkt = g_queue_pop_tail(&conn->primary_list);
sec:
if (g_queue_is_empty(&conn->secondary_list)) {
- g_queue_push_head(&conn->primary_list, ppkt);
+ g_queue_push_tail(&conn->primary_list, ppkt);
return;
}
- spkt = g_queue_pop_head(&conn->secondary_list);
+ spkt = g_queue_pop_tail(&conn->secondary_list);
if (ppkt->tcp_seq == ppkt->seq_end) {
colo_release_primary_pkt(s, ppkt);
@@ -458,7 +458,7 @@ sec:
}
}
if (!ppkt) {
- g_queue_push_head(&conn->secondary_list, spkt);
+ g_queue_push_tail(&conn->secondary_list, spkt);
goto pri;
}
}
@@ -477,7 +477,7 @@ sec:
if (mark == COLO_COMPARE_FREE_PRIMARY) {
conn->compare_seq = ppkt->seq_end;
colo_release_primary_pkt(s, ppkt);
- g_queue_push_head(&conn->secondary_list, spkt);
+ g_queue_push_tail(&conn->secondary_list, spkt);
goto pri;
} else if (mark == COLO_COMPARE_FREE_SECONDARY) {
conn->compare_seq = spkt->seq_end;
@@ -490,8 +490,8 @@ sec:
goto pri;
}
} else {
- g_queue_push_head(&conn->primary_list, ppkt);
- g_queue_push_head(&conn->secondary_list, spkt);
+ g_queue_push_tail(&conn->primary_list, ppkt);
+ g_queue_push_tail(&conn->secondary_list, spkt);
#ifdef DEBUG_COLO_PACKETS
qemu_hexdump(stderr, "colo-compare ppkt", ppkt->data, ppkt->size);
@@ -673,7 +673,7 @@ static void colo_compare_packet(CompareState *s, Connection *conn,
while (!g_queue_is_empty(&conn->primary_list) &&
!g_queue_is_empty(&conn->secondary_list)) {
- pkt = g_queue_pop_head(&conn->primary_list);
+ pkt = g_queue_pop_tail(&conn->primary_list);
result = g_queue_find_custom(&conn->secondary_list,
pkt, (GCompareFunc)HandlePacket);
@@ -689,7 +689,7 @@ static void colo_compare_packet(CompareState *s, Connection *conn,
* timeout, it will trigger a checkpoint request.
*/
trace_colo_compare_main("packet different");
- g_queue_push_head(&conn->primary_list, pkt);
+ g_queue_push_tail(&conn->primary_list, pkt);
colo_compare_inconsistency_notify(s);
break;
@@ -819,7 +819,7 @@ static int compare_chr_send(CompareState *s,
entry->buf = g_malloc(size);
memcpy(entry->buf, buf, size);
}
- g_queue_push_head(&sendco->send_list, entry);
+ g_queue_push_tail(&sendco->send_list, entry);
if (sendco->done) {
sendco->co = qemu_coroutine_create(_compare_chr_send, sendco);
@@ -1347,7 +1347,7 @@ static void colo_flush_packets(void *opaque, void *user_data)
Packet *pkt = NULL;
while (!g_queue_is_empty(&conn->primary_list)) {
- pkt = g_queue_pop_head(&conn->primary_list);
+ pkt = g_queue_pop_tail(&conn->primary_list);
compare_chr_send(s,
pkt->data,
pkt->size,
@@ -1357,7 +1357,7 @@ static void colo_flush_packets(void *opaque, void *user_data)
packet_destroy_partial(pkt, NULL);
}
while (!g_queue_is_empty(&conn->secondary_list)) {
- pkt = g_queue_pop_head(&conn->secondary_list);
+ pkt = g_queue_pop_tail(&conn->secondary_list);
packet_destroy(pkt, NULL);
}
}
--
2.7.4
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [PULL 5/8] net/colo-compare.c: Update the default value comments
2022-02-14 3:59 [PULL 0/8] Net patches Jason Wang
` (3 preceding siblings ...)
2022-02-14 3:59 ` [PULL 4/8] net/colo-compare.c: Optimize compare order for performance Jason Wang
@ 2022-02-14 3:59 ` Jason Wang
2022-02-14 3:59 ` [PULL 6/8] net/filter: Optimize filter_send to coroutine Jason Wang
` (3 subsequent siblings)
8 siblings, 0 replies; 22+ messages in thread
From: Jason Wang @ 2022-02-14 3:59 UTC (permalink / raw)
To: peter.maydell; +Cc: Zhang Chen, Jason Wang, qemu-devel
From: Zhang Chen <chen.zhang@intel.com>
Make the comments consistent with the REGULAR_PACKET_CHECK_MS.
Signed-off-by: Zhang Chen <chen.zhang@intel.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
---
net/colo-compare.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/colo-compare.c b/net/colo-compare.c
index 216de5a..62554b5 100644
--- a/net/colo-compare.c
+++ b/net/colo-compare.c
@@ -1267,7 +1267,7 @@ static void colo_compare_complete(UserCreatable *uc, Error **errp)
}
if (!s->expired_scan_cycle) {
- /* Set default value to 3000 MS */
+ /* Set default value to 1000 MS */
s->expired_scan_cycle = REGULAR_PACKET_CHECK_MS;
}
--
2.7.4
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [PULL 6/8] net/filter: Optimize filter_send to coroutine
2022-02-14 3:59 [PULL 0/8] Net patches Jason Wang
` (4 preceding siblings ...)
2022-02-14 3:59 ` [PULL 5/8] net/colo-compare.c: Update the default value comments Jason Wang
@ 2022-02-14 3:59 ` Jason Wang
2022-02-14 3:59 ` [PULL 7/8] hw/net: e1000e: Clear ICR on read when using non MSI-X interrupts Jason Wang
` (2 subsequent siblings)
8 siblings, 0 replies; 22+ messages in thread
From: Jason Wang @ 2022-02-14 3:59 UTC (permalink / raw)
To: peter.maydell; +Cc: Jason Wang, Zhang Chen, Rao Lei, qemu-devel, Li Zhijian
From: Rao Lei <lei.rao@intel.com>
This patch is to improve the logic of QEMU main thread sleep code in
qemu_chr_write_buffer() where it can be blocked and can't run other
coroutines during COLO IO stress test.
Our approach is to put filter_send() in a coroutine. In this way,
filter_send() will call qemu_coroutine_yield() in qemu_co_sleep_ns(),
so that it can be scheduled out and QEMU main thread has opportunity to
run other tasks.
Signed-off-by: Lei Rao <lei.rao@intel.com>
Signed-off-by: Zhang Chen <chen.zhang@intel.com>
Reviewed-by: Li Zhijian <lizhijian@fujitsu.com>
Reviewed-by: Zhang Chen <chen.zhang@intel.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
---
net/filter-mirror.c | 66 ++++++++++++++++++++++++++++++++++++++++++-----------
1 file changed, 53 insertions(+), 13 deletions(-)
diff --git a/net/filter-mirror.c b/net/filter-mirror.c
index f20240c..34a63b5 100644
--- a/net/filter-mirror.c
+++ b/net/filter-mirror.c
@@ -20,6 +20,7 @@
#include "chardev/char-fe.h"
#include "qemu/iov.h"
#include "qemu/sockets.h"
+#include "block/aio-wait.h"
#define TYPE_FILTER_MIRROR "filter-mirror"
typedef struct MirrorState MirrorState;
@@ -42,20 +43,21 @@ struct MirrorState {
bool vnet_hdr;
};
-static int filter_send(MirrorState *s,
- const struct iovec *iov,
- int iovcnt)
+typedef struct FilterSendCo {
+ MirrorState *s;
+ char *buf;
+ ssize_t size;
+ bool done;
+ int ret;
+} FilterSendCo;
+
+static int _filter_send(MirrorState *s,
+ char *buf,
+ ssize_t size)
{
NetFilterState *nf = NETFILTER(s);
int ret = 0;
- ssize_t size = 0;
uint32_t len = 0;
- char *buf;
-
- size = iov_size(iov, iovcnt);
- if (!size) {
- return 0;
- }
len = htonl(size);
ret = qemu_chr_fe_write_all(&s->chr_out, (uint8_t *)&len, sizeof(len));
@@ -80,10 +82,7 @@ static int filter_send(MirrorState *s,
}
}
- buf = g_malloc(size);
- iov_to_buf(iov, iovcnt, 0, buf, size);
ret = qemu_chr_fe_write_all(&s->chr_out, (uint8_t *)buf, size);
- g_free(buf);
if (ret != size) {
goto err;
}
@@ -94,6 +93,47 @@ err:
return ret < 0 ? ret : -EIO;
}
+static void coroutine_fn filter_send_co(void *opaque)
+{
+ FilterSendCo *data = opaque;
+
+ data->ret = _filter_send(data->s, data->buf, data->size);
+ data->done = true;
+ g_free(data->buf);
+ aio_wait_kick();
+}
+
+static int filter_send(MirrorState *s,
+ const struct iovec *iov,
+ int iovcnt)
+{
+ ssize_t size = iov_size(iov, iovcnt);
+ char *buf = NULL;
+
+ if (!size) {
+ return 0;
+ }
+
+ buf = g_malloc(size);
+ iov_to_buf(iov, iovcnt, 0, buf, size);
+
+ FilterSendCo data = {
+ .s = s,
+ .size = size,
+ .buf = buf,
+ .ret = 0,
+ };
+
+ Coroutine *co = qemu_coroutine_create(filter_send_co, &data);
+ qemu_coroutine_enter(co);
+
+ while (!data.done) {
+ aio_poll(qemu_get_aio_context(), true);
+ }
+
+ return data.ret;
+}
+
static void redirector_to_filter(NetFilterState *nf,
const uint8_t *buf,
int len)
--
2.7.4
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [PULL 7/8] hw/net: e1000e: Clear ICR on read when using non MSI-X interrupts
2022-02-14 3:59 [PULL 0/8] Net patches Jason Wang
` (5 preceding siblings ...)
2022-02-14 3:59 ` [PULL 6/8] net/filter: Optimize filter_send to coroutine Jason Wang
@ 2022-02-14 3:59 ` Jason Wang
2022-02-14 3:59 ` [PULL 8/8] net/eth: Don't consider ESP to be an IPv6 option header Jason Wang
2022-02-15 13:51 ` [PULL 0/8] Net patches Peter Maydell
8 siblings, 0 replies; 22+ messages in thread
From: Jason Wang @ 2022-02-14 3:59 UTC (permalink / raw)
To: peter.maydell; +Cc: Nick Hudson, Jason Wang, qemu-devel
From: Nick Hudson <skrll@netbsd.org>
In section 7.4.3 of the 82574 datasheet it states that
"In systems that do not support MSI-X, reading the ICR
register clears it's bits..."
Some OSes rely on this.
Signed-off-by: Nick Hudson <skrll@netbsd.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
---
hw/net/e1000e_core.c | 5 +++++
hw/net/trace-events | 1 +
2 files changed, 6 insertions(+)
diff --git a/hw/net/e1000e_core.c b/hw/net/e1000e_core.c
index 8ae6fb7..2c51089 100644
--- a/hw/net/e1000e_core.c
+++ b/hw/net/e1000e_core.c
@@ -2607,6 +2607,11 @@ e1000e_mac_icr_read(E1000ECore *core, int index)
core->mac[ICR] = 0;
}
+ if (!msix_enabled(core->owner)) {
+ trace_e1000e_irq_icr_clear_nonmsix_icr_read();
+ core->mac[ICR] = 0;
+ }
+
if ((core->mac[ICR] & E1000_ICR_ASSERTED) &&
(core->mac[CTRL_EXT] & E1000_CTRL_EXT_IAME)) {
trace_e1000e_irq_icr_clear_iame();
diff --git a/hw/net/trace-events b/hw/net/trace-events
index 643338f..4c0ec3f 100644
--- a/hw/net/trace-events
+++ b/hw/net/trace-events
@@ -221,6 +221,7 @@ e1000e_irq_write_ics(uint32_t val) "Adding ICR bits 0x%x"
e1000e_irq_icr_process_iame(void) "Clearing IMS bits due to IAME"
e1000e_irq_read_ics(uint32_t ics) "Current ICS: 0x%x"
e1000e_irq_read_ims(uint32_t ims) "Current IMS: 0x%x"
+e1000e_irq_icr_clear_nonmsix_icr_read(void) "Clearing ICR on read due to non MSI-X int"
e1000e_irq_icr_read_entry(uint32_t icr) "Starting ICR read. Current ICR: 0x%x"
e1000e_irq_icr_read_exit(uint32_t icr) "Ending ICR read. Current ICR: 0x%x"
e1000e_irq_icr_clear_zero_ims(void) "Clearing ICR on read due to zero IMS"
--
2.7.4
^ permalink raw reply related [flat|nested] 22+ messages in thread
* [PULL 8/8] net/eth: Don't consider ESP to be an IPv6 option header
2022-02-14 3:59 [PULL 0/8] Net patches Jason Wang
` (6 preceding siblings ...)
2022-02-14 3:59 ` [PULL 7/8] hw/net: e1000e: Clear ICR on read when using non MSI-X interrupts Jason Wang
@ 2022-02-14 3:59 ` Jason Wang
2022-02-15 13:51 ` [PULL 0/8] Net patches Peter Maydell
8 siblings, 0 replies; 22+ messages in thread
From: Jason Wang @ 2022-02-14 3:59 UTC (permalink / raw)
To: peter.maydell; +Cc: Thomas Jansen, Jason Wang, qemu-devel
From: Thomas Jansen <mithi@mithi.net>
The IPv6 option headers all have in common that they start with some
common fields, in particular the type of the next header followed by the
extention header length. This is used to traverse the list of the
options. The ESP header does not follow that format, which can break the
IPv6 option header traversal code in eth_parse_ipv6_hdr().
The effect of that is that network interfaces such as vmxnet3 that use
the following call chain
eth_is_ip6_extension_header_type
eth_parse_ipv6_hdr
net_tx_pkt_parse_headers
net_tx_pkt_parse
vmxnet3_process_tx_queue
to send packets from the VM out to the host will drop packets of the
following structure:
Ethernet-Header(IPv6-Header(ESP(encrypted data)))
Note that not all types of network interfaces use the net_tx_pkt_parse
function though, leading to inconsistent behavior regarding sending
those packets. The e1000 network interface for example does not suffer
from this limitation.
By not considering ESP to be an IPv6 header we can allow sending those
packets out to the host on all types of network interfaces.
Fixes: 75020a702151 ("Common definitions for VMWARE devices")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/149
Buglink: https://bugs.launchpad.net/qemu/+bug/1758091
Signed-off-by: Thomas Jansen <mithi@mithi.net>
Signed-off-by: Jason Wang <jasowang@redhat.com>
---
net/eth.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/net/eth.c b/net/eth.c
index fe876d1..f074b2f 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -389,7 +389,6 @@ eth_is_ip6_extension_header_type(uint8_t hdr_type)
case IP6_HOP_BY_HOP:
case IP6_ROUTING:
case IP6_FRAGMENT:
- case IP6_ESP:
case IP6_AUTHENTICATION:
case IP6_DESTINATON:
case IP6_MOBILITY:
--
2.7.4
^ permalink raw reply related [flat|nested] 22+ messages in thread
* Re: [PULL 0/8] Net patches
2022-02-14 3:59 [PULL 0/8] Net patches Jason Wang
` (7 preceding siblings ...)
2022-02-14 3:59 ` [PULL 8/8] net/eth: Don't consider ESP to be an IPv6 option header Jason Wang
@ 2022-02-15 13:51 ` Peter Maydell
8 siblings, 0 replies; 22+ messages in thread
From: Peter Maydell @ 2022-02-15 13:51 UTC (permalink / raw)
To: Jason Wang; +Cc: qemu-devel
On Mon, 14 Feb 2022 at 04:00, Jason Wang <jasowang@redhat.com> wrote:
>
> The following changes since commit 48033ad678ae2def43bf0d543a2c4c3d2a93feaf:
>
> Merge remote-tracking branch 'remotes/vsementsov/tags/pull-nbd-2022-02-09-v2' into staging (2022-02-12 22:04:07 +0000)
>
> are available in the git repository at:
>
> https://github.com/jasowang/qemu.git tags/net-pull-request
>
> for you to fetch changes up to 9d6267b240c114d1a3cd314a08fd6e1339d34b83:
>
> net/eth: Don't consider ESP to be an IPv6 option header (2022-02-14 11:50:44 +0800)
>
> ----------------------------------------------------------------
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/7.0
for any user-visible changes.
-- PMM
^ permalink raw reply [flat|nested] 22+ messages in thread
* [PULL 0/8] Net patches
@ 2022-05-18 3:12 Jason Wang
2022-05-18 14:10 ` Richard Henderson
0 siblings, 1 reply; 22+ messages in thread
From: Jason Wang @ 2022-05-18 3:12 UTC (permalink / raw)
To: jasowang, qemu-devel, peter.maydell
The following changes since commit eec398119fc6911d99412c37af06a6bc27871f85:
Merge tag 'for_upstream' of git://git.kernel.org/pub/scm/virt/kvm/mst/qemu into staging (2022-05-16 16:31:01 -0700)
are available in the git repository at:
https://github.com/jasowang/qemu.git tags/net-pull-request
for you to fetch changes up to 052c2579b89b0d87debe8b05594b5180f0fde87d:
tulip: Assign default MAC address if not specified (2022-05-17 16:48:23 +0800)
----------------------------------------------------------------
----------------------------------------------------------------
Helge Deller (1):
tulip: Assign default MAC address if not specified
Vladislav Yaroshchuk (7):
net/vmnet: add vmnet dependency and customizable option
net/vmnet: add vmnet backends to qapi/net
net/vmnet: implement shared mode (vmnet-shared)
net/vmnet: implement host mode (vmnet-host)
net/vmnet: implement bridged mode (vmnet-bridged)
net/vmnet: update qemu-options.hx
net/vmnet: update hmp-commands.hx
hmp-commands.hx | 6 +-
hw/net/tulip.c | 4 +-
meson.build | 16 +-
meson_options.txt | 2 +
net/clients.h | 11 ++
net/meson.build | 7 +
net/net.c | 10 ++
net/vmnet-bridged.m | 152 +++++++++++++++++
net/vmnet-common.m | 378 ++++++++++++++++++++++++++++++++++++++++++
net/vmnet-host.c | 128 ++++++++++++++
net/vmnet-shared.c | 114 +++++++++++++
net/vmnet_int.h | 63 +++++++
qapi/net.json | 133 ++++++++++++++-
qemu-options.hx | 25 +++
scripts/meson-buildoptions.sh | 1 +
15 files changed, 1044 insertions(+), 6 deletions(-)
create mode 100644 net/vmnet-bridged.m
create mode 100644 net/vmnet-common.m
create mode 100644 net/vmnet-host.c
create mode 100644 net/vmnet-shared.c
create mode 100644 net/vmnet_int.h
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PULL 0/8] Net patches
2022-05-18 3:12 Jason Wang
@ 2022-05-18 14:10 ` Richard Henderson
0 siblings, 0 replies; 22+ messages in thread
From: Richard Henderson @ 2022-05-18 14:10 UTC (permalink / raw)
To: Jason Wang, qemu-devel, peter.maydell
On 5/17/22 20:12, Jason Wang wrote:
> The following changes since commit eec398119fc6911d99412c37af06a6bc27871f85:
>
> Merge tag 'for_upstream' of git://git.kernel.org/pub/scm/virt/kvm/mst/qemu into staging (2022-05-16 16:31:01 -0700)
>
> are available in the git repository at:
>
> https://github.com/jasowang/qemu.git tags/net-pull-request
>
> for you to fetch changes up to 052c2579b89b0d87debe8b05594b5180f0fde87d:
>
> tulip: Assign default MAC address if not specified (2022-05-17 16:48:23 +0800)
>
> ----------------------------------------------------------------
>
> ----------------------------------------------------------------
> Helge Deller (1):
> tulip: Assign default MAC address if not specified
>
> Vladislav Yaroshchuk (7):
> net/vmnet: add vmnet dependency and customizable option
> net/vmnet: add vmnet backends to qapi/net
> net/vmnet: implement shared mode (vmnet-shared)
> net/vmnet: implement host mode (vmnet-host)
> net/vmnet: implement bridged mode (vmnet-bridged)
> net/vmnet: update qemu-options.hx
> net/vmnet: update hmp-commands.hx
Applied, thanks. Please update https://wiki.qemu.org/ChangeLog/7.1 as appropriate.
r~
>
> hmp-commands.hx | 6 +-
> hw/net/tulip.c | 4 +-
> meson.build | 16 +-
> meson_options.txt | 2 +
> net/clients.h | 11 ++
> net/meson.build | 7 +
> net/net.c | 10 ++
> net/vmnet-bridged.m | 152 +++++++++++++++++
> net/vmnet-common.m | 378 ++++++++++++++++++++++++++++++++++++++++++
> net/vmnet-host.c | 128 ++++++++++++++
> net/vmnet-shared.c | 114 +++++++++++++
> net/vmnet_int.h | 63 +++++++
> qapi/net.json | 133 ++++++++++++++-
> qemu-options.hx | 25 +++
> scripts/meson-buildoptions.sh | 1 +
> 15 files changed, 1044 insertions(+), 6 deletions(-)
> create mode 100644 net/vmnet-bridged.m
> create mode 100644 net/vmnet-common.m
> create mode 100644 net/vmnet-host.c
> create mode 100644 net/vmnet-shared.c
> create mode 100644 net/vmnet_int.h
>
>
>
>
^ permalink raw reply [flat|nested] 22+ messages in thread
* [PULL 0/8] Net patches
@ 2022-09-27 7:30 Jason Wang
2022-09-27 18:40 ` Stefan Hajnoczi
0 siblings, 1 reply; 22+ messages in thread
From: Jason Wang @ 2022-09-27 7:30 UTC (permalink / raw)
To: qemu-devel, peter.maydell, stefanha; +Cc: Jason Wang
The following changes since commit 99d6b11b5b44d7dd64f4cb1973184e40a4a174f8:
Merge tag 'pull-target-arm-20220922' of https://git.linaro.org/people/pmaydell/qemu-arm into staging (2022-09-26 13:38:26 -0400)
are available in the git repository at:
https://github.com/jasowang/qemu.git tags/net-pull-request
for you to fetch changes up to bf769f742c3624952f125b303878a77ea870c156:
virtio: del net client if net_init_tap_one failed (2022-09-27 15:14:37 +0800)
----------------------------------------------------------------
----------------------------------------------------------------
Ding Hui (1):
e1000e: set RX desc status with DD flag in a separate operation
Eugenio Pérez (6):
vdpa: Make VhostVDPAState cvq_cmd_in_buffer control ack type
vdpa: extract vhost_vdpa_net_load_mac from vhost_vdpa_net_load
vdpa: Add vhost_vdpa_net_load_mq
vdpa: validate MQ CVQ commands
virtio-net: Update virtio-net curr_queue_pairs in vdpa backends
vdpa: Allow MQ feature in SVQ
lu zhipeng (1):
virtio: del net client if net_init_tap_one failed
hw/net/e1000e_core.c | 53 ++++++++++++++++++++++-
hw/net/virtio-net.c | 17 +++-----
net/tap.c | 18 +++++---
net/vhost-vdpa.c | 119 +++++++++++++++++++++++++++++++++++++--------------
4 files changed, 157 insertions(+), 50 deletions(-)
Ding Hui (1):
e1000e: set RX desc status with DD flag in a separate operation
Eugenio Pérez (6):
vdpa: Make VhostVDPAState cvq_cmd_in_buffer control ack type
vdpa: extract vhost_vdpa_net_load_mac from vhost_vdpa_net_load
vdpa: Add vhost_vdpa_net_load_mq
vdpa: validate MQ CVQ commands
virtio-net: Update virtio-net curr_queue_pairs in vdpa backends
vdpa: Allow MQ feature in SVQ
lu zhipeng (1):
virtio: del net client if net_init_tap_one failed
hw/net/e1000e_core.c | 53 ++++++++++++++++++++++-
hw/net/virtio-net.c | 17 +++-----
net/tap.c | 18 +++++---
net/vhost-vdpa.c | 119 +++++++++++++++++++++++++++++++++++++--------------
4 files changed, 157 insertions(+), 50 deletions(-)
--
2.7.4
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PULL 0/8] Net patches
2022-09-27 7:30 Jason Wang
@ 2022-09-27 18:40 ` Stefan Hajnoczi
0 siblings, 0 replies; 22+ messages in thread
From: Stefan Hajnoczi @ 2022-09-27 18:40 UTC (permalink / raw)
To: Jason Wang; +Cc: qemu-devel, peter.maydell, stefanha, Jason Wang
[-- Attachment #1: Type: text/plain, Size: 115 bytes --]
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/7.2 for any user-visible changes.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* [PULL 0/8] Net patches
@ 2024-03-12 11:36 Jason Wang
2024-03-12 16:29 ` Peter Maydell
2024-03-12 17:56 ` Michael Tokarev
0 siblings, 2 replies; 22+ messages in thread
From: Jason Wang @ 2024-03-12 11:36 UTC (permalink / raw)
To: qemu-devel, peter.maydell; +Cc: Jason Wang
The following changes since commit 05ec974671200814fa5c1d5db710e0e4b88a40af:
Merge tag 'm68k-for-9.0-pull-request' of https://github.com/vivier/qemu-m68k into staging (2024-03-11 18:42:53 +0000)
are available in the Git repository at:
https://github.com/jasowang/qemu.git tags/net-pull-request
for you to fetch changes up to 0cc14182aba961f4c34a21dd202ce6e4a87470f5:
ebpf: Updated eBPF program and skeleton. (2024-03-12 19:31:47 +0800)
----------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
iQEzBAABCAAdFiEEIV1G9IJGaJ7HfzVi7wSWWzmNYhEFAmXwPUAACgkQ7wSWWzmN
YhFnIwgAgctDniJwlRxXB01eVlzXz7IulHnpSby07XEJxENSpGB8ufaeE4eK5gJy
NVK6C2+1EU2vRxm4oIdcvtN4C4/jtRbYYjiSTx7eE4FmSkqshSnR5XCV72LDqG3i
WbzInjMvYfysmcMXLfrWgxOnVew9WqEzlpEWlc7FfNKnkzBVf+JDztfqCUx0XM7H
qefw4ImjqQw993QxJpipXC7aEGUyouB0RIBB71FkCa9ihlh9x7W68evbOI/jTn5q
HWuStgS02sKHjRFliMbdbMY77FNUz4Yroo/GKSvGt64atxkQSJqPNAV+/9n18LNy
QAH5eK6cXFPOIAaYpADU5kHDVVAFiw==
=iBdx
-----END PGP SIGNATURE-----
----------------------------------------------------------------
Andrew Melnychenko (5):
ebpf: Added eBPF map update through mmap.
ebpf: Added eBPF initialization by fds.
virtio-net: Added property to load eBPF RSS with fds.
qmp: Added new command to retrieve eBPF blob.
ebpf: Updated eBPF program and skeleton.
Laurent Vivier (2):
igb: fix link state on resume
e1000e: fix link state on resume
Nick Briggs (1):
Avoid unaligned fetch in ladr_match()
ebpf/ebpf.c | 69 +++
ebpf/ebpf.h | 29 +
ebpf/ebpf_rss-stub.c | 6 +
ebpf/ebpf_rss.c | 149 ++++-
ebpf/ebpf_rss.h | 10 +
ebpf/meson.build | 2 +-
ebpf/rss.bpf.skeleton.h | 1343 ++++++++++++++++++++--------------------
ebpf/trace.h | 1 -
hw/net/e1000e_core.c | 60 +-
hw/net/e1000e_core.h | 2 -
hw/net/igb_core.c | 51 +-
hw/net/igb_core.h | 2 -
hw/net/pcnet.c | 2 +-
hw/net/virtio-net.c | 54 +-
include/hw/virtio/virtio-net.h | 2 +
meson.build | 10 +-
qapi/ebpf.json | 66 ++
qapi/meson.build | 1 +
qapi/qapi-schema.json | 1 +
tools/ebpf/rss.bpf.c | 7 +-
20 files changed, 1058 insertions(+), 809 deletions(-)
create mode 100644 ebpf/ebpf.c
create mode 100644 ebpf/ebpf.h
delete mode 100644 ebpf/trace.h
create mode 100644 qapi/ebpf.json
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PULL 0/8] Net patches
2024-03-12 11:36 Jason Wang
@ 2024-03-12 16:29 ` Peter Maydell
2024-03-12 17:56 ` Michael Tokarev
1 sibling, 0 replies; 22+ messages in thread
From: Peter Maydell @ 2024-03-12 16:29 UTC (permalink / raw)
To: Jason Wang; +Cc: qemu-devel
On Tue, 12 Mar 2024 at 11:36, Jason Wang <jasowang@redhat.com> wrote:
>
> The following changes since commit 05ec974671200814fa5c1d5db710e0e4b88a40af:
>
> Merge tag 'm68k-for-9.0-pull-request' of https://github.com/vivier/qemu-m68k into staging (2024-03-11 18:42:53 +0000)
>
> are available in the Git repository at:
>
> https://github.com/jasowang/qemu.git tags/net-pull-request
>
> for you to fetch changes up to 0cc14182aba961f4c34a21dd202ce6e4a87470f5:
>
> ebpf: Updated eBPF program and skeleton. (2024-03-12 19:31:47 +0800)
>
> ----------------------------------------------------------------
> -----BEGIN PGP SIGNATURE-----
>
> iQEzBAABCAAdFiEEIV1G9IJGaJ7HfzVi7wSWWzmNYhEFAmXwPUAACgkQ7wSWWzmN
> YhFnIwgAgctDniJwlRxXB01eVlzXz7IulHnpSby07XEJxENSpGB8ufaeE4eK5gJy
> NVK6C2+1EU2vRxm4oIdcvtN4C4/jtRbYYjiSTx7eE4FmSkqshSnR5XCV72LDqG3i
> WbzInjMvYfysmcMXLfrWgxOnVew9WqEzlpEWlc7FfNKnkzBVf+JDztfqCUx0XM7H
> qefw4ImjqQw993QxJpipXC7aEGUyouB0RIBB71FkCa9ihlh9x7W68evbOI/jTn5q
> HWuStgS02sKHjRFliMbdbMY77FNUz4Yroo/GKSvGt64atxkQSJqPNAV+/9n18LNy
> QAH5eK6cXFPOIAaYpADU5kHDVVAFiw==
> =iBdx
> -----END PGP SIGNATURE-----
>
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/9.0
for any user-visible changes.
-- PMM
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PULL 0/8] Net patches
2024-03-12 11:36 Jason Wang
2024-03-12 16:29 ` Peter Maydell
@ 2024-03-12 17:56 ` Michael Tokarev
2024-03-13 6:43 ` Jason Wang
1 sibling, 1 reply; 22+ messages in thread
From: Michael Tokarev @ 2024-03-12 17:56 UTC (permalink / raw)
To: Jason Wang, qemu-devel; +Cc: Laurent Vivier, Nick Briggs
12.03.2024 14:36, Jason Wang wrote:
...
> ----------------------------------------------------------------
> Andrew Melnychenko (5):
> ebpf: Added eBPF map update through mmap.
> ebpf: Added eBPF initialization by fds.
> virtio-net: Added property to load eBPF RSS with fds.
> qmp: Added new command to retrieve eBPF blob.
> ebpf: Updated eBPF program and skeleton.
>
> Laurent Vivier (2):
> igb: fix link state on resume
> e1000e: fix link state on resume
>
> Nick Briggs (1):
> Avoid unaligned fetch in ladr_match()
From the above, I'm picking up igb & e100e "fix link state on resume"
and "Avoid unaligned fetch in ladr_match()" for stable.
Please let me know if this is incorrect.
Thanks,
/mjt
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PULL 0/8] Net patches
2024-03-12 17:56 ` Michael Tokarev
@ 2024-03-13 6:43 ` Jason Wang
0 siblings, 0 replies; 22+ messages in thread
From: Jason Wang @ 2024-03-13 6:43 UTC (permalink / raw)
To: Michael Tokarev; +Cc: qemu-devel, Laurent Vivier, Nick Briggs
On Wed, Mar 13, 2024 at 1:56 AM Michael Tokarev <mjt@tls.msk.ru> wrote:
>
> 12.03.2024 14:36, Jason Wang wrote:
> ...
> > ----------------------------------------------------------------
> > Andrew Melnychenko (5):
> > ebpf: Added eBPF map update through mmap.
> > ebpf: Added eBPF initialization by fds.
> > virtio-net: Added property to load eBPF RSS with fds.
> > qmp: Added new command to retrieve eBPF blob.
> > ebpf: Updated eBPF program and skeleton.
> >
> > Laurent Vivier (2):
> > igb: fix link state on resume
> > e1000e: fix link state on resume
> >
> > Nick Briggs (1):
> > Avoid unaligned fetch in ladr_match()
>
> From the above, I'm picking up igb & e100e "fix link state on resume"
> and "Avoid unaligned fetch in ladr_match()" for stable.
>
> Please let me know if this is incorrect.
>
It's correct.
Thanks
> Thanks,
>
> /mjt
>
^ permalink raw reply [flat|nested] 22+ messages in thread
* [PULL 0/8] Net patches
@ 2024-08-02 3:19 Jason Wang
2024-08-02 9:48 ` Richard Henderson
0 siblings, 1 reply; 22+ messages in thread
From: Jason Wang @ 2024-08-02 3:19 UTC (permalink / raw)
To: qemu-devel; +Cc: Jason Wang
The following changes since commit 31669121a01a14732f57c49400bc239cf9fd505f:
Merge tag 'pull-target-arm-20240801' of https://git.linaro.org/people/pmaydell/qemu-arm into staging (2024-08-02 08:18:37 +1000)
are available in the Git repository at:
https://github.com/jasowang/qemu.git tags/net-pull-request
for you to fetch changes up to 64f75f57f9d2c8c12ac6d9355fa5d3a2af5879ca:
net: Reinstate '-net nic, model=help' output as documented in man page (2024-08-02 11:09:52 +0800)
----------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
iQEzBAABCAAdFiEEIV1G9IJGaJ7HfzVi7wSWWzmNYhEFAmasTgwACgkQ7wSWWzmN
YhFUtAgAq45v7fQJ7cKKwRam/VrIkxT5cM59ODwzLSL9kPWfL6f/bJ7xM/zvLyvn
LNBXFWWu+eNKA73f95cckZwaqZ4U6giGbiesCACn1IpgVtieLS+Lq78jsifKIAsR
yxFvbT9oLhU0dZ1Up3+isc6V+jeAE4ZYu4KOiIt7PscTEzkJl+vSUjN4X9rRVtUD
PzONUacL6MoTJtX8UZJZXNzLN9JTsN39Gx+LSDGQ27MDmDvE3R9BW+T0ZgF9JQZ7
wnrL5sharqF3gxa7X55fPBI1qwY5gWcH0yyJpRdM8guA13vhtvlrhNSypip9eKWi
HtPHUTKEB5YOvF236WRiuQPIm/GNpA==
=7HGN
-----END PGP SIGNATURE-----
----------------------------------------------------------------
Akihiko Odaki (1):
virtio-net: Ensure queue index fits with RSS
David Woodhouse (1):
net: Reinstate '-net nic, model=help' output as documented in man page
Hans (1):
rtl8139: Fix behaviour for old kernels.
Laurent Vivier (4):
net: update netdev stream/dgram man page
net: update netdev stream man page with unix socket
net: update netdev dgram man page with unix socket
net: update netdev stream man page with the reconnect parameter
thomas (1):
virtio-net: Fix network stall at the host side waiting for kick
hw/net/rtl8139.c | 6 +-
hw/net/virtio-net.c | 31 ++++----
hw/virtio/virtio.c | 64 ++++++++++++++-
include/hw/virtio/virtio.h | 19 ++++-
net/net.c | 25 +++++-
qemu-options.hx | 189 +++++++++++++++++++++++++++++++++++++++++++++
6 files changed, 310 insertions(+), 24 deletions(-)
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PULL 0/8] Net patches
2024-08-02 3:19 Jason Wang
@ 2024-08-02 9:48 ` Richard Henderson
2024-08-05 2:38 ` Jason Wang
0 siblings, 1 reply; 22+ messages in thread
From: Richard Henderson @ 2024-08-02 9:48 UTC (permalink / raw)
To: Jason Wang, qemu-devel
On 8/2/24 13:19, Jason Wang wrote:
> The following changes since commit 31669121a01a14732f57c49400bc239cf9fd505f:
>
> Merge tag 'pull-target-arm-20240801' ofhttps://git.linaro.org/people/pmaydell/qemu-arm into staging (2024-08-02 08:18:37 +1000)
>
> are available in the Git repository at:
>
> https://github.com/jasowang/qemu.git tags/net-pull-request
>
> for you to fetch changes up to 64f75f57f9d2c8c12ac6d9355fa5d3a2af5879ca:
>
> net: Reinstate '-net nic, model=help' output as documented in man page (2024-08-02 11:09:52 +0800)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PULL 0/8] Net patches
2024-08-02 9:48 ` Richard Henderson
@ 2024-08-05 2:38 ` Jason Wang
2024-08-05 22:00 ` Richard Henderson
0 siblings, 1 reply; 22+ messages in thread
From: Jason Wang @ 2024-08-05 2:38 UTC (permalink / raw)
To: Richard Henderson; +Cc: qemu-devel
Hi Richard:
On Fri, Aug 2, 2024 at 5:48 PM Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> On 8/2/24 13:19, Jason Wang wrote:
> > The following changes since commit 31669121a01a14732f57c49400bc239cf9fd505f:
> >
> > Merge tag 'pull-target-arm-20240801' ofhttps://git.linaro.org/people/pmaydell/qemu-arm into staging (2024-08-02 08:18:37 +1000)
> >
> > are available in the Git repository at:
> >
> > https://github.com/jasowang/qemu.git tags/net-pull-request
> >
> > for you to fetch changes up to 64f75f57f9d2c8c12ac6d9355fa5d3a2af5879ca:
> >
> > net: Reinstate '-net nic, model=help' output as documented in man page (2024-08-02 11:09:52 +0800)
>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
>
>
I guess it means it has been merged :) ?
Thanks
> r~
>
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PULL 0/8] Net patches
2024-08-05 2:38 ` Jason Wang
@ 2024-08-05 22:00 ` Richard Henderson
0 siblings, 0 replies; 22+ messages in thread
From: Richard Henderson @ 2024-08-05 22:00 UTC (permalink / raw)
To: Jason Wang; +Cc: qemu-devel
On 8/5/24 12:38, Jason Wang wrote:
> Hi Richard:
>
> On Fri, Aug 2, 2024 at 5:48 PM Richard Henderson
> <richard.henderson@linaro.org> wrote:
>>
>> On 8/2/24 13:19, Jason Wang wrote:
>>> The following changes since commit 31669121a01a14732f57c49400bc239cf9fd505f:
>>>
>>> Merge tag 'pull-target-arm-20240801' ofhttps://git.linaro.org/people/pmaydell/qemu-arm into staging (2024-08-02 08:18:37 +1000)
>>>
>>> are available in the Git repository at:
>>>
>>> https://github.com/jasowang/qemu.git tags/net-pull-request
>>>
>>> for you to fetch changes up to 64f75f57f9d2c8c12ac6d9355fa5d3a2af5879ca:
>>>
>>> net: Reinstate '-net nic, model=help' output as documented in man page (2024-08-02 11:09:52 +0800)
>>
>> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
>>
>>
>
> I guess it means it has been merged :) ?
Whoops, yes, wrong macro button pushed. :-)
r~
^ permalink raw reply [flat|nested] 22+ messages in thread
end of thread, other threads:[~2024-08-05 22:01 UTC | newest]
Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-14 3:59 [PULL 0/8] Net patches Jason Wang
2022-02-14 3:59 ` [PULL 1/8] hw/net/vmxnet3: Log guest-triggerable errors using LOG_GUEST_ERROR Jason Wang
2022-02-14 3:59 ` [PULL 2/8] net/tap: Set return code on failure Jason Wang
2022-02-14 3:59 ` [PULL 3/8] net: Fix uninitialized data usage Jason Wang
2022-02-14 3:59 ` [PULL 4/8] net/colo-compare.c: Optimize compare order for performance Jason Wang
2022-02-14 3:59 ` [PULL 5/8] net/colo-compare.c: Update the default value comments Jason Wang
2022-02-14 3:59 ` [PULL 6/8] net/filter: Optimize filter_send to coroutine Jason Wang
2022-02-14 3:59 ` [PULL 7/8] hw/net: e1000e: Clear ICR on read when using non MSI-X interrupts Jason Wang
2022-02-14 3:59 ` [PULL 8/8] net/eth: Don't consider ESP to be an IPv6 option header Jason Wang
2022-02-15 13:51 ` [PULL 0/8] Net patches Peter Maydell
-- strict thread matches above, loose matches on Subject: below --
2022-05-18 3:12 Jason Wang
2022-05-18 14:10 ` Richard Henderson
2022-09-27 7:30 Jason Wang
2022-09-27 18:40 ` Stefan Hajnoczi
2024-03-12 11:36 Jason Wang
2024-03-12 16:29 ` Peter Maydell
2024-03-12 17:56 ` Michael Tokarev
2024-03-13 6:43 ` Jason Wang
2024-08-02 3:19 Jason Wang
2024-08-02 9:48 ` Richard Henderson
2024-08-05 2:38 ` Jason Wang
2024-08-05 22:00 ` Richard Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).