generic handling to do this for syscalls with standard return values.
Add special case code for clock_nanosleep to handle CR0 properly.
Signed-off-by: Tom Musta
Reviewed-by: Peter Maydell
Signed-off-by: Riku Voipio
---
linux-user/syscall.c | 8
1 file changed, 8 insertions(+)
diff --git a
.
Signed-off-by: Tom Musta
Reviewed-by: Peter Maydell
Signed-off-by: Riku Voipio
---
linux-user/syscall.c | 16 ++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 1da216e..ebdc70e 100644
--- a/linux-user/syscall.c
the code to properly handle the case when NULL is passed in the
arg4 position.
Signed-off-by: Tom Musta
Reviewed-by: Peter Maydell
Signed-off-by: Riku Voipio
---
linux-user/syscall.c | 10 +++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user
declared as abit_long.
In fact, it makes more sense for all of the arguments to be declaried
as abi_long (except call).
Signed-off-by: Tom Musta
Signed-off-by: Riku Voipio
---
linux-user/syscall.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/linux-user/syscall.c b
Intel platforms
(0x1 and 0x2, respectively)
Signed-off-by: Tom Musta
Signed-off-by: Riku Voipio
---
linux-user/aarch64/syscall.h| 2 ++
linux-user/alpha/syscall.h | 2 ++
linux-user/arm/syscall.h| 2 ++
linux-user/cris/syscall.h | 2 ++
linux-user/i386/syscall.h | 2
From: Tom Musta
The sched_getparam, sched_setparam and sched_setscheduler system
calls take a pointer argument to a sched_param structure. When
this pointer is null, errno should be set to EINVAL.
Signed-off-by: Tom Musta
Signed-off-by: Riku Voipio
---
linux-user/syscall.c | 10
: Tom Musta
Signed-off-by: Riku Voipio
---
linux-user/syscall.c | 13 +++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 08fdd94..39ab4c7 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -2652,9 +2652,18
From: zhanghailiang
Signed-off-by: zhanghailiang
Acked-by: Riku Voipio
Signed-off-by: Riku Voipio
---
linux-user/syscall.c | 4
1 file changed, 4 insertions(+)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index ebdc70e..7ff7c21 100644
--- a/linux-user/syscall.c
+++ b/linux
From: Tom Musta
The msgsnd system call takes an argument that describes the message
size (msgsz) and is of type size_t. The system call should set
errno to EINVAL in the event that a negative message size is passed.
Signed-off-by: Tom Musta
Reviewed-by: Peter Maydell
Signed-off-by: Riku
Musta
Signed-off-by: Riku Voipio
---
linux-user/elfload.c| 9 -
linux-user/ppc/target_cpu.h | 10 ++
2 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/linux-user/elfload.c b/linux-user/elfload.c
index 60777fe..bea803b 100644
--- a/linux-user/elfload.c
+++ b
Hi,
After weekend, I think the solution to using the P flag is to
go back to Joakim's original patch:
http://lists.gnu.org/archive/html/qemu-devel/2014-07/msg02269.html
With this, we get:
If you continue to use qemu-x-static in your binfmt_misc registration,
nothing changes - both old and new q
On Mon, Aug 25, 2014 at 11:14:58AM +0200, Alexander Graf wrote:
>
>
> On 25.08.14 11:09, Riku Voipio wrote:
> > Hi,
> >
> > After weekend, I think the solution to using the P flag is to
> > go back to Joakim's original patch:
> >
> > ht
On Mon, Aug 25, 2014 at 02:46:21PM +0200, Alexander Graf wrote:
>
>
> On 25.08.14 14:42, Riku Voipio wrote:
> > On Mon, Aug 25, 2014 at 11:14:58AM +0200, Alexander Graf wrote:
> >>
> >>
> >> On 25.08.14 11:09, Riku Voipio wrote:
> >>> Hi,
&g
Hi,
On Mon, Aug 25, 2014 at 03:39:19PM +0200, Joakim Tjernlund wrote:
> Then consider when you run a LXC without P flag.
Please remember that your usecase of running Qemu in LXC is a new feature,
never before supported. Adding new features is always nice. However, it must
not happen with expense
On Mon, Aug 25, 2014 at 04:30:40PM +0200, Joakim Tjernlund wrote:
> Riku Voipio wrote on 2014/08/25 15:55:55:
> >
> > Hi,
> >
> > On Mon, Aug 25, 2014 at 03:39:19PM +0200, Joakim Tjernlund wrote:
> > > Then consider when you run a LXC without P flag.
> &
Hi Paul,
On Sun, Jun 15, 2014 at 05:18:29PM +0100, Paul Burton wrote:
> Implement support for the name_to_handle_at and open_by_handle_at
> syscalls, allowing their use by the target program.
What was your testcase for these syscalls? I usually use LTP for testing
syscalls, but there is no testc
Hi,
On Tue, Aug 26, 2014 at 03:21:30PM +0100, Paul Burton wrote:
> On Tue, Aug 26, 2014 at 03:30:41PM +0300, Riku Voipio wrote:
> > On Sun, Jun 15, 2014 at 05:18:29PM +0100, Paul Burton wrote:
> > > Implement support for the name_to_handle_at and open_by_handle_at
> > &g
On Fri, Jul 26, 2013 at 05:44:14PM +0200, Andreas Färber wrote:
> This fixes a mismerge in 874ec3c5b3821bb964f9f37b2f930f2a9ce51652.
> Signed-off-by: Andreas Färber
Acked-by: Riku Voipio
> ---
> linux-user/main.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
&g
Hi Craig,
On Wed, May 07, 2014 at 03:53:38PM +0100, Peter Maydell wrote:
> On 7 May 2014 15:48, Peter Maydell wrote:
> > On 7 May 2014 15:34, Paul Jimenez <1317...@bugs.launchpad.net> wrote:
> >> Bug description:
> >> Using the latest version of qemu-user-static from trusty, 2.0.0+dfsg-
> >>
Hi,
On Mon, May 05, 2014 at 08:04:45PM -0700, Ed Swierk wrote:
> This fixes "Cannot open audit interface - aborting." when the
> EAFNOSUPPORT errno differs between the target and host
> architectures (e.g. mips target and x86_64 host).
Thanks, looks good - applied to linux-user tree.
> Signed-of
Hi,
On 8 May 2014 17:54, Peter Maydell wrote:
> On 8 May 2014 15:47, Brad Smith wrote:
> > The following commit broke the build of QEMU..
> >
> > linux-user: remove configure option for setting uname release
> >
> >
> http://git.qemu.org/?p=qemu.git;a=commit;h=e586822a58b6609edb5ea929e8a4aa394d
On Fri, May 09, 2014 at 09:20:54AM +0100, Peter Maydell wrote:
> On 9 May 2014 09:14, Riku Voipio wrote:
> > Hi Craig,
> >
> > On Wed, May 07, 2014 at 03:53:38PM +0100, Peter Maydell wrote:
> >> Original 2011 patch:
> >> http://lists.gnu.org/archive/
On Wed, Oct 22, 2014 at 03:17:33PM +0200, Magnus Reftel wrote:
> On Tue, Oct 14, 2014 at 5:18 PM, Magnus Reftel wrote:
> > linux-user uses the rand function for generating the value of the AT_RANDOM
> > elf
> > aux vector entry, and explicitly seeds the random number generator with the
> > curren
From: Riku Voipio
On AArch64 the si_addr field of siginfo_t is truncated to 32 bits
because the fault address passes through an uint32_t variable. This
is fixed by changing the variable to uint64_t.
v2 by Riku - follow Peters suggestion and drop the addr variable
since its only used once in the
From: Jonas Maebe
The first program header does not necessarily start at offset 0. This change
corresponds to what the Linux kernel does in load_elf_binary().
Signed-off-by: Jonas Maebe
Signed-off-by: Riku Voipio
---
linux-user/elfload.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion
From: Riku Voipio
The following changes since commit 0a2923f8488498000eec54871456aa64a4391da4:
tcg/mips: fix store softmmu slow path (2014-11-02 13:30:00 +0100)
are available in the git repository at:
git://git.linaro.org/people/riku.voipio/qemu.git tags/pull-linux-user-20141101
for you
From: Riku Voipio
On AArch64 the si_addr field of siginfo_t is truncated to 32 bits
because the fault address passes through an uint32_t variable.
Follow Peters suggestion and drop the uint32_t variable
since its only used once in the Aarch64 loop.
Reported-by: Amanieu d'Antras
Review
From: Magnus Reftel
This patch introduces the -seed command line option and the
QEMU_RAND_SEED environment variable for setting the random seed, which
is used for the AT_RANDOM ELF aux entry.
Signed-off-by: Magnus Reftel
Reviewed-by: Eric Blake
Signed-off-by: Riku Voipio
---
linux-user
On Mon, Sep 01, 2014 at 10:12:18AM +0100, Peter Maydell wrote:
> On 1 September 2014 09:51, Paolo Bonzini wrote:
> > Il 29/08/2014 20:01, Peter Maydell ha scritto:
> >> [cc'ing MJT for more distro opinion since I think fundamentally
> >> the choice we ought to make upstream is "what's not going to
On Mon, Jul 14, 2014 at 11:37:02PM +0200, Joakim Tjernlund wrote:
> Joakim Tjernlund/Transmode wrote on 2014/07/14 23:04:51:
> > > Why do we need to modify argv[] here when we are building a
> > > target_argv[] further down anyway?
>
> > Because parse_opts() will not do it for me and I cannot figu
On Fri, Jul 11, 2014 at 03:02:02AM +0200, Joakim Tjernlund wrote:
> Wrong type was used in ioctl definition.
Thanks, Applied to linux-user
> Signed-off-by: Joakim Tjernlund
> ---
>
> However, this does not fix my dhcp problem:
>
> jocke-ppc ~ # busybox udhcpc -v
> Adapter index 24
> MAC fe:22:
On Fri, Jul 11, 2014 at 05:18:03PM +0200, Joakim Tjernlund wrote:
> target_to_host_sockaddr() may increase the lenth with 1 byte
> for AF_UNIX sockets so allocate 1 extra byte.
Thanks, applied to linux-user tree
> Signed-off-by: Joakim Tjernlund
> ---
> linux-user/syscall.c | 6 +++---
> 1 file
On Sat, Jul 12, 2014 at 03:47:06PM +0200, Joakim Tjernlund wrote:
> Signed-off-by: Joakim Tjernlund
Thanks, applied to linux-user tree,
Riku
> ---
> linux-user/syscall.c | 19 +++
> 1 file changed, 19 insertions(+)
>
> diff --git a/linux-user/syscall.c b/linux-user/syscall.c
>
On Sat, Jul 12, 2014 at 03:47:07PM +0200, Joakim Tjernlund wrote:
> Implement conversion of the AF_PACKET sockaddr subtype
> in target_to_host_sockaddr.
Thanks, Applied to linux-user tree,
Riku
> Signed-off-by: Joakim Tjernlund
> ---
> linux-user/syscall.c | 7 +++
> linux-user/sysca
On Thu, Jul 10, 2014 at 04:50:03PM +0100, Alex Bennée wrote:
> As we only need to manipulate the single flag do it directly though env.
Acked-by: Riku Voipio
> Signed-off-by: Alex Bennée
>
> ---
>
> v2:
> - remove unused cpsr
> - the direct flag setting seems a
t; fiddling.
For the linux-user part,
Acked-by: Riku Voipio
> Signed-off-by: Alex Bennée
>
> --
>
> v2
> - include xpsr_read conversions
> - checkpatch fixes
>
> diff --git a/linux-user/elfload.c b/linux-user/elfload.c
> index 60777fe..577e1d3 100644
> --- a
On Thu, Jul 10, 2014 at 04:50:02PM +0100, Alex Bennée wrote:
> This is a pre-cursor to removing the cpsr_write function completely from
> the code base. set_condition_codes() only affects the integer condition
> flags.
Acked-by: Riku Voipio
> Signed-off-by: Alex Bennée
>
On Thu, Jul 10, 2014 at 04:50:04PM +0100, Alex Bennée wrote:
> And use the new machinery to to save and restore program state. The old
> cpsr_write function did some special handling for mode switches which
> has been moved into the helper function.
Again for the linux-user part,
Acked
On Thu, Jul 10, 2014 at 04:50:05PM +0100, Alex Bennée wrote:
> This converts all users of pstate_write to use the common state
> save/restore functionality.
Acked-by: Riku Voipio
> Signed-off-by: Alex Bennée
>
> diff --git a/linux-user/signal.c b/linux-user/signal.c
> inde
On Mon, Jul 14, 2014 at 05:38:49PM +0200, Joakim Tjernlund wrote:
> Alexander Graf wrote on 2014/07/14 17:21:33:
> > On 14.07.14 16:38, Joakim Tjernlund wrote:
> > > The popular binfmt-wrapper patch adds an additional
> > > executable which mangle argv suitable for binfmt flag P.
> > > In a chroot
From: Riku Voipio
The following changes since commit 0a9934eef166836c8100fce72f7f837cb8b2ed2b:
Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging
(2014-07-14 17:01:45 +0100)
are available in the git repository at:
git://git.linaro.org/people/r
From: Joakim Tjernlund
Implement conversion of the AF_PACKET sockaddr subtype
in target_to_host_sockaddr.
Signed-off-by: Joakim Tjernlund
Reviewed-by: Peter Maydell
Signed-off-by: Riku Voipio
---
linux-user/syscall.c | 7 +++
linux-user/syscall_defs.h | 10 ++
2 files
From: Joakim Tjernlund
Wrong type was used in ioctl definition.
Signed-off-by: Joakim Tjernlund
Reviewed-by: Peter Maydell
Signed-off-by: Riku Voipio
---
linux-user/ioctls.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h
index
From: Joakim Tjernlund
target_to_host_sockaddr() may increase the lenth with 1 byte
for AF_UNIX sockets so allocate 1 extra byte.
Signed-off-by: Joakim Tjernlund
Reviewed-by: Peter Maydell
Signed-off-by: Riku Voipio
---
linux-user/syscall.c | 6 +++---
1 file changed, 3 insertions(+), 3
From: Joakim Tjernlund
Signed-off-by: Joakim Tjernlund
Reviewed-by: Peter Maydell
Signed-off-by: Riku Voipio
---
linux-user/syscall.c | 19 +++
1 file changed, 19 insertions(+)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 5a272d3..dcf1323 100644
--- a/linux
From: Riku Voipio
As reported by Laurent, which should use TARGET_SA_ONSTACK
on arm, microblaze and openrisc targets like we do on all
others. Practical matter is minimal as for almost all archs
SA_ONSTACK is 0x0800:
http://lxr.free-electrons.com/ident?i=SA_ONSTACK
Reported-by: Laurent
On Tue, Jul 15, 2014 at 05:11:48PM +0200, Joakim Tjernlund wrote:
> Riku Voipio wrote on 2014/07/15 16:12:26:
> > On Mon, Jul 14, 2014 at 05:38:49PM +0200, Joakim Tjernlund wrote:
> > > Alexander Graf wrote on 2014/07/14 17:21:33:
> > > > On 14.07.14 16:38, Joakim
On Sat, Jul 12, 2014 at 04:06:09PM +0200, Joakim Tjernlund wrote:
> Alexander Graf wrote on 2014/07/12 12:41:05:
> >
> > On 12.07.14 12:40, Peter Maydell wrote:
> > > On 12 July 2014 10:39, Alexander Graf wrote:
> > >> On 12.07.14 10:58, Peter Maydell wrote:
> > >>> On 12 July 2014 01:39, Alexan
On Tue, Jul 22, 2014 at 10:22:15PM -, Peter Maydell wrote:
> On 22 July 2014 20:46, Richard Henderson wrote:
> > On 07/21/2014 10:37 AM, Peter Maydell wrote:
> >>> It's trying to measure clock cycles required to perform the startup
> >>> relocations.
> >>
> >> That's a neat trick, given that t
Hi,
The patch in patchwork doesn't apply, even with a bit of editing. You
need to send the patch to list with git send-email instead of including
the patch inline. We have docs at:
http://wiki.qemu.org/Contribute/SubmitAPatch
Also, please include the description of the patch in the commit messag
Hi Paul,
On Fri, Jun 27, 2014 at 04:30:34PM +0300, Riku Voipio wrote:
> On Sat, Jun 21, 2014 at 11:52:55PM +0100, Paul Burton wrote:
> > From: Paul Burton
> >
> > This series fixes a number of bugs in QEMUs linux-user support, some
> > specific to targetting the M
Hi,
On Tue, Aug 05, 2014 at 03:10:07PM +0400, Mikhail Ilyin wrote:
> Build /proc/self/maps doing a match against guest memory translation table.
> Output only that map records which are valid for guest memory layout.
This is clear improvement, for most archs. But seems aarch64, openrisc still
lea
On Sun, Aug 03, 2014 at 09:45:38AM +1000, Erik de Castro Lopo wrote:
> Signed-off-by: Erik de Castro Lopo
Thanks,
applied to linux-user tree.
> ---
> linux-user/syscall.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> index a50229d..5f22
From: Riku Voipio
While Mikhail fixed /proc/self/maps, it was noticed openat calls are
not redirected currently. Some archs don't have open at all, so
openat needs to be redirected.
Fix this by consolidating open/openat code to do_openat - open
is implemented using openat(AT_FDCWD, ... ),
arg4));
>
> I believe OpenRISC case looks the same.
Thanks for looking into it. I just sent a patch that adds preprocessing
to openat, and seems to clear the issue for both aarch64 and OpenRISC.
Riku
>
> On 05.08.2014 15:47, Riku Voipio wrote:
> >Hi,
> >
> &g
Hi,
looks like I'll be busy for the rest of the of the month :/
Riku
On Tue, Mar 20, 2012 at 11:47:01AM +, Peter Maydell wrote:
> Ping^3 (past the six-week mark now...)
>
> -- PMM
>
> On 8 March 2012 14:20, Peter Maydell wrote:
> > Ping^2 ?
> >
> > -- PMM
> >
> > On 22 February 2012 22:55
Hi,
Do we really need this? 2.6.12 came out in 2005, even oldest supported
RHEL (5) is minimum 2.6.18 these days.
Riku
On Tue, Mar 27, 2012 at 10:08:03AM -0500, Meador Inge wrote:
> Ping.
>
> On 02/20/2012 01:38 PM, Andreas Färber wrote:
> > Am 20.02.2012 19:26, schrieb Meador Inge:
> >> Commit
On 05/18/2011 03:14 AM, Mike Frysinger wrote:
Some architectures (like Blackfin) only implement pselect6 (and skip
select/newselect). So add support for it using existing newselect code.
There is a blackfin qemu? Anyways, with this patch pselect01 ltp
testcase starts failing. Looks like (at l
On 06/03/2011 11:47 PM, Aurelien Jarno wrote:
On Mon, May 02, 2011 at 05:01:24PM +0100, Peter Maydell wrote:
On 20 April 2011 15:52, Peter Maydell wrote:
Move VLD/VST multiple into helper functions, as some cases can
generate more TCG ops than the maximum per-instruction limit
and certainly mo
From: Mike McCormack
Fixes crash in i386 when user emulation base address is non-zero.
21797 rt_sigreturn(8,1082124603,1,0,1082126048,1082126248)Exit reason and
status: signal 11
Signed-off-by: Mike McCormack
Signed-off-by: Riku Voipio
---
linux-user/signal.c |4 ++--
1 files changed
From: Peter Maydell
In the m68k semihosting implementation of HOSTED_INIT_SIM, use the correct
check for whether do_brk() has failed -- it does not return -1 but the
previous value of the break limit.
Signed-off-by: Peter Maydell
Signed-off-by: Riku Voipio
---
m68k-semi.c |5 +++--
1
From: Riku Voipio
Hi,
All included patches except mine have already been on the list. These patches
should be ready for pull, but giving last minute chance for people to object.
The following changes since commit eb47d7c5d96060040931c42773ee07e61e547af9
hw/9118.c: Implement active-low
start
_start:
mov #1, r3
trapa #40 // syscall(__NR_exit)
nop
The bug appears when the log (option "-d") is enabled.
Signed-off-by: Cédric VINCENT
Signed-off-by: Yves JANIN
Signed-off-by: Riku Voipio
---
linux-user/elfload.c | 34 +++
From: Peter Maydell
In the ARM semihosting implementation of SYS_HEAPINFO, use the correct
check for whether do_brk() has failed -- it does not return -1 but the
previous value of the break limit.
Signed-off-by: Peter Maydell
Signed-off-by: Riku Voipio
---
arm-semi.c |5 +++--
1 files
From: Juan Quintela
Looking at the other architectures, we should be using "how" not "arg1".
Signed-off-by: Juan Quintela
[peter.mayd...@linaro.org: remove unnecessary initialisation of how]
Signed-off-by: Peter Maydell
Signed-off-by: Riku Voipio
---
linux-user/sysc
{
printf("success\n");
exit(EXIT_SUCCESS);
}
else {
exit(EXIT_FAILURE);
}
}
Signed-off-by: Cédric VINCENT
Reviewed-by: Christophe Guillon
Signed-off-by: Riku Voipio
---
linux-user/syscall.c | 11 ++-
1 fil
From: Juan Quintela
Just unfold its definition in only use.
Signed-off-by: Juan Quintela
[peter.mayd...@linaro.org: fixed typo in the debug code,
added parentheses to fix precedence issue]
Signed-off-by: Peter Maydell
Signed-off-by: Riku Voipio
---
linux-user/flatload.c |5 ++---
1
ped but at
different address" as an error case instead.
Signed-off-by: Peter Maydell
Signed-off-by: Riku Voipio
---
linux-user/syscall.c | 29 -
1 files changed, 20 insertions(+), 9 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 5
From: Mike Frysinger
Some architectures (like Blackfin) only implement pselect6 (and skip
select/newselect). So add support for it.
Signed-off-by: Mike Frysinger
Signed-off-by: Riku Voipio
---
linux-user/syscall.c | 149 +++--
1 files changed
From: Juan Quintela
We assign ret with the error code, but then return 0 unconditionally.
Signed-off-by: Juan Quintela
Signed-off-by: Peter Maydell
Signed-off-by: Riku Voipio
---
linux-user/syscall.c |8
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/linux-user
ced with a binary created by the Google Go toolchain for ARM.
We fix the bug by refactoring the "probe for guest base" code out into
its own self-contained function.
Signed-off-by: Peter Maydell
Signed-off-by: Riku Voipio
---
linux-user/elfload.c | 130 -
From: Juan Quintela
Signed-off-by: Juan Quintela
Signed-off-by: Peter Maydell
Signed-off-by: Riku Voipio
---
linux-user/linuxload.c | 25 +
1 files changed, 1 insertions(+), 24 deletions(-)
diff --git a/linux-user/linuxload.c b/linux-user/linuxload.c
index ac8c486
variables being set and never used.
Signed-off-by: Peter Maydell
Signed-off-by: Riku Voipio
---
linux-user/main.c| 37 -
linux-user/qemu.h|3 ++-
linux-user/syscall.c |8 +---
3 files changed, 31 insertions(+), 17 deletions(-)
diff --git a
user
stack.
* Add a small test program.
Signed-off-by: Cédric VINCENT
Signed-off-by: Laurent ALFONSI
Signed-off-by: Riku Voipio
---
linux-user/elfload.c | 21 -
1 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/linux-user/elfload.c b/linux-user/elflo
From: Riku Voipio
As noticed while looking at "Bump do_syscall() up to 8 syscall arguments"
patch, sync_file_range uses a pad argument on 32bit mips. Deal with it
by reading the correct arguments when on mips.
Signed-off-by: Riku Voipio
---
linux-user/syscall.c |5 +
1 fil
From: Peter Maydell
Remove fenab as it is only written, never used. Add a FIXME
comment about the discrepancy between our behaviour and that
of the Linux kernel for this routine.
Signed-off-by: Peter Maydell
Signed-off-by: Riku Voipio
---
linux-user/signal.c |7 +--
1 files changed
From: Juan Quintela
Signed-off-by: Juan Quintela
Signed-off-by: Peter Maydell
Signed-off-by: Riku Voipio
---
linux-user/flatload.c |3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/linux-user/flatload.c b/linux-user/flatload.c
index 6fb78f5..1062da3 100644
--- a
can never fail.)
Signed-off-by: Peter Maydell
Signed-off-by: Riku Voipio
---
linux-user/signal.c | 10 +-
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/linux-user/signal.c b/linux-user/signal.c
index cb7138f..4edd974 100644
--- a/linux-user/signal.c
+++ b/linux
On Sat, Jul 23, 2011 at 07:47:49AM +0200, josch wrote:
> This could be avoided by setting the proposed environment variable
> QEMU_LD_PREFIX to the just
> created debian rootfs. As mentioned earlier, the usage of the -L option
> is not possible in this scenario because qemu-user is only implicitly
On Tue, Jul 26, 2011 at 08:56:38AM +, Holger Freyther wrote:
> For semctl qemu enters through the do_ipc method, it appears
> to be that the 'variable' ptr is really a ptr (to the stack) and
> needs to be dereferenced. The below snippet seems to fix that
> issue for me.
> My next problem is w
On Fri, Jul 29, 2011 at 05:21:59PM +0200, Johannes Schauer wrote:
> So if we agree on using environment variables to pass options to
> qemu-user we next need to agree on how to name the options.
> The following commandline arguments exist (in order as they are checked
> in linux-user/main.c) and
On Fri, Jun 01, 2012 at 01:49:26AM +0100, Peter Maydell wrote:
> On 31 May 2012 20:37, Richard Henderson wrote:
> > void gemu_log(const char *fmt, ...)
> > {
> > va_list ap;
> >
> > va_start(ap, fmt);
> > - vfprintf(stderr, fmt, ap);
> > + vfprintf(strace_log_file, fmt, ap);
> >
fault value to also make use of it!
Signed-off-by: Alexander Graf
Signed-off-by: Riku Voipio
---
linux-user/main.c | 11 +++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/linux-user/main.c b/linux-user/main.c
index aa95db3..23ad357 100644
--- a/linux-user/main.c
+++ b/
.c to satisfy checkpatch
]
Signed-off-by: Peter Maydell
Signed-off-by: Riku Voipio
---
disas.c| 18 +-
linux-user/elfload.c |1 +
linux-user/main.c | 34 +-
linux-user/qemu.h |1 +
target-arm/cpu.h |
: Alexander Graf
Signed-off-by: Riku Voipio
---
linux-user/syscall_types.h |4 ++--
thunk.c| 28
thunk.h| 28
3 files changed, 58 insertions(+), 2 deletions(-)
diff --git a/linux-user
isn't present.)
Signed-off-by: Peter Maydell
Signed-off-by: Riku Voipio
---
linux-user/arm/syscall_nr.h |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/linux-user/arm/syscall_nr.h b/linux-user/arm/syscall_nr.h
index 7f05879..5356395 100644
--- a/linux-user/arm/sy
From: Peter Maydell
Add support for the prctl options PR_GET_NAME and PR_SET_NAME,
which take or return a name in a 16 byte buffer pointed to by arg2.
Signed-off-by: Peter Maydell
Signed-off-by: Riku Voipio
---
linux-user/syscall.c | 24
1 files changed, 24
hat
aren't accessible from the guest process's point of view.
Signed-off-by: Alexander Graf
Signed-off-by: Riku Voipio
---
cpu-all.h |3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/cpu-all.h b/cpu-all.h
index 9621c3c..4512518 100644
--- a/cpu-all.h
++
From: Alexander Graf
This patch adds the ioctl wrapper definition for BLKBSZGET.
Signed-off-by: Alexander Graf
Signed-off-by: Riku Voipio
---
linux-user/ioctls.h |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h
index 5b70f92
From: Alexander Graf
This patch adds an ioctl definition for BLKSSZGET.
Signed-off-by: Alexander Graf
Signed-off-by: Riku Voipio
---
linux-user/ioctls.h |1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h
index fd8b7bb..5b70f92
From: Riku Voipio
The following patches are to sent in the pull request for linux-user.
As usual, the are also available in the git repository at:
git://git.linaro.org/people/rikuvoipio/qemu.git linux-user-for-upstream
Riku
Alexander Graf (8):
linux-user: implement device mapper ioctls
/proc mounted.
Signed-off-by: Fabio Erculiani
Acked-by: Alexander Graf
Signed-off-by: Alexander Graf
Signed-off-by: Riku Voipio
---
linux-user/syscall.c | 19 +++
1 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index
af
[minor changes to get it to apply -- PMM]
Signed-off-by: Riku Voipio
---
linux-user/main.c |1 +
linux-user/mmap.c | 35 ---
linux-user/qemu.h |1 +
3 files changed, 26 insertions(+), 11 deletions(-)
diff --git a/linux-user/main.c b/linux-user/main.c
ind
Signed-off-by: Riku Voipio
---
elf.h | 21 +
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/elf.h b/elf.h
index 36bcac4..e1422b8 100644
--- a/elf.h
+++ b/elf.h
@@ -538,6 +538,27 @@ typedef struct {
#define EF_ALIGN8 0x40/* 8-bit
From: Peter Maydell
Clean up the odd indentation of this switch statement before
we double its size by adding new cases to it.
Signed-off-by: Peter Maydell
Signed-off-by: Riku Voipio
---
linux-user/syscall.c | 29 +++--
1 files changed, 15 insertions(+), 14
From: Alexander Graf
Fallocate gets off_t parameters passed in, so we should also read them out
accordingly.
Signed-off-by: Alexander Graf
---
v1 -> v2:
- unbreak 64-bit guests
Signed-off-by: Riku Voipio
---
linux-user/syscall.c |5 +
1 files changed, 5 insertions(+)
From: Alexander Graf
This patch implements all ioctls currently implemented by device mapper,
enabling us to run dmsetup and kpartx inside of linux-user.
Signed-off-by: Alexander Graf
Signed-off-by: Riku Voipio
---
linux-user/ioctls.h| 32 ++
linux-user/syscall.c | 226
From: Alexander Graf
Some BLK ioctls passed sizeof(x) into a macro that already did sizeof() on
the passed in argument, rendering the size information inside the ioctl be
the size of the host default integer type.
Signed-off-by: Alexander Graf
Signed-off-by: Riku Voipio
---
linux-user
Fabio Erculiani
Acked-by: Alexander Graf
Signed-off-by: Alexander Graf
Signed-off-by: Riku Voipio
---
linux-user/main.c |5 -
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/linux-user/main.c b/linux-user/main.c
index 962677e..2570140 100644
--- a/linux-user/main.c
+++ b/linu
From: Benoit Canet
The cpu capabilities passed by the elf loader in AT_HWCAP where
a constant.
Make AT_HWCAP reflect the emulated cpu features in order to give
correct clues to eglibc.
Riku Voipio: fixed to apply to current head
Fix : [Bug 887516] [NEW] VFP support reported for the PXA270
301 - 400 of 1342 matches
Mail list logo