[uml-user] [PATCH 1/1] uml: fix compile warning

2010-09-16 Thread Richard Weinberger
, 85 which was introduced by d7627467b7a8dd6944885290a03a07ceb28c10eb (Make do_execve() take a const filename pointer) Signed-off-by: Richard Weinberger --- arch/um/kernel/exec.c |6 +++--- arch/um/kernel/internal.h |2 +- arch/um/kernel/syscall.c |4 ++-- 3 files changed,

[uml-user] [PATCH 1/1] um: ubd: Fix data corruption

2010-10-01 Thread Richard Weinberger
Under high load the file system gets corrupted. This patch fixes the issue. Many thanks to Janjaap Bos ! LKML-Reference: Signed-off-by: Richard Weinberger --- arch/um/drivers/ubd_kern.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/um/drivers/ubd_kern.c b

[uml-user] [PATCH 1/1] um: Get rid of __do_IRQ()

2010-10-13 Thread Richard Weinberger
This patch removes __do_IRQ() from user mode linux. Signed-off-by: Richard Weinberger --- arch/um/Kconfig.um |3 +++ arch/um/kernel/irq.c | 15 --- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/arch/um/Kconfig.um b/arch/um/Kconfig.um index ec2b8da..7ad0916

Re: [uml-user] [PATCH] [RFC] um: x86: unbreak build by reintroducing this_cpu_cmpxchg16b_emu

2011-04-06 Thread Richard Weinberger
Sergei, Am Mittwoch 06 April 2011, 23:18:37 schrieb Sergei Trofimovich: > I'm sure fix can be nices, but initial patch should express an idea. Please send patches not as attachment. I think this patch is only needed on x86_64. Um builds fine on my main machine (i386). It seems to fail on x86_64

Re: [uml-user] [PATCH 19/55] um: irq: Remove IRQF_DISABLED

2011-09-22 Thread Richard Weinberger
0a: > genirq: Warn when handler enables interrupts]). > > So now this flag is a NOOP and can be removed. > > Signed-off-by: Yong Zhang Acked-by: Richard Weinberger signature.asc Description: OpenPGP digital signature ---

[uml-user] Advice to all glibc 2.12 users

2011-10-09 Thread Richard Weinberger
glibc 2.12's pthread_cond_signal() is broken on UML because it does not have FUTEX_WAKE_OP. The issue got fixed in 2.12.2: http://sourceware.org/ml/libc-alpha/2010-08/msg00019.html Sadly, some distros (like CentOS 6.0) still ship glibc 2.12.1. So you have to expect problems when them on top of UM

Re: [uml-user] Questions about User Mode Linux

2011-10-13 Thread Richard Weinberger
Am 13.10.2011 20:10, schrieb mic...@michaelblizek.twilightparadox.com: > After migrating from i386 to x86_64, my uml started to segfault in weird ways. What exactly is the problem? Without any details nobody can and will help you. > In the end, I figured that "make clean/mrproper/distclean" does

Re: [uml-user] Questions about User Mode Linux

2011-10-14 Thread Richard Weinberger
Am 14.10.2011 07:29, schrieb mic...@michaelblizek.twilightparadox.com: > I have attached the trace below, if you are interested. It happened > during/after /sbin/init was executed. Version is > f2c0d0266cc5eb36a4aa44944b4096ec121490aa of linus'es git tree. However, > everything is running now. It w

Re: [uml-user] Questions about User Mode Linux

2011-10-14 Thread Richard Weinberger
Am 14.10.2011 12:08, schrieb Bernd Petrovitsch: > The question is IMHO more in the direction of: > Shouldn't `make mrproper` delete *all* generated files from all > architectures (and not only the current one) to get the tree in a (or > actually the) pristine state? To achieve this the Makefile ne

Re: [uml-user] [PATCH 18/49] um: irq: Remove IRQF_DISABLED

2011-10-28 Thread Richard Weinberger
0a: > genirq: Warn when handler enables interrupts]). > > So now this flag is a NOOP and can be removed. > > Signed-off-by: Yong Zhang > Acked-by: Richard Weinberger BTW: I think it's better when I carry this patch through my UML tree. Okay? Thanks, //richard signatu

Re: [uml-user] apache2 won't start with v3.6-rc5 (kernel v3.5 works fine)

2012-09-09 Thread Richard Weinberger
Am 09.09.2012 18:36, schrieb Toralf Förster: > On 09/09/2012 02:48 PM, richard -rw- weinberger wrote: >> On Sun, Sep 9, 2012 at 12:01 PM, Toralf Förster >> wrote: >>> Hi, >>> >>> with current git tree 3.6-rc5 I cannot longer start apache2 at a >>> UML image with an unstable Gentoo Linux. >>> >>>

Re: [uml-user] apache2 won't start with v3.6-rc5 (kernel v3.5 works fine)

2012-09-10 Thread Richard Weinberger
Am 10.09.2012 15:56, schrieb Toralf Förster: > On 09/09/2012 06:55 PM, Richard Weinberger wrote: >> Kind of. semctl() fails for whatever reason. > >> semget(IPC_PRIVATE, 1, IPC_CREAT|0600) = 32769 semctl(32769, 0, >> IPC_64|SETVAL, 0xbfa05178) = -1 EINVAL (Invalid argum

Re: [uml-user] apache2 won't start with v3.6-rc5 (kernel v3.5 works fine)

2012-09-10 Thread Richard Weinberger
Am 10.09.2012 19:37, schrieb Toralf Förster: > On 09/10/2012 04:23 PM, Richard Weinberger wrote: >> Am 10.09.2012 15:56, schrieb Toralf Förster: >>> On 09/09/2012 06:55 PM, Richard Weinberger wrote: >>>> Kind of. semctl() fails for whatever reason. >>> >

Re: [uml-user] apache2 won't start with v3.6-rc5 (kernel v3.5 works fine)

2012-09-10 Thread Richard Weinberger
Am 10.09.2012 21:02, schrieb Toralf Förster: > On 09/10/2012 08:23 PM, Richard Weinberger wrote: >> Does the attached patch fix the issue for you? > > yes > :-) Good. > > > BTW and now to a complete different thing : > Why is the kernel option CONFIG_CRYPTO_A

Re: [uml-user] apache2 won't start with v3.6-rc5 (kernel v3.5 works fine)

2012-09-24 Thread Richard Weinberger
Am 24.09.2012 21:23, schrieb Toralf Förster: > On 09/10/2012 08:23 PM, Richard Weinberger wrote: > >> Does the attached patch fix the issue for you? > >> Thanks, //richard > > Seems, that this patch won't make it into 3.6, or ? > (or is it only a work around

Re: [uml-user] [PATCH RESEND] typo in UserModeLinux-HOWTO

2012-09-27 Thread Richard Weinberger
Am Thu, 27 Sep 2012 09:34:16 +0200 schrieb Richard Genoud : > [it seems that I sent it to the wrong maintainer at first... sorry > for that] copy_from_user was meant instead of copy_to_user. > > Signed-off-by: Richard Genoud Queued for 3.7! Thanks, //richard --

Re: [uml-user] apache2 won't start with v3.6-rc5 (kernel v3.5 works fine)

2012-09-29 Thread Richard Weinberger
Am Sat, 29 Sep 2012 22:10:07 +0200 schrieb Toralf Förster : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 09/24/2012 09:25 PM, Richard Weinberger wrote: > > Am 24.09.2012 21:23, schrieb Toralf Förster: > >> On 09/10/2012 08:23 PM, Richard Weinberger

Re: [uml-user] [PATCH 2/2] um: fix build failure due to mess-up of sig_info protorype

2012-12-30 Thread Richard Weinberger
vious declaration > of 'sig_info' was here > > Signed-off-by: Sergei Trofimovich > CC: Jeff Dike > CC: Richard Weinberger > CC: "Martin Pärtel" > CC: Al Viro > CC: user-mode-linux-de...@lists.sourceforge.net > CC: user-mode-linux-user@lists.sourcefor

Re: [uml-user] [PATCH 2/2] um: fix build failure due to mess-up of sig_info protorype

2013-01-11 Thread Richard Weinberger
Am Sat, 12 Jan 2013 00:55:17 +0300 schrieb Sergei Trofimovich : > On Sun, 30 Dec 2012 10:40:43 +0100 > Richard Weinberger wrote: > > > Am Sun, 30 Dec 2012 01:37:31 +0300 > > schrieb Sergei Trofimovich : > > > > > arch/um/os-Linux/signal.c:18:8: error: confl

Re: [uml-user] [PATCH] include/asm-generic/io.h: add 'UML' case just like 'no-MMU'

2013-06-26 Thread Richard Weinberger
Am 26.06.2013 10:34, schrieb Chen Gang: > On 06/26/2013 04:05 PM, Richard Weinberger wrote: >>>>>>>> diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h >>>>>>>> index d5afe96..e80331d 100644 >>>>>>>

Re: [uml-user] [PATCH] include/asm-generic/io.h: add 'UML' case just like 'no-MMU'

2013-06-26 Thread Richard Weinberger
Hi! Am 26.06.2013 08:31, schrieb Chen Gang: > For "User Mode Linux", it may enable 'MMU', but not need implement > ioremap and iounmap, so "include/asm-generic/io.h" need notice this > case to keep itself 'generic'. > > The related error (with allmodconfig, without pcap): > > CC [M] drivers

Re: [uml-user] [PATCH] include/asm-generic/io.h: add 'UML' case just like 'no-MMU'

2013-06-26 Thread Richard Weinberger
Hi! Am 26.06.2013 09:56, schrieb Chen Gang: > On 06/26/2013 02:54 PM, Richard Weinberger wrote: >> Hi! >> >> Am 26.06.2013 08:31, schrieb Chen Gang: >>> For "User Mode Linux", it may enable 'MMU', but not need implement >>> ioremap

Re: [uml-user] [PATCH] include/asm-generic/io.h: add 'UML' case just like 'no-MMU'

2013-06-26 Thread Richard Weinberger
Am 26.06.2013 12:01, schrieb Chen Gang: > On 06/26/2013 05:48 PM, Geert Uytterhoeven wrote: >> On Wed, Jun 26, 2013 at 11:38 AM, Richard Weinberger wrote: >>>>>> Since the API itself already contents the meaning: "return NULL means >>>>>> the ar

Re: [uml-user] [PATCH] include/asm-generic/io.h: add 'UML' case just like 'no-MMU'

2013-06-26 Thread Richard Weinberger
Am 26.06.2013 11:33, schrieb Chen Gang: > On 06/26/2013 05:03 PM, Richard Weinberger wrote: >> Am 26.06.2013 10:58, schrieb Chen Gang: >>>> On 06/26/2013 04:39 PM, Richard Weinberger wrote: >>>>>>>>>>>>>>&

Re: [uml-user] [PATCH] include/asm-generic/io.h: add 'UML' case just like 'no-MMU'

2013-06-26 Thread Richard Weinberger
Am 26.06.2013 10:58, schrieb Chen Gang: > On 06/26/2013 04:39 PM, Richard Weinberger wrote: >>>>>>>>>> The drivers internal code has already check the related return value, >>>>>>>>>> so it is the architecture's duty to 't

Re: [uml-user] tsc.c in UML

2013-08-27 Thread Richard Weinberger
Hi! Am 27.08.2013 19:51, schrieb Han: > > On Sat, Aug 24, 2013 at 6:42 AM, richard -rw- weinberger > mailto:richard.weinber...@gmail.com>> wrote: > > On Fri, Aug 23, 2013 at 8:35 PM, Han > wrote: > > Hi, > > > > I am using Linux kernel 2.6.27 for bu

Re: [uml-user] tsc.c in UML

2013-08-27 Thread Richard Weinberger
Am 27.08.2013 23:30, schrieb Han: > > > > On Tue, Aug 27, 2013 at 2:28 PM, Han <mailto:keepsim...@gmail.com>> wrote: > > > > > On Tue, Aug 27, 2013 at 1:31 PM, Richard Weinberger <mailto:rich...@nod.at>> wrote: > >

Re: [uml-user] [PATCH] um: remove used STDIO_CONSOLE Kconfig param

2013-10-27 Thread Richard Weinberger
Am 27.10.2013 08:06, schrieb Michael Opdenacker: > This removes the STDIO_CONSOLE Kconfig parameter which > is defined but no longer used anywhere in the makefiles and source code. > > Signed-off-by: Michael Opdenacker Looks good. Queued for 3.13. Thanks, //richard > --- > arch/um/Kconfig.cha

Re: [uml-user] [patch] uml: check length in exitcode_proc_write()

2013-11-01 Thread Richard Weinberger
Am 29.10.2013 20:06, schrieb Dan Carpenter: > We don't cap the size of buffer from the user so we could write past > the end of the array here. Only root can write to this file. > > Reported-by: Nico Golde > Reported-by: Fabian Yamaguchi > Signed-off-by: Dan Carpenter Thanks everyone! Patch a

Re: [uml-user] UML: Get's stuck

2013-11-06 Thread Richard Weinberger
On Tue, Nov 5, 2013 at 9:21 PM, Thomas Meyer wrote: > Hi, > > I'm running Fedora 20 inside a 3.12 UML kernel and the "yum upgrade -y" > command seems to get stuck after a while/few minutes. > > Any ideas what's going one here? How to debug this? > > It looks like the process running yum is in stat

Re: [uml-user] UML: Get's stuck

2013-11-06 Thread Richard Weinberger
Am 06.11.2013 20:52, schrieb Thomas Meyer: > Am Mittwoch, den 06.11.2013, 13:40 +0100 schrieb Richard Weinberger: >> On Tue, Nov 5, 2013 at 9:21 PM, Thomas Meyer wrote: >>> Hi, >>> >>> I'm running Fedora 20 inside a 3.12 UML kernel and the "yum upgr

Re: [uml-user] [PATCH] arch: um: kernel: skas: mmu: remove pmd_free() and pud_free() for failure processing in init_stub_pte()

2013-11-13 Thread Richard Weinberger
Am 13.11.2013 06:06, schrieb Chen Gang: > Unfortunately, p?d_alloc() and p?d_free() are not pair!! If p?d_alloc() > succeed, they may be used, so in the next failure, we have to skip them > to let exit_mmap() or do_munmap() to process it. > > According to "Documentation/vm/locking", 'mm->page_tabl

Re: [uml-user] [PATCH] arch: um: kernel: skas: mmu: remove pmd_free() and pud_free() for failure processing in init_stub_pte()

2013-11-13 Thread Richard Weinberger
Am 14.11.2013 08:33, schrieb Chen Gang: > On 11/14/2013 02:48 PM, Chen Gang wrote: >>> >From the look of it, if an error did occur in init_stub_pte(), then the special mapping of STUB_CODE and STUB_DATA would not be installed, so this area would be invisible to munmap and exit, and w

Re: [uml-user] UML: Get's stuck

2014-03-16 Thread Richard Weinberger
Am 14.03.2014 15:57, schrieb Thomas Meyer: > Am Mittwoch, den 06.11.2013, 20:59 +0100 schrieb Richard Weinberger: >> Am 06.11.2013 20:52, schrieb Thomas Meyer: >>> Am Mittwoch, den 06.11.2013, 13:40 +0100 schrieb Richard Weinberger: >>>> On Tue, Nov 5, 2013 a

Re: [uml-user] UML: Get's stuck

2014-05-26 Thread Richard Weinberger
Am 20.05.2014 16:32, schrieb Jonathan Rudenberg: > On 2014-03-16, 11:09 AM, Richard Weinberger wrote: >> Am 14.03.2014 15:57, schrieb Thomas Meyer: >>> >>> only some processes get stuck. >>> >>> After enabling hung task detection in the kernel I see

Re: [uml-user] UML with PIN

2014-05-28 Thread Richard Weinberger
On Wed, May 28, 2014 at 10:39 PM, Nalli, Sanketh wrote: > Hey, > > Has anyone successfully tried running UML with PIN attached to it ? I have never used this tool. If you want to debug the UML kernel you need to teach your debugger that it has to ignore SIGSEGV. UML is using this signal for page

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-05-30 Thread Richard Weinberger
On Fri, May 30, 2014 at 3:22 AM, Nalli, Sanketh wrote: > Hi, > > So I start UML with the cmdline > > ./linux rootfstype=hostfs rw mem=1G init=/bin/bash > > > > When the bash shell comes up, I run my prog : ./my_prog > > > > 6173 pts/800:00:00 linux > > 6180 pts/800:00:00 linux > > 6181 pts

Re: [uml-user] how to find out which functions have been record in exception table?

2014-05-30 Thread Richard Weinberger
On Fri, May 30, 2014 at 9:29 AM, enjoy mindful wrote: > Hi, all > I build linux-3.12.6 uml with default configure. > > tar -jxf linux-3.12.6.tar.bz2 > cd linux-3.12.6 > make ARCH=um defconfig > make ARCH=um linux > > I'm confused about the exception table of the uml kernel. > > > $ objdump --ful

Re: [uml-user] how to find out which functions have been record in exception table?

2014-05-30 Thread Richard Weinberger
Am 30.05.2014 10:08, schrieb enjoy mindful: > Sorry. I know how to use addr2line. But it is not what I'm looking for. > > For example, with i386 kernel, it is easy to find c017e7a5 belong to > function get_user. > > x86]$ vi /hack/linux-3.12.6/Documentation/x86/exception-tables.txt >

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Richard Weinberger
On Mon, Jun 2, 2014 at 7:55 PM, Nalli, Sanketh wrote: > Thanks a lot. > > Do you know why my /proc is empty in the guest Did you mount procfs? > And why does the /proc/PID/exe NOT point to anything in > > The host ? (PID is the pid of a dummy program running in UML) Host PID != Guest PID > > >

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Richard Weinberger
Am 02.06.2014 20:53, schrieb Nalli, Sanketh: >>> And why does the /proc/PID/exe NOT point to anything in >>> >>> The host ? (PID is the pid of a dummy program running in UML) > >> Host PID != Guest PID > > Yes I know that. > That’s not what I meant. > > What I am trying to say is this : > 1. Wh

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Richard Weinberger
Am 02.06.2014 21:16, schrieb Nalli, Sanketh: > nalli@haris-crashnburn:~$ cd /proc/6188 > nalli@haris-crashnburn:/proc/6188$ ls -l exe What does "ls -la /proc/6188" show? Thanks, //richard -- Learn Graph Databases - Dow

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Richard Weinberger
Am 02.06.2014 22:11, schrieb Nalli, Sanketh: > Nothing..just lists all the contents including the hidden > Ones in a long listing fashion. Please show it verbatim. Thanks, //richard > -Original Message- > From: Richard Weinberger [mailto:rich...@nod.at] > Sent: Monday, J

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Richard Weinberger
n 2 13:07 syscall > dr-xr-xr-x 3 nalli nalli 0 Jun 2 13:07 task > -r--r--r-- 1 nalli nalli 0 Jun 2 13:07 wchan > nalli@haris-crashnburn:/proc/4755$ killall linux > nalli@haris-crashnburn:/proc/4755$ > > -Original Message- > From: Richard Weinberger [mailto:rich.

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-02 Thread Richard Weinberger
Am 02.06.2014 22:42, schrieb Nalli, Sanketh: > Nope, but here is some bootlog Hmm, I have no idea so far. Applications running under valgrind or other debuggers suffered from the issue that /proc/pid/exe is empty. > The host does not have skas3 patch > Do you think that is the problem ? Nope. S

Re: [uml-user] invalid /proc/PID/exe in UML processes

2014-06-03 Thread Richard Weinberger
Sanketh > Sent: Monday, June 02, 2014 6:29 PM > To: user-mode-linux-user@lists.sourceforge.net; 'Richard Weinberger' > Cc: Volos, Haris > Subject: RE: [uml-user] invalid /proc/PID/exe in UML processes > > Okay, so I've found a way around the invalid exe symlink. >

Re: [uml-user] How to run UML with valgrind and GDB?

2014-06-04 Thread Richard Weinberger
On Wed, Jun 4, 2014 at 10:26 AM, Real Name wrote: > Hi, > I tried to run UML (linux-3.12.6-x86) kernel with valgrind and GDB. > But valgrind always terminated because SIGSEGV signal. I searched with > google, just got some very old resource about run linux-2.6.xx with valgrind. To run UML in GD

Re: [uml-user] how to find out which functions have been record in exception table?

2014-06-04 Thread Richard Weinberger
Am 04.06.2014 15:39, schrieb Real Name: > On Fri, May 30, 2014 at 10:50:59AM +0200, Richard Weinberger wrote: > > I find the function through checking which object file has the _ex_table > section. > > tmp]$ cat find_ex_table.sh > #!/bin/bash > > (cd ~/uml/linux-3

Re: [uml-user] [PATCH] remove csum_partial_copy_generic_i386 to clean up exception table

2014-06-05 Thread Richard Weinberger
Am 05.06.2014 06:15, schrieb Honggang Li: > arch/x86/um/checksum_32.S had been copy & paste from x86. When build > x86 uml, csum_partial_copy_generic_i386 mess up the exception table. > In fact, exception table dose not work in uml kernel. Are you sure that exception tables do not work on UML? I s

Re: [uml-user] [PATCH] remove csum_partial_copy_generic_i386 to clean up exception table

2014-07-18 Thread Richard Weinberger
Am 18.07.2014 01:13, schrieb Real Name: > On Sat, Jun 28, 2014 at 12:06:28PM +0800, Real Name wrote: >> On Sat, Jun 21, 2014 at 03:28:52PM +0800, Real Name wrote: >>> On Thu, Jun 05, 2014 at 11:49:49PM +0200, Richard Weinberger wrote: >>>> Am 05.06.2014 06:15, schri

[uml-user] [PATCH 21/43] um: Use get_signal() signal_setup_done()

2014-07-21 Thread Richard Weinberger
From: Richard Weinberger Use the more generic functions get_signal() signal_setup_done() for signal delivery. Signed-off-by: Richard Weinberger --- arch/um/include/shared/frame_kern.h | 12 -- arch/um/kernel/signal.c | 27 +- arch/x86/um/signal.c

Re: [uml-user] [PATCH] uml/net_kern: Eliminate NULL test after alloc_bootmem

2014-07-23 Thread Richard Weinberger
Himangi, Am 19.07.2014 13:34, schrieb Himangi Saraogi: > alloc_bootmem and related functions never return NULL. Thus a NULL > test or memset after calls to these functions is unnecessary. > > The following Coccinelle semantic patch was used for making the change: > > @@ > expression E; > stateme

Re: [uml-user] Is the ARM9-architecture supported by UML?

2014-09-01 Thread Richard Weinberger
On Mon, Sep 1, 2014 at 12:19 AM, Clemens Eisserer wrote: > Hi, > > I would like to use a current version of debian on my Nokia-770 (linux > 2.6.16.27) in a chroot-environment, however everything past lenny (5.0, > unsupported since mid 2012) requires a newer kernel - which can't be easily > upgrad

Re: [uml-user] [PATCH] um: always use the same type for __syscall_stub_start

2014-10-11 Thread Richard Weinberger
Am 11.10.2014 um 13:29 schrieb Nicolas Iooss: > syscall_stub_start is declared with different types in C files: > > arch/um/kernel/physmem.c: extern int __syscall_stub_start; > arch/um/kernel/skas/mmu.c: extern int __syscall_stub_start; > arch/um/os-Linux/skas/mem.c: extern unsigned long __s

Re: [uml-user] [PATCH] um: always use the same type for __syscall_stub_start

2014-10-11 Thread Richard Weinberger
Am 11.10.2014 um 14:15 schrieb Nicolas Iooss: > 2014-10-11 13:42 GMT+02:00 Richard Weinberger: >> Am 11.10.2014 um 13:29 schrieb Nicolas Iooss: >>> syscall_stub_start is declared with different types in C files: >>> >>> arch/um/kernel/physmem.c: extern int

Re: [uml-user] [PATCH] um: Remove unused bp stack-frame pointer

2014-10-18 Thread Richard Weinberger
Am 18.10.2014 um 16:23 schrieb Manfred Schlaegl: > The pointer to bp stack-frame is no longer used. Removed it. Good catch! > This also removes a corresponding compiler-warning. Which warning exactly? Thanks, //richard ---

Re: [uml-user] [PATCH] um: Remove unused bp stack-frame pointer

2014-10-18 Thread Richard Weinberger
Am 18.10.2014 um 17:12 schrieb Manfred Schlaegl: > On 2014-10-18 16:42, Richard Weinberger wrote: >> Am 18.10.2014 um 16:23 schrieb Manfred Schlaegl: >>> The pointer to bp stack-frame is no longer used. Removed it. >> >> Good catch! > Thank you. > >> >

Re: [uml-user] [PATCH] um: Remove unused bp stack-frame pointer

2014-10-18 Thread Richard Weinberger
Am 18.10.2014 um 17:24 schrieb Manfred Schlaegl: > On 2014-10-18 17:19, Richard Weinberger wrote: >> Am 18.10.2014 um 17:12 schrieb Manfred Schlaegl: >>> On 2014-10-18 16:42, Richard Weinberger wrote: >>>> Am 18.10.2014 um 16:23 schrieb Manfred Schlaegl: >>>

Re: [uml-user] Run 2.6 kernel on 2.4 host

2015-02-09 Thread Richard Weinberger
On Sun, Feb 8, 2015 at 7:17 PM, Vladimir "Equidamoid" Shapranov wrote: > Hi, > > I need to run some recent software on a legacy server running 2.4.18 > kernel. Sadly it is not possible to rebuild the sotware to run natively > with that kernel (our code requires boost, boost requires gcc 4.5+, > gc

Re: [uml-user] start a xterm on con1 fails

2015-02-10 Thread Richard Weinberger
On Tue, Feb 10, 2015 at 3:53 PM, Julien Iguchi-Cartigny wrote: > Hello, > > I'm maintaining Netkit-NG, a set of scripts to boot and configure small > networks using UML machines for teaching purposes. > > > > This set of scripts is based on Netkit > >

Re: [uml-user] start a xterm on con1 fails

2015-02-15 Thread Richard Weinberger
On Thu, Feb 12, 2015 at 9:14 PM, Julien Iguchi-Cartigny wrote: > On 02/10/2015 09:27 PM, Richard Weinberger wrote: >> On Tue, Feb 10, 2015 at 3:53 PM, Julien Iguchi-Cartigny >> wrote: >>> Hello, >>> >>> I'm maintaining Netkit-NG, a set of scripts

Re: [uml-user] [PATCH 1/2] mm: Introducing arch_remap hook

2015-03-21 Thread Richard Weinberger
Am 20.03.2015 um 16:53 schrieb Laurent Dufour: > Some architecture would like to be triggered when a memory area is moved > through the mremap system call. > > This patch is introducing a new arch_remap mm hook which is placed in the > path of mremap, and is called before the old area is unmapped

Re: [uml-user] UML for mips

2015-05-13 Thread Richard Weinberger
On Mon, Apr 13, 2015 at 8:42 AM, kobabo kobabo wrote: > Hi, > > Is it possible to run UML on mips architecture? No. So far UML was only ported to Linux/x86. -- Thanks, //richard -- One dashboard for servers and applica

Re: [uml-user] [PATCH] um: kernel: ksyms: Export symbol syscall() for fixing modpost issue

2015-05-31 Thread Richard Weinberger
Am 04.10.2014 um 15:11 schrieb Chen Gang: > syscall() is implemented in libc.so/a (e.g. for glibc, in "syscall.o"), > so for normal ".o" files, it is undefined, neither can be found within > kernel wide, so will break modpost. > > Since ".o" files is OK, can simply export 'syscall' symbol, let mod

Re: [uml-user] [PATCH 3/3] um/os-Linux: Use char[] for syscall_stub declarations

2015-05-31 Thread Richard Weinberger
Am 12.10.2014 um 13:02 schrieb Nicolas Iooss: > When declaring __syscall_stub_start, use the same type in UML userspace > code as in arch/um/include/asm/sections.h. > > While at it, also declare batch_syscall_stub as char[]. > > Signed-off-by: Nicolas Iooss > --- > arch/um/os-Linux/skas/mem.c

Re: [uml-user] [PATCH] um: Fix a build error

2015-06-15 Thread Richard Weinberger
Am 15.06.2015 um 16:43 schrieb Firo Yang: > Gcc5 failed to build uml. > Update codes to test __GNUC__ with 5 will be happier. > > Signed-off-by: Firo Yang The issue got already addressed by patches: [PATCH 2/5] um: Stop abusing __KERNEL__ [PATCH 3/5] um: Remove copy&paste code from init.h They

Re: [uml-user] BTRFS : starting an uml using BTRFS gives

2015-06-15 Thread Richard Weinberger
On Sun, May 31, 2015 at 7:13 PM, Toralf Förster wrote: > I don't get it in moment, at a 64 bit Gentoo Linux (host is Linux t44 > 4.0.4-hardened-r3) I get : > > > $ /home/tfoerste/devel/linux/linux earlyprintk ubda=t44uml > ubdb=/mnt/ramdisk/t44uml_swap > eth0=tuntap,tap0,72:ef:3d:b6:67:0c,192.1

Re: [uml-user] Why it doesn't work on Ubuntu 14.04?

2015-06-21 Thread Richard Weinberger
On Sun, Jun 21, 2015 at 4:21 AM, Balaco Baco wrote: > I'm remotely accessing an Ubuntu 14.04.2 machine. And now I'm trying to > run an UML in it, but it is always giving me some errors, and it > finishes with segfaults or coredumps. > > For example, the end of output is: > > ==

Re: [uml-user] Why it doesn't work on Ubuntu 14.04?

2015-06-24 Thread Richard Weinberger
On Tue, Jun 23, 2015 at 1:41 PM, Balaco Baco wrote: > Before, I tried with 32b and 64b downloaded kernels. Both gave the same > error. I have even compiled the kernel, imagining some weird problems of > config or the lastest Ubuntu "tricks an and trouble" I have been seeing > for some time! No sol

Re: [uml-user] per-instance tmpfs backed memory file

2015-08-15 Thread Richard Weinberger
On Fri, Aug 14, 2015 at 8:35 PM, Jon Foster wrote: > I'm kind of new to the UML thing. I've read that every instance of UML > creates a temp file that represents the RAM of that instance. Its > obvious that putting that in a "tmpfs" would be very good, but I don't > want to mount a tmpfs on "/tmp"

Re: [uml-user] UML randomly hanging

2015-08-15 Thread Richard Weinberger
On Fri, Aug 14, 2015 at 8:25 PM, Jon Foster wrote: > I'm using a stock Debian 7 AMD-64 SMP install on a 8 core Intel Xeon > server, with 24GB of RAM. I'm using Debian's supplied UML kernel and > tools. "uname -a", from within the UML returns: "Linux lamp1 3.2.54 #2 > Thu Feb 6 22:33:28 UTC 2014 x8

Re: [uml-user] 64-bit UML with 32-bit root

2015-09-12 Thread Richard Weinberger
On Tue, Sep 1, 2015 at 8:32 AM, Antoine Martin wrote: > On 27/08/15 20:14, Mark Morgan Lloyd wrote: >> The (unofficial?) FAQ at http://uml.devloop.org.uk/faq.html implies that >> it is possible to build UML on a 64-bit system to run a 32-bit guest. > You can build a 32-bit *kernel* from a 64-bit h

Re: [uml-user] Creating Wheezy filesystem from scratch

2015-10-09 Thread Richard Weinberger
On Fri, Oct 9, 2015 at 5:11 PM, Ricardo Nunes wrote: > I'm trying to create a Debian Wheezy filesystem to use in User Mode Linux. > right now I'm following this tutorial. The commands after # Remove the other > terminal events don't work here and I can't find the equivalent operations > in Wheezy.

Re: [uml-user] UML <-> host communication

2015-10-12 Thread Richard Weinberger
On Mon, Oct 12, 2015 at 6:21 PM, Ricardo Nunes wrote: > Right now I'm just finding for a way to make it work, so slow communications > will also be acceptable for now. This is for device emulation, so a lot of > memory reads and writes. Better slower then non existent. > > If I use a tuntap, a soc

Re: [uml-user] IRQ support?

2015-10-22 Thread Richard Weinberger
Hi! CC'ing -devel list. On Thu, Oct 22, 2015 at 1:29 PM, Ricardo Nunes wrote: > I'm trying to use a real hardware driver inside UML and I,ve come to the IRQ > suppor part. How do you map the hardware into UML? > Right now it's failing on request_irq call, so my question is if there is > any ma

Re: [uml-user] Any reason for a kernel thread not run after calling schedule()?

2015-10-28 Thread Richard Weinberger
On Wed, Oct 28, 2015 at 5:36 PM, Ricardo Nunes wrote: > Hi, > > I'm making a UML driver to adapt a real driver to UML and hardware > emulation. > > In this case I have a kernel thread trying to read a register, which is now > done through a netlink channel to a userspace application (asynchronous

Re: [uml-user] [PATCH v2] um: net: replace GFP_KERNEL with GFP_ATOMIC when spinlock is held

2015-10-29 Thread Richard Weinberger
Am 29.10.2015 um 08:27 schrieb Saurabh Sengar: > replace GFP_KERNEL with GFP_ATOMIC while spinlock is held, > as code while holding a spinlock should be atomic. > GFP_KERNEL may sleep and can cause deadlock, > where as GFP_ATOMIC may fail but certainly avoids deadlock As UML does not support SMP n

Re: [uml-user] Possible ways to execute

2015-10-29 Thread Richard Weinberger
On Thu, Oct 29, 2015 at 12:28 PM, Balaco Baco wrote: > A few weeks ago, after more struggling than I expected, I was abble to > run UML. I recompiled the linux kernel from source; I did not use the > root fs files available in the website, and found a Debian that seems to > suit my needs. > > But

Re: [uml-user] Possible ways to execute

2015-10-29 Thread Richard Weinberger
Am 29.10.2015 um 14:14 schrieb Balaco Baco: > Really!? I wish I had read that somewhere. Well, just retried with > another option that is there for me. It is one of the cases I detailed > before that end with error. > > The full execution, right now, is: > > == > $./linux-

Re: [uml-user] Possible ways to execute

2015-10-29 Thread Richard Weinberger
On Thu, Oct 29, 2015 at 2:21 PM, Balaco Baco wrote: > > On Thu, Oct 29, 2015, at 10:18, Richard Weinberger wrote: >> Am 29.10.2015 um 14:14 schrieb Balaco Baco: >> > Really!? I wish I had read that somewhere. Well, just retried with >> > another option that is there

Re: [uml-user] [PATCH v3] um: net: replace GFP_KERNEL with GFP_ATOMIC when spinlock is held

2015-10-29 Thread Richard Weinberger
Am 29.10.2015 um 15:50 schrieb Joe Perches: > On Thu, 2015-10-29 at 14:46 +0530, Saurabh Sengar wrote: >> replace GFP_KERNEL with GFP_ATOMIC while spinlock is held, >> as code while holding a spinlock should be atomic. >> GFP_KERNEL may sleep and can cause deadlock, >> where as GFP_ATOMIC may fail

Re: [uml-user] Possible ways to execute

2015-10-29 Thread Richard Weinberger
On Thu, Oct 29, 2015 at 4:26 PM, Balaco Baco wrote: > What is your definition of recent and your definition of supported? This > may be useful for many other users of UML I guess. The fact that the > kernels offered in the UML website didn't work, and then I tried to > compile from source should b

Re: [uml-user] Website is in need of many small changes and updates?

2015-10-29 Thread Richard Weinberger
On Thu, Oct 29, 2015 at 8:46 PM, Balaco Baco wrote: >> > > >> > Really!? I wish I had read that somewhere. Well, just retried with >> > > >> > another option that is there for me. It is one of the cases I >> > > >> > detailed >> > > >> > before that end with error. >> > > >> > >> > > >> >> > > >>

Re: [uml-user] Website is in need of many small changes and updates?

2015-10-30 Thread Richard Weinberger
On Fri, Oct 30, 2015 at 7:29 AM, Balaco Baco wrote: > > On Thu, Oct 29, 2015, at 16:55, Richard Weinberger wrote: >> On Thu, Oct 29, 2015 at 8:46 PM, Balaco Baco wrote: >> >> > > >> > Really!? I wish I had read that somewhere. Well, just retried >> &

Re: [uml-user] Building from source problems and possibilities

2015-10-30 Thread Richard Weinberger
On Fri, Oct 30, 2015 at 5:02 PM, Balaco Baco wrote: > I restarted, now I've got another kernel source (2.6.32.68), knowing > that it may be old, but it's the "newer old" for 2.6, and I hoped that > it would work. Are you an archeologist? ;-) Is there a particular reason why you can't use somethin

Re: [uml-user] Building from source problems and possibilities

2015-10-30 Thread Richard Weinberger
On Fri, Oct 30, 2015 at 8:30 PM, Richard Weinberger wrote: > On Fri, Oct 30, 2015 at 5:02 PM, Balaco Baco wrote: >> I restarted, now I've got another kernel source (2.6.32.68), knowing >> that it may be old, but it's the "newer old" for 2.6, and I hoped th

Re: [uml-user] [PATCH v4] um: net: replace GFP_KERNEL with GFP_ATOMIC when spinlock is held

2015-11-06 Thread Richard Weinberger
Am 29.10.2015 um 16:30 schrieb Saurabh Sengar: > since GFP_KERNEL with GFP_ATOMIC while spinlock is held, > as code while holding a spinlock should be atomic. > GFP_KERNEL may sleep and can cause deadlock, > where as GFP_ATOMIC may fail but certainly avoids deadlockdex > f70dd54..d898f6c 100644 >

Re: [uml-user] Detail with one config warning

2015-11-11 Thread Richard Weinberger
On Wed, Nov 11, 2015 at 5:13 PM, Balaco Baco wrote: > There is one details that did not work for me, but it was easy to "fix" > (quotes because I'm not sure it is the best fix). But someone else may > find it useful. > > Detailed steps so everyone can compare doing it, if needed: > >> 1. get one

Re: [uml-user] Detail with one config warning

2015-11-11 Thread Richard Weinberger
On Wed, Nov 11, 2015 at 6:04 PM, Balaco Baco wrote: > On Wed, Nov 11, 2015, at 13:39, Richard Weinberger wrote: >> On Wed, Nov 11, 2015 at 5:13 PM, Balaco Baco wrote: >> > There is one details that did not work for me, but it was easy to "fix" >> > (quotes be

Re: [uml-user] Detail with one config warning

2015-11-11 Thread Richard Weinberger
Am 11.11.2015 um 18:21 schrieb Balaco Baco: > On Wed, Nov 11, 2015, at 14:07, Richard Weinberger wrote: >> On Wed, Nov 11, 2015 at 6:04 PM, Balaco Baco wrote: >>> On Wed, Nov 11, 2015, at 13:39, Richard Weinberger wrote: >>>> On Wed, Nov 11, 2015 at 5:13 PM, Balaco B

Re: [uml-user] Detail with one config warning

2015-11-11 Thread Richard Weinberger
Am 11.11.2015 um 18:57 schrieb Balaco Baco: > Since I have no root access in the host machine, I must use 'slirp'. > Right? Now I'll install it (https://en.wikipedia.org/wiki/Slirp) from > source and pass the full path to UML in the command line, e.g.: Yes. > eth0=slirp,,/home/me/bin/ Documentat

Re: [uml-user] Detail with one config warning

2015-11-12 Thread Richard Weinberger
Am 12.11.2015 um 02:57 schrieb Balaco Baco: > On Wed, Nov 11, 2015, at 17:34, Richard Weinberger wrote: >> Am 11.11.2015 um 18:57 schrieb Balaco Baco: >>> Since I have no root access in the host machine, I must use 'slirp'. >>> Right? Now I'll install it

Re: [uml-user] Detail with one config warning

2015-11-13 Thread Richard Weinberger
Am 12.11.2015 um 14:22 schrieb Balaco Baco: > > On Thu, Nov 12, 2015, at 10:00, Richard Weinberger wrote: >> Am 12.11.2015 um 02:57 schrieb Balaco Baco: >>> On Wed, Nov 11, 2015, at 17:34, Richard Weinberger wrote: >>>> Am 11.11.2015 um 18:57 schrieb Balaco Baco:

Re: [uml-user] Detail with one config warning

2015-11-23 Thread Richard Weinberger
Am 22.11.2015 um 16:39 schrieb Balaco Baco: > > On Fri, Nov 13, 2015, at 18:15, Richard Weinberger wrote: >> Am 12.11.2015 um 14:22 schrieb Balaco Baco: >>> On Thu, Nov 12, 2015, at 10:00, Richard Weinberger wrote: >>>> Am 12.11.2015 um 02:57 schrieb Balaco Baco:

Re: [uml-user] Detail with one config warning

2015-11-23 Thread Richard Weinberger
Am 23.11.2015 um 20:04 schrieb Balaco Baco: > On Mon, Nov 23, 2015, at 13:35, Richard Weinberger wrote: >> Am 22.11.2015 um 16:39 schrieb Balaco Baco: >>>>>>>>> Since I have no root access in the host machine, I must use 'slirp'. >>>>>&

Re: [uml-user] Detail with one config warning

2015-11-23 Thread Richard Weinberger
Am 23.11.2015 um 21:04 schrieb Balaco Baco: > On Mon, Nov 23, 2015, at 16:38, Richard Weinberger wrote: >> Am 23.11.2015 um 20:04 schrieb Balaco Baco: >>> On Mon, Nov 23, 2015, at 13:35, Richard Weinberger wrote: >>>> Am 22.11.2015 um 16:39 schrieb Balaco Baco: &g

Re: [uml-user] Detail with one config warning

2015-11-23 Thread Richard Weinberger
Am 23.11.2015 um 21:31 schrieb Balaco Baco: > On Mon, Nov 23, 2015, at 17:07, Richard Weinberger wrote: >> Am 23.11.2015 um 21:04 schrieb Balaco Baco: >>> On Mon, Nov 23, 2015, at 16:38, Richard Weinberger wrote: >>>> Am 23.11.2015 um 20:04 schrieb Balaco Baco: >&g

Re: [uml-user] Detail with one config warning

2015-11-23 Thread Richard Weinberger
Am 23.11.2015 um 21:48 schrieb Balaco Baco: > Please be clearer. > > You said "you can also use the Internet". But after that you repeat "As > I wrote ICMP is not supported on SLIRP." So what do I have here? What > are the practical ways to use the Internet within UML machine? The > things want to

Re: [uml-user] Detail with one config warning

2015-11-23 Thread Richard Weinberger
Am 23.11.2015 um 21:55 schrieb Balaco Baco: > On Mon, Nov 23, 2015, at 17:50, Richard Weinberger wrote: >> Am 23.11.2015 um 21:48 schrieb Balaco Baco: >>> Please be clearer. >>> >>> You said "you can also use the Internet". But after that you repeat

Re: [uml-user] Detail with one config warning

2015-11-23 Thread Richard Weinberger
Am 23.11.2015 um 22:31 schrieb Balaco Baco: > I skimmed though it. To use ping to test if Internet connections are > working or not is one the most basic things everybody does and learn. > If, in some exotic setup (like UML's) makes this different, it should > say so, clearly (and not "indirectly o

  1   2   >