mbox

[PULL,0/5] Linux user for 3.1 patches

Message ID 20180925085432.3791-1-laurent@vivier.eu
State New
Headers show

Pull-request

git://github.com/vivier/qemu.git tags/linux-user-for-3.1-pull-request

Message

Laurent Vivier Sept. 25, 2018, 8:54 a.m. UTC
The following changes since commit 19b599f7664b2ebfd0f405fb79c14dd241557452:

  Merge remote-tracking branch 'remotes/armbru/tags/pull-error-2018-08-27-v2' into staging (2018-08-27 16:44:20 +0100)

are available in the Git repository at:

  git://github.com/vivier/qemu.git tags/linux-user-for-3.1-pull-request

for you to fetch changes up to edbbf43a14d95eb8c39bda0dc9774bb47966b7c0:

  linux-user: do setrlimit selectively (2018-09-18 17:59:57 +0200)

----------------------------------------------------------------
- some fixes for setrlimit() and write()
- fixes ELF loader when host page size is greater than target page size
- add SO_LINGER to getsockopt()/setsockopt()
- move TargetFdTrans from syscall.c

----------------------------------------------------------------

Carlo Marcelo Arenas Belón (1):
  linux-user: add SO_LINGER to {g,s}etsockopt

Laurent Vivier (1):
  linux-user: move TargetFdTrans functions to their own file

Max Filippov (1):
  linux-user: do setrlimit selectively

Shivaprasad G Bhat (1):
  linux-user: elf: mmap all the target-pages of hostpage for data
    segment

Tony Garnock-Jones (1):
  linux-user: write(fd, NULL, 0) parity with linux's treatment of same

 linux-user/Makefile.objs  |    2 +-
 linux-user/elfload.c      |   10 +-
 linux-user/fd-trans.c     | 1408 ++++++++++++++++++++++++++++++++++
 linux-user/fd-trans.h     |   97 +++
 linux-user/syscall.c      | 1519 ++-----------------------------------
 linux-user/syscall_defs.h |    5 +
 6 files changed, 1588 insertions(+), 1453 deletions(-)
 create mode 100644 linux-user/fd-trans.c
 create mode 100644 linux-user/fd-trans.h

Comments

Peter Maydell Sept. 25, 2018, 1:48 p.m. UTC | #1
On 25 September 2018 at 09:54, Laurent Vivier <laurent@vivier.eu> wrote:
> The following changes since commit 19b599f7664b2ebfd0f405fb79c14dd241557452:
>
>   Merge remote-tracking branch 'remotes/armbru/tags/pull-error-2018-08-27-v2' into staging (2018-08-27 16:44:20 +0100)
>
> are available in the Git repository at:
>
>   git://github.com/vivier/qemu.git tags/linux-user-for-3.1-pull-request
>
> for you to fetch changes up to edbbf43a14d95eb8c39bda0dc9774bb47966b7c0:
>
>   linux-user: do setrlimit selectively (2018-09-18 17:59:57 +0200)
>
> ----------------------------------------------------------------
> - some fixes for setrlimit() and write()
> - fixes ELF loader when host page size is greater than target page size
> - add SO_LINGER to getsockopt()/setsockopt()
> - move TargetFdTrans from syscall.c
>
> ----------------------------------------------------------------

Hi. This fails to compile on my aarch64 build host (which is running
Ubuntu 14.04.5 LTS):

/home/pm215/qemu/linux-user/fd-trans.c:260:35: error: ‘struct
nlmsghdr’ declared inside parameter list [-Werror]
 static void tswap_nlmsghdr(struct nlmsghdr *nlh)
                                   ^
/home/pm215/qemu/linux-user/fd-trans.c:260:35: error: its scope is
only this definition or declaration, which is probably not what you
want [-Werror]
/home/pm215/qemu/linux-user/fd-trans.c: In function ‘tswap_nlmsghdr’:
/home/pm215/qemu/linux-user/fd-trans.c:262:8: error: dereferencing
pointer to incomplete type
     nlh->nlmsg_len = tswap32(nlh->nlmsg_len);
        ^
(and various follow-on errors)

I think this is because linux-user/fd-trans.c is missing
the #include <linux/netlink.h> which syscall.c has, so the
code doesn't compile when it's moved to the new file.

thanks
-- PMM
Laurent Vivier Sept. 25, 2018, 2:13 p.m. UTC | #2
Le 25/09/2018 à 15:48, Peter Maydell a écrit :
> On 25 September 2018 at 09:54, Laurent Vivier <laurent@vivier.eu> wrote:
>> The following changes since commit 19b599f7664b2ebfd0f405fb79c14dd241557452:
>>
>>   Merge remote-tracking branch 'remotes/armbru/tags/pull-error-2018-08-27-v2' into staging (2018-08-27 16:44:20 +0100)
>>
>> are available in the Git repository at:
>>
>>   git://github.com/vivier/qemu.git tags/linux-user-for-3.1-pull-request
>>
>> for you to fetch changes up to edbbf43a14d95eb8c39bda0dc9774bb47966b7c0:
>>
>>   linux-user: do setrlimit selectively (2018-09-18 17:59:57 +0200)
>>
>> ----------------------------------------------------------------
>> - some fixes for setrlimit() and write()
>> - fixes ELF loader when host page size is greater than target page size
>> - add SO_LINGER to getsockopt()/setsockopt()
>> - move TargetFdTrans from syscall.c
>>
>> ----------------------------------------------------------------
> 
> Hi. This fails to compile on my aarch64 build host (which is running
> Ubuntu 14.04.5 LTS):
> 
> /home/pm215/qemu/linux-user/fd-trans.c:260:35: error: ‘struct
> nlmsghdr’ declared inside parameter list [-Werror]
>  static void tswap_nlmsghdr(struct nlmsghdr *nlh)
>                                    ^
> /home/pm215/qemu/linux-user/fd-trans.c:260:35: error: its scope is
> only this definition or declaration, which is probably not what you
> want [-Werror]
> /home/pm215/qemu/linux-user/fd-trans.c: In function ‘tswap_nlmsghdr’:
> /home/pm215/qemu/linux-user/fd-trans.c:262:8: error: dereferencing
> pointer to incomplete type
>      nlh->nlmsg_len = tswap32(nlh->nlmsg_len);
>         ^
> (and various follow-on errors)
> 
> I think this is because linux-user/fd-trans.c is missing
> the #include <linux/netlink.h> which syscall.c has, so the
> code doesn't compile when it's moved to the new file.

I'll update this and try a build on Ubuntu 14.04.5.

Thank you,
Laurent