* [PULL 0/2] Linux user for 5.2 patches
@ 2020-11-17 15:16 Laurent Vivier
2020-11-17 15:16 ` [PULL 1/2] linux-user, netlink: fix message translation with ip command Laurent Vivier
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Laurent Vivier @ 2020-11-17 15:16 UTC (permalink / raw)
To: qemu-devel; +Cc: Laurent Vivier
The following changes since commit cb5ed407a1ddadf788fd373fed41c87c9e81e5b0:
Merge remote-tracking branch 'remotes/huth-gitlab/tags/pull-request-2020-11=
-15' into staging (2020-11-16 17:00:36 +0000)
are available in the Git repository at:
git://github.com/vivier/qemu.git tags/linux-user-for-5.2-pull-request
for you to fetch changes up to 5351f4075dc17825df8e0628a93f9baa9b9bda4b:
linux-user,netlink: add IFLA_BRPORT_MRP_RING_OPEN, IFLA_BRPORT_MRP_IN_OPEN =
(2020-11-17 15:22:52 +0100)
----------------------------------------------------------------
Fix netlink with latest iproute
----------------------------------------------------------------
Laurent Vivier (2):
linux-user,netlink: fix message translation with ip command
linux-user,netlink: add IFLA_BRPORT_MRP_RING_OPEN,
IFLA_BRPORT_MRP_IN_OPEN
linux-user/fd-trans.c | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
--=20
2.28.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PULL 1/2] linux-user, netlink: fix message translation with ip command
2020-11-17 15:16 [PULL 0/2] Linux user for 5.2 patches Laurent Vivier
@ 2020-11-17 15:16 ` Laurent Vivier
2020-11-17 15:16 ` [PULL 2/2] linux-user, netlink: add IFLA_BRPORT_MRP_RING_OPEN, IFLA_BRPORT_MRP_IN_OPEN Laurent Vivier
2020-11-17 23:03 ` [PULL 0/2] Linux user for 5.2 patches Peter Maydell
2 siblings, 0 replies; 6+ messages in thread
From: Laurent Vivier @ 2020-11-17 15:16 UTC (permalink / raw)
To: qemu-devel; +Cc: Laurent Vivier
With iproute2-5.8.0, the route, link and addr show commands fail:
root@sid:~# ip addr show
RTNETLINK answers: Unknown error 352321537
Dump terminated
root@sid:~# ip link show
RTNETLINK answers: Unknown error 352321537
Dump terminated
root@sid:~# ip route show
RTNETLINK answers: Unknown error 352321537
Dump terminated
This patch correctly decodes the GETROUTE and GETLINK commands and adds
the RTA_TABLE message.
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20201116163622.791442-1-laurent@vivier.eu>
---
linux-user/fd-trans.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/linux-user/fd-trans.c b/linux-user/fd-trans.c
index 1486c81aaa27..7551c883304a 100644
--- a/linux-user/fd-trans.c
+++ b/linux-user/fd-trans.c
@@ -1160,6 +1160,7 @@ static abi_long target_to_host_data_route_rtattr(struct rtattr *rtattr)
break;
/* u32 */
case QEMU_RTA_PRIORITY:
+ case QEMU_RTA_TABLE:
case QEMU_RTA_OIF:
u32 = RTA_DATA(rtattr);
*u32 = tswap32(*u32);
@@ -1200,11 +1201,10 @@ static abi_long target_to_host_data_route(struct nlmsghdr *nlh)
struct rtmsg *rtm;
switch (nlh->nlmsg_type) {
- case RTM_GETLINK:
- break;
case RTM_NEWLINK:
case RTM_DELLINK:
case RTM_SETLINK:
+ case RTM_GETLINK:
if (nlh->nlmsg_len >= NLMSG_LENGTH(sizeof(*ifi))) {
ifi = NLMSG_DATA(nlh);
ifi->ifi_type = tswap16(ifi->ifi_type);
@@ -1225,10 +1225,9 @@ static abi_long target_to_host_data_route(struct nlmsghdr *nlh)
NLMSG_LENGTH(sizeof(*ifa)));
}
break;
- case RTM_GETROUTE:
- break;
case RTM_NEWROUTE:
case RTM_DELROUTE:
+ case RTM_GETROUTE:
if (nlh->nlmsg_len >= NLMSG_LENGTH(sizeof(*rtm))) {
rtm = NLMSG_DATA(nlh);
rtm->rtm_flags = tswap32(rtm->rtm_flags);
--
2.28.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PULL 2/2] linux-user, netlink: add IFLA_BRPORT_MRP_RING_OPEN, IFLA_BRPORT_MRP_IN_OPEN
2020-11-17 15:16 [PULL 0/2] Linux user for 5.2 patches Laurent Vivier
2020-11-17 15:16 ` [PULL 1/2] linux-user, netlink: fix message translation with ip command Laurent Vivier
@ 2020-11-17 15:16 ` Laurent Vivier
2020-11-17 23:03 ` [PULL 0/2] Linux user for 5.2 patches Peter Maydell
2 siblings, 0 replies; 6+ messages in thread
From: Laurent Vivier @ 2020-11-17 15:16 UTC (permalink / raw)
To: qemu-devel; +Cc: Laurent Vivier
Fix "-d unimp" trace results:
Unknown QEMU_IFLA_BRPORT type 35
Unknown QEMU_IFLA_BRPORT type 36
Also process IFLA_EXT_MASK to fix:
Unknown target QEMU_IFLA type: 29
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20201117111905.843925-1-laurent@vivier.eu>
---
linux-user/fd-trans.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/linux-user/fd-trans.c b/linux-user/fd-trans.c
index 7551c883304a..23adaca83639 100644
--- a/linux-user/fd-trans.c
+++ b/linux-user/fd-trans.c
@@ -175,6 +175,8 @@ enum {
QEMU_IFLA_BRPORT_NEIGH_SUPPRESS,
QEMU_IFLA_BRPORT_ISOLATED,
QEMU_IFLA_BRPORT_BACKUP_PORT,
+ QEMU_IFLA_BRPORT_MRP_RING_OPEN,
+ QEMU_IFLA_BRPORT_MRP_IN_OPEN,
QEMU___IFLA_BRPORT_MAX
};
@@ -552,6 +554,8 @@ static abi_long host_to_target_slave_data_bridge_nlattr(struct nlattr *nlattr,
case QEMU_IFLA_BRPORT_BCAST_FLOOD:
case QEMU_IFLA_BRPORT_NEIGH_SUPPRESS:
case QEMU_IFLA_BRPORT_ISOLATED:
+ case QEMU_IFLA_BRPORT_MRP_RING_OPEN:
+ case QEMU_IFLA_BRPORT_MRP_IN_OPEN:
break;
/* uint16_t */
case QEMU_IFLA_BRPORT_PRIORITY:
@@ -1125,7 +1129,14 @@ static abi_long target_to_host_for_each_rtattr(struct rtattr *rtattr,
static abi_long target_to_host_data_link_rtattr(struct rtattr *rtattr)
{
+ uint32_t *u32;
+
switch (rtattr->rta_type) {
+ /* uint32_t */
+ case QEMU_IFLA_EXT_MASK:
+ u32 = RTA_DATA(rtattr);
+ *u32 = tswap32(*u32);
+ break;
default:
qemu_log_mask(LOG_UNIMP, "Unknown target QEMU_IFLA type: %d\n",
rtattr->rta_type);
--
2.28.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PULL 0/2] Linux user for 5.2 patches
2020-11-17 15:16 [PULL 0/2] Linux user for 5.2 patches Laurent Vivier
2020-11-17 15:16 ` [PULL 1/2] linux-user, netlink: fix message translation with ip command Laurent Vivier
2020-11-17 15:16 ` [PULL 2/2] linux-user, netlink: add IFLA_BRPORT_MRP_RING_OPEN, IFLA_BRPORT_MRP_IN_OPEN Laurent Vivier
@ 2020-11-17 23:03 ` Peter Maydell
2 siblings, 0 replies; 6+ messages in thread
From: Peter Maydell @ 2020-11-17 23:03 UTC (permalink / raw)
To: Laurent Vivier; +Cc: QEMU Developers
On Tue, 17 Nov 2020 at 15:18, Laurent Vivier <laurent@vivier.eu> wrote:
>
> The following changes since commit cb5ed407a1ddadf788fd373fed41c87c9e81e5b0:
>
> Merge remote-tracking branch 'remotes/huth-gitlab/tags/pull-request-2020-11=
> -15' into staging (2020-11-16 17:00:36 +0000)
>
> are available in the Git repository at:
>
> git://github.com/vivier/qemu.git tags/linux-user-for-5.2-pull-request
>
> for you to fetch changes up to 5351f4075dc17825df8e0628a93f9baa9b9bda4b:
>
> linux-user,netlink: add IFLA_BRPORT_MRP_RING_OPEN, IFLA_BRPORT_MRP_IN_OPEN =
> (2020-11-17 15:22:52 +0100)
>
> ----------------------------------------------------------------
> Fix netlink with latest iproute
>
> ----------------------------------------------------------------
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/5.2
for any user-visible changes.
-- PMM
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PULL 0/2] Linux user for 5.2 patches
@ 2020-11-11 21:40 Laurent Vivier
2020-11-12 11:33 ` Peter Maydell
0 siblings, 1 reply; 6+ messages in thread
From: Laurent Vivier @ 2020-11-11 21:40 UTC (permalink / raw)
To: qemu-devel; +Cc: Laurent Vivier
The following changes since commit c6f28ed5075df79fef39c500362a3f4089256c9c:
Update version for v5.2.0-rc1 release (2020-11-10 22:29:57 +0000)
are available in the Git repository at:
git://github.com/vivier/qemu.git tags/linux-user-for-5.2-pull-request
for you to fetch changes up to c7811022ebfcaae64e06383ff734f3b3651bf892:
linux-user: Prevent crash in epoll_ctl (2020-11-11 11:01:08 +0100)
----------------------------------------------------------------
Fixes for epoll_ctl and stack_t
----------------------------------------------------------------
LemonBoy (2):
linux-user: Correct definition of stack_t
linux-user: Prevent crash in epoll_ctl
linux-user/alpha/target_signal.h | 3 +--
linux-user/arm/target_signal.h | 6 +++---
linux-user/cris/target_signal.h | 6 +++---
linux-user/hppa/target_signal.h | 2 +-
linux-user/i386/target_signal.h | 6 +++---
linux-user/m68k/target_signal.h | 6 +++---
linux-user/microblaze/target_signal.h | 6 +++---
linux-user/mips/target_signal.h | 6 +++---
linux-user/mips64/target_signal.h | 7 +++----
linux-user/nios2/target_signal.h | 5 +++--
linux-user/ppc/target_signal.h | 6 +++---
linux-user/s390x/target_signal.h | 2 +-
linux-user/sh4/target_signal.h | 6 +++---
linux-user/sparc/target_signal.h | 6 +++---
linux-user/syscall.c | 26 +++++++++++++++++---------
linux-user/x86_64/target_signal.h | 6 +++---
16 files changed, 56 insertions(+), 49 deletions(-)
--
2.28.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PULL 0/2] Linux user for 5.2 patches
2020-11-11 21:40 Laurent Vivier
@ 2020-11-12 11:33 ` Peter Maydell
0 siblings, 0 replies; 6+ messages in thread
From: Peter Maydell @ 2020-11-12 11:33 UTC (permalink / raw)
To: Laurent Vivier; +Cc: QEMU Developers
On Wed, 11 Nov 2020 at 21:42, Laurent Vivier <laurent@vivier.eu> wrote:
>
> The following changes since commit c6f28ed5075df79fef39c500362a3f4089256c9c:
>
> Update version for v5.2.0-rc1 release (2020-11-10 22:29:57 +0000)
>
> are available in the Git repository at:
>
> git://github.com/vivier/qemu.git tags/linux-user-for-5.2-pull-request
>
> for you to fetch changes up to c7811022ebfcaae64e06383ff734f3b3651bf892:
>
> linux-user: Prevent crash in epoll_ctl (2020-11-11 11:01:08 +0100)
>
> ----------------------------------------------------------------
> Fixes for epoll_ctl and stack_t
>
> ----------------------------------------------------------------
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/5.2
for any user-visible changes.
-- PMM
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-11-17 23:05 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-17 15:16 [PULL 0/2] Linux user for 5.2 patches Laurent Vivier
2020-11-17 15:16 ` [PULL 1/2] linux-user, netlink: fix message translation with ip command Laurent Vivier
2020-11-17 15:16 ` [PULL 2/2] linux-user, netlink: add IFLA_BRPORT_MRP_RING_OPEN, IFLA_BRPORT_MRP_IN_OPEN Laurent Vivier
2020-11-17 23:03 ` [PULL 0/2] Linux user for 5.2 patches Peter Maydell
-- strict thread matches above, loose matches on Subject: below --
2020-11-11 21:40 Laurent Vivier
2020-11-12 11:33 ` Peter Maydell
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).