Re: [uml-devel] UML: Access to a host device from UML

2019-02-20 Thread Anton Ivanov
I do not think that this is possible without an additional device in the UML itself. In fact, if you want two processes in two different UML instances to communicate in-between themselves you should aim at a UML device. The kernel device is probably suprlus to requirements as the two UML ins

[uml-devel] UML: Access to a host device from UML

2019-02-20 Thread Pablo Pessolani
Hi: I wrote an IPC mechanism as a Linux kernel module. The access to their services is through a dummy character device called /dev/dvk using ioctl(). Therefore, only open(), ioctl() and close() system calls are used. How can a process running within an UML Guest access the /dev/d

Re: [uml-devel] [UML] Question about arch/x86/um/vdso/vdso-syms.lds

2018-05-08 Thread Richard Weinberger
Masahiro, Am Mittwoch, 9. Mai 2018, 05:36:18 CEST schrieb Masahiro Yamada: > Hi Richard, > > > Please let me ask a question about vdso-syms.lds > under arch/x86/um/vdso/. > > This file exists since: > > commit f1c2bb8b9964ed31de988910f8b1cfb586d30091 > Author: Richard Weinberger > Date: Mon

Re: [uml-devel] UML hangs with hrtimer test module

2018-03-29 Thread Richard Weinberger
Am Donnerstag, 29. März 2018, 22:20:47 CEST schrieb Joel Fernandes: > Thanks a lot! I am wondering why the same compiler works when running > the test for a regular image. Maybe different compiler flags. Anyway > good to learn this. > > Also one more slightly OT question, why is UML only doing UP

Re: [uml-devel] UML hangs with hrtimer test module

2018-03-29 Thread Joel Fernandes
On Wed, Mar 28, 2018 at 11:04 PM, Geert Uytterhoeven wrote: > On Thu, Mar 29, 2018 at 12:35 AM, Richard Weinberger wrote: >> Am Donnerstag, 29. März 2018, 00:19:39 CEST schrieb Joel Fernandes: >>> On Wed, Mar 28, 2018 at 6:19 AM, Richard Weinberger wrote: >>> > Am Mittwoch, 28. März 2018, 15:11:

Re: [uml-devel] UML hangs with hrtimer test module

2018-03-28 Thread Geert Uytterhoeven
On Thu, Mar 29, 2018 at 12:35 AM, Richard Weinberger wrote: > Am Donnerstag, 29. März 2018, 00:19:39 CEST schrieb Joel Fernandes: >> On Wed, Mar 28, 2018 at 6:19 AM, Richard Weinberger wrote: >> > Am Mittwoch, 28. März 2018, 15:11:29 CEST schrieb Geert Uytterhoeven: >> >> On Wed, Mar 28, 2018 at

Re: [uml-devel] UML hangs with hrtimer test module

2018-03-28 Thread Richard Weinberger
Am Donnerstag, 29. März 2018, 00:19:39 CEST schrieb Joel Fernandes: > Thanks for the quick reply. > > On Wed, Mar 28, 2018 at 6:19 AM, Richard Weinberger wrote: > > Am Mittwoch, 28. März 2018, 15:11:29 CEST schrieb Geert Uytterhoeven: > >> On Wed, Mar 28, 2018 at 12:28 PM, Joel Fernandes > > wro

Re: [uml-devel] UML hangs with hrtimer test module

2018-03-28 Thread Joel Fernandes
Thanks for the quick reply. On Wed, Mar 28, 2018 at 6:19 AM, Richard Weinberger wrote: > Am Mittwoch, 28. März 2018, 15:11:29 CEST schrieb Geert Uytterhoeven: >> On Wed, Mar 28, 2018 at 12:28 PM, Joel Fernandes > wrote: >> > while(release_now == 0); >> >> while (release_now == 0) >>

Re: [uml-devel] UML hangs with hrtimer test module

2018-03-28 Thread Richard Weinberger
Am Mittwoch, 28. März 2018, 15:11:29 CEST schrieb Geert Uytterhoeven: > On Wed, Mar 28, 2018 at 12:28 PM, Joel Fernandes wrote: > > while(release_now == 0); > > while (release_now == 0) > cpu_relax(); Not sure whether a cpu_relax() fixes the problem. I guess the root of the prob

Re: [uml-devel] UML hangs with hrtimer test module

2018-03-28 Thread Geert Uytterhoeven
On Wed, Mar 28, 2018 at 12:28 PM, Joel Fernandes wrote: > while(release_now == 0); while (release_now == 0) cpu_relax(); Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversatio

Re: [uml-devel] UML hangs with hrtimer test module

2018-03-28 Thread Richard Weinberger
Am Mittwoch, 28. März 2018, 12:28:02 CEST schrieb Joel Fernandes: > Hi, > > I wrote a kernel module to play with hrtimer subsystem and it hangs > with UML, Any ideas on why it may be hanging? It doesn't hang on any > of my other machines. Hopefully I'm not doing something stupid, but I > don't thi

[uml-devel] UML hangs with hrtimer test module

2018-03-28 Thread Joel Fernandes
Hi, I wrote a kernel module to play with hrtimer subsystem and it hangs with UML, Any ideas on why it may be hanging? It doesn't hang on any of my other machines. Hopefully I'm not doing something stupid, but I don't think I am.. It appears the timer handler does fire. However, the UML process is

Re: [uml-devel] [uml-user] UML on WSL

2017-05-09 Thread Richard Weinberger
Thomas, Am 09.05.2017 um 19:25 schrieb Thomas Meyer: >> IOW we write to 0xdeadbeef, catch the fault and fix it. > > I get this: > thomas@DESKTOP-DQBDJ0U:/mnt/c/Users/thomas/VmShare$ ./segtest > SIGSEGV at 0x0, fixing up > SIGSEGV at 0x0, fixing up > SIGSEGV at 0x0, fixing up > SIGSEGV at 0x0, fix

Re: [uml-devel] [uml-user] UML on WSL

2017-05-09 Thread Thomas Meyer
Zitat von Richard Weinberger : > Thomas, > > Am 09.05.2017 um 10:15 schrieb Thomas Meyer: >> attached patch work correctly under Linux. But no change under WSL. >> As stated in the relevant GH issue, there seems to be far more road >> blockers to make UML work under WSL. >> >> With you patch

Re: [uml-devel] [uml-user] UML on WSL

2017-05-09 Thread Richard Weinberger
Thomas, Am 09.05.2017 um 10:15 schrieb Thomas Meyer: > attached patch work correctly under Linux. But no change under WSL. As stated > in the relevant GH issue, there seems to be far more road blockers to make > UML work under WSL. > > With you patch I get under WSL: > > thomas@DESKTOP-DQBDJ0U

Re: [uml-devel] [uml-user] UML on WSL

2017-05-09 Thread Thomas Meyer
Zitat von Richard Weinberger : > Thomas, > > Can you please give the attached patch a try? Hi, attached patch work correctly under Linux. But no change under WSL. As stated in the relevant GH issue, there seems to be far more road blockers to make UML work under WSL. With you patch I get u

Re: [uml-devel] [uml-user] UML on WSL

2017-05-08 Thread Richard Weinberger
Thomas, Can you please give the attached patch a try? Thanks, //richard >From b64c967e3960eff33e96f7dcff261635fffeb504 Mon Sep 17 00:00:00 2001 From: Richard Weinberger Date: Mon, 8 May 2017 21:43:27 +0200 Subject: [PATCH] um: Drop PTRACE_OLDSETOPTIONS usage IMHO in 2017 can assume that nobody

Re: [uml-devel] [uml-user] UML on WSL

2017-05-08 Thread Anton Ivanov
So far it is late 2.6. The high res timer subsystem settled fully somewhere circa 2.6.10 if memory serves me right. One of those lovely kernels which had VM collapse bugs :) I am finishing testing the vector IO drivers and epoll irq controller for them you will need 3.0 onwards In fact, I have

Re: [uml-devel] [uml-user] UML on WSL

2017-05-08 Thread Richard Weinberger
Thomas, Am 08.05.2017 um 18:09 schrieb Thomas Meyer: > Or asked he other way around: > > Is somewhere documented what's the minimum host kernel version that a UML > kernel will run on? > > E.g.: > building a UML kernel from 4.11 will need a host kernel version 2.6.18 with > features x, y and z

Re: [uml-devel] [uml-user] UML on WSL

2017-05-08 Thread Thomas Meyer
> Am 08.05.2017 um 17:40 schrieb Thomas Meyer : > > >> Am 08.05.2017 um 17:35 schrieb Richard Weinberger : >> >> Thomas, >> >> Am 08.05.2017 um 17:32 schrieb Thomas Meyer: We could figure how to report issues to WSL, create self-hosting unit tests and ask them to add/fix these

Re: [uml-devel] [uml-user] UML on WSL

2017-05-08 Thread Richard Weinberger
Thomas, Am 08.05.2017 um 17:40 schrieb Thomas Meyer: > " > Also, for a little context, the /only/software I can find /on the planet/ > that cares is User Mode Linux. Unless someone tries to run some statically > linked |strace| or > maybe |gdb| binary from the 2.4 era, this will simply never be

Re: [uml-devel] [uml-user] UML on WSL

2017-05-08 Thread Thomas Meyer
> Am 08.05.2017 um 17:35 schrieb Richard Weinberger : > > Thomas, > > Am 08.05.2017 um 17:32 schrieb Thomas Meyer: >>> We could figure how to report issues to WSL, create self-hosting unit tests >>> and ask them to add/fix >>> these features. >> >> Turns out there was already a bug report by s

Re: [uml-devel] [uml-user] UML on WSL

2017-05-08 Thread Richard Weinberger
Thomas, Am 08.05.2017 um 17:32 schrieb Thomas Meyer: >> We could figure how to report issues to WSL, create self-hosting unit tests >> and ask them to add/fix >> these features. > > Turns out there was already a bug report by somebody about missing UML > support in WSL: > > https://github.com/

Re: [uml-devel] [uml-user] UML on WSL

2017-05-08 Thread Thomas Meyer
> Am 08.05.2017 um 17:05 schrieb Richard Weinberger : > > Thomas, > >> Am 08.05.2017 um 17:02 schrieb Thomas Meyer: >> Sadly, UML executable bails out very early. it Looks like WSL is missing >> some PTRACE stuff: >> >> thomas@DESKTOP-DQBDJ0U:/mnt/c/Users/thomas/Downloads$ ./linux >> Core dump

Re: [uml-devel] [uml-user] UML on WSL

2017-05-08 Thread Richard Weinberger
Thomas, Am 08.05.2017 um 17:02 schrieb Thomas Meyer: > Sadly, UML executable bails out very early. it Looks like WSL is missing some > PTRACE stuff: > > thomas@DESKTOP-DQBDJ0U:/mnt/c/Users/thomas/Downloads$ ./linux > Core dump limits : > soft - NONE > hard - NONE > Checking that

Re: [uml-devel] [uml-user] UML on WSL

2017-05-08 Thread Thomas Meyer
Zitat von Richard Weinberger : > Thomas, > > On Sun, May 7, 2017 at 1:44 PM, Thomas Meyer wrote: >> Hi, Hi, >> >> Did anybody try to run UML on the new Windows 10 subsystem for Linux? I >> wonder what missing functions may hinder to run UML on WSL? > > No idea. > Can you try? I don't have acce

Re: [uml-devel] [uml-user] UML on WSL

2017-05-07 Thread Richard Weinberger
Thomas, On Sun, May 7, 2017 at 1:44 PM, Thomas Meyer wrote: > Hi, > > Did anybody try to run UML on the new Windows 10 subsystem for Linux? I > wonder what missing functions may hinder to run UML on WSL? No idea. Can you try? I don't have access to a Windows 10 system right now where I could tes

Re: [uml-devel] [uml-user] [PATCH] um: Fix _print_addr()

2017-05-03 Thread Richard Weinberger
On Sun, Dec 25, 2016 at 11:11 PM, Richard Weinberger wrote: > Recent changes to printk() broke UML's stack trace > output. Kill the root of the problem by using a single > printk() statement. > > Signed-off-by: Richard Weinberger > --- > arch/um/kernel/sysrq.c | 6 ++ > 1 file changed, 2 ins

Re: [uml-devel] UML regression with latest RC 4.11-rc2

2017-03-17 Thread Richard Weinberger
Anton, Am 17.03.2017 um 18:44 schrieb Anton Ivanov: >> But you have to enable VM debugging to see it. > > I have most debugging enabled to make sure I do not introduce any > re-entrancy in the IRQ handlers and/or have any allocations of the wrong > type where they do not belong. > > We should pr

Re: [uml-devel] UML regression with latest RC 4.11-rc2

2017-03-17 Thread Anton Ivanov
On 17/03/17 17:33, Richard Weinberger wrote: > Am 17.03.2017 um 18:04 schrieb Anton Ivanov: >> On 17/03/17 16:56, Richard Weinberger wrote: >>> Anton, >>> >>> On Fri, Mar 17, 2017 at 8:51 AM, Anton Ivanov >>> wrote: Hi list, hi Richard There is an extra check in mm/mmap.c which now

Re: [uml-devel] UML regression with latest RC 4.11-rc2

2017-03-17 Thread Richard Weinberger
Am 17.03.2017 um 18:04 schrieb Anton Ivanov: > On 17/03/17 16:56, Richard Weinberger wrote: >> Anton, >> >> On Fri, Mar 17, 2017 at 8:51 AM, Anton Ivanov >> wrote: >>> Hi list, hi Richard >>> >>> There is an extra check in mm/mmap.c which now throws a WARN on every >>> page in making UML unusable

Re: [uml-devel] UML regression with latest RC 4.11-rc2

2017-03-17 Thread Anton Ivanov
On 17/03/17 17:04, Anton Ivanov wrote: > On 17/03/17 16:56, Richard Weinberger wrote: >> Anton, >> >> On Fri, Mar 17, 2017 at 8:51 AM, Anton Ivanov >> wrote: >>> Hi list, hi Richard >>> >>> There is an extra check in mm/mmap.c which now throws a WARN on every >>> page in making UML unusable with t

Re: [uml-devel] UML regression with latest RC 4.11-rc2

2017-03-17 Thread Richard Weinberger
Anton, Am 17.03.2017 um 18:04 schrieb Anton Ivanov: > On 17/03/17 16:56, Richard Weinberger wrote: >> Anton, >> >> On Fri, Mar 17, 2017 at 8:51 AM, Anton Ivanov >> wrote: >>> Hi list, hi Richard >>> >>> There is an extra check in mm/mmap.c which now throws a WARN on every >>> page in making UML u

Re: [uml-devel] UML regression with latest RC 4.11-rc2

2017-03-17 Thread Anton Ivanov
On 17/03/17 16:56, Richard Weinberger wrote: > Anton, > > On Fri, Mar 17, 2017 at 8:51 AM, Anton Ivanov > wrote: >> Hi list, hi Richard >> >> There is an extra check in mm/mmap.c which now throws a WARN on every >> page in making UML unusable with the latest 4.11-rc2 > Which WARN? Can you find the

Re: [uml-devel] UML regression with latest RC 4.11-rc2

2017-03-17 Thread Richard Weinberger
Anton, On Fri, Mar 17, 2017 at 8:51 AM, Anton Ivanov wrote: > Hi list, hi Richard > > There is an extra check in mm/mmap.c which now throws a WARN on every > page in making UML unusable with the latest 4.11-rc2 Which WARN? Can you find the offending commit? -- Thanks, //richard --

[uml-devel] UML regression with latest RC 4.11-rc2

2017-03-17 Thread Anton Ivanov
Hi list, hi Richard There is an extra check in mm/mmap.c which now throws a WARN on every page in making UML unusable with the latest 4.11-rc2 A. -- Check out the vibrant tech community on one of the world's most engag

Re: [uml-devel] [uml-user] Archive of UML mailing list

2017-01-19 Thread Richard Weinberger
On Wed, Jan 4, 2017 at 2:54 PM, Enjoy Mindful wrote: > Hi, > > https://marc.info/?l=user-mode-linux-devel > https://marc.info/?l=user-mode-linux-user > https://sourceforge.net/p/user-mode-linux/mailman/user-mode-linux-user/ > > I'm looking for archive tar balls for user-mode-linux-devel and > user

Re: [uml-devel] uml does not work with initrd=file

2017-01-15 Thread sgerwk
On Sun, 15 Jan 2017, Thomas Meyer wrote: Am 15. Januar 2017 13:16:22 MEZ schrieb [email protected]: Hi, there seems to be a problem with usermode linux when started with an initial ramdisk (argument initrd=file). Here is what happens: Locating the bottom of

Re: [uml-devel] uml does not work with initrd=file

2017-01-15 Thread Thomas Meyer
Am 15. Januar 2017 13:16:22 MEZ schrieb [email protected]: >Hi, > >there seems to be a problem with usermode linux when started >with an initial ramdisk (argument initrd=file). Here is what >happens: > > > >Locating the bottom of the address space ... 0x1000 >Locati

[uml-devel] uml does not work with initrd=file

2017-01-15 Thread sgerwk
Hi, there seems to be a problem with usermode linux when started with an initial ramdisk (argument initrd=file). Here is what happens: Locating the bottom of the address space ... 0x1000 Locating the top of the address space ... Checking that ptrace can chang

Re: [uml-devel] UML build failure on 4.7

2016-09-05 Thread Ritesh Raj Sarraf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Disabling drivers/nvdimm (seen only on x86_64 architecture) solved the problem. On Mon, 2016-09-05 at 18:55 +0530, Ritesh Raj Sarraf wrote: > Hi, > > I'm working on refreshing UML to version 4.7 in Debian. > > The linux source tarball we use is fr

[uml-devel] UML build failure on 4.7

2016-09-05 Thread Ritesh Raj Sarraf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi, I'm working on refreshing UML to version 4.7 in Debian. The linux source tarball we use is from Debian, which is mostly the stock kernel. The build failure I've run into is:   CC [M]  lib/ts_fsm.o   CC [M]  lib/lru_cache.o   CC [M]  lib/cordi

Re: [uml-devel] UML tools anywhere?

2016-09-03 Thread Mattia Dongili
On Fri, Aug 26, 2016 at 02:35:55PM -0500, Rob Landley wrote: > On 08/17/2016 12:02 PM, Jeff Dike wrote: > > Hi Richard, > > > >> But let's ask Jeff first. > >> Jeff, do you have a more recent SCM repo of uml-utilities? > > > > No, I don't believe so. Everything I have is out there somewhere. > >

Re: [uml-devel] UML tools anywhere?

2016-09-03 Thread Mattia Dongili
On Tue, Aug 16, 2016 at 06:53:34AM -0700, Mattia Dongili wrote: > On Mon, Aug 15, 2016 at 10:01:11PM +0200, Richard Weinberger wrote: ... > > Mattia, do you volunteer? :-) > > Sure, sounds good to me. For the record, I'll follow-up soon. I'm waiting for approval from my employer to make sure ther

Re: [uml-devel] UML tools anywhere?

2016-08-26 Thread Rob Landley
On 08/17/2016 12:02 PM, Jeff Dike wrote: > Hi Richard, > >> But let's ask Jeff first. >> Jeff, do you have a more recent SCM repo of uml-utilities? > > No, I don't believe so. Everything I have is out there somewhere. > You might check with Matt Zimmerman - he might have been doing some > mainte

Re: [uml-devel] UML tools anywhere?

2016-08-17 Thread Jeff Dike
Hi Richard, > But let's ask Jeff first. > Jeff, do you have a more recent SCM repo of uml-utilities? No, I don't believe so. Everything I have is out there somewhere. You might check with Matt Zimmerman - he might have been doing some maintenance on them. Jeff -

Re: [uml-devel] UML tools anywhere?

2016-08-16 Thread Mattia Dongili
On Mon, Aug 15, 2016 at 10:01:11PM +0200, Richard Weinberger wrote: > On 28.07.2016 16:32, Mattia Dongili wrote: > >> This is now: > >> https://github.com/malattia/uml-utilities > >> > >>> The CVS repo on sourceforge is out of date though, it's missing a good > >>> chunk of code. The last commit is

Re: [uml-devel] UML tools anywhere?

2016-08-15 Thread Richard Weinberger
On 28.07.2016 16:32, Mattia Dongili wrote: >> This is now: >> https://github.com/malattia/uml-utilities >> >>> The CVS repo on sourceforge is out of date though, it's missing a good >>> chunk of code. The last commit is from 2004 or so. >>> >>> If you don't have the remainder of the code history I

Re: [uml-devel] UML tools anywhere?

2016-07-28 Thread Mattia Dongili
On Thu, Jul 14, 2016 at 08:17:09AM -0700, Mattia Dongili wrote: > On Thu, Jul 14, 2016 at 08:07:32AM -0700, Mattia Dongili wrote: > > On Thu, Jul 14, 2016 at 10:33:33AM +0200, Richard Weinberger wrote: > > > > > > > > > Am 14.07.2016 um 05:08 schrieb Mattia Dongili: > > ... > > > > I can certainl

Re: [uml-devel] UML tools anywhere?

2016-07-14 Thread Mattia Dongili
On Thu, Jul 14, 2016 at 08:07:32AM -0700, Mattia Dongili wrote: > On Thu, Jul 14, 2016 at 10:33:33AM +0200, Richard Weinberger wrote: > > > > > > Am 14.07.2016 um 05:08 schrieb Mattia Dongili: > ... > > > I can certainly help with that, since I would like to do that work > > > anyway in order to

Re: [uml-devel] UML tools anywhere?

2016-07-14 Thread Mattia Dongili
On Thu, Jul 14, 2016 at 10:33:33AM +0200, Richard Weinberger wrote: > > > Am 14.07.2016 um 05:08 schrieb Mattia Dongili: ... > > I can certainly help with that, since I would like to do that work > > anyway in order to refresh the debian package. If you want to stuff the > > code in a git reposit

Re: [uml-devel] UML tools anywhere?

2016-07-14 Thread Richard Weinberger
Am 14.07.2016 um 05:08 schrieb Mattia Dongili: > On Wed, Jul 13, 2016 at 11:11:03PM +0200, Richard Weinberger wrote: >> Hi! >> >> On Wed, Jul 13, 2016 at 5:02 AM, Mattia Dongili wrote: >>> Hi, >>> >>> Does anybody knows if there is any newer version of the tools package >>> (the one with tunctl,

Re: [uml-devel] UML tools anywhere?

2016-07-13 Thread Mattia Dongili
On Wed, Jul 13, 2016 at 11:11:03PM +0200, Richard Weinberger wrote: > Hi! > > On Wed, Jul 13, 2016 at 5:02 AM, Mattia Dongili wrote: > > Hi, > > > > Does anybody knows if there is any newer version of the tools package > > (the one with tunctl, uml_mount and friends)? > > > > I'm maintaining[1] t

Re: [uml-devel] UML tools anywhere?

2016-07-13 Thread Richard Weinberger
Hi! On Wed, Jul 13, 2016 at 5:02 AM, Mattia Dongili wrote: > Hi, > > Does anybody knows if there is any newer version of the tools package > (the one with tunctl, uml_mount and friends)? > > I'm maintaining[1] the package in Debian and I was wondering whether the > original code is hosted somewhe

[uml-devel] UML tools anywhere?

2016-07-13 Thread Mattia Dongili
Hi, Does anybody knows if there is any newer version of the tools package (the one with tunctl, uml_mount and friends)? I'm maintaining[1] the package in Debian and I was wondering whether the original code is hosted somewhere. Thanks -- mattia :wq! [1]: with varying degrees of consistency --

Re: [uml-devel] uml instance crashes when started from script

2015-12-09 Thread stian
Den 2015-12-06 16:34, skrev Vegard Nossum: > Hi, > > I've been running into some odd crashes when starting my UML instance > from Python. This is my script: > > import subprocess > subprocess.check_call(['path/to/vmlinux', 'mem=2048M', > 'rootfstype=hostfs', 'rw', 'init=/bin/bash']) Can you please

Re: [uml-devel] uml instance crashes when started from script

2015-12-08 Thread Richard Weinberger
Hi! Am 06.12.2015 um 16:34 schrieb Vegard Nossum: > Hi, > > I've been running into some odd crashes when starting my UML instance from > Python. This is my script: > > import subprocess > subprocess.check_call(['path/to/vmlinux', 'mem=2048M', 'rootfstype=hostfs', > 'rw', 'init=/bin/bash']) >

Re: [uml-devel] uml instance crashes when started from script

2015-12-06 Thread Anton Ivanov
On 07/12/15 07:24, [email protected] wrote: > Den 2015-12-06 16:34, skrev Vegard Nossum: >> Hi, >> >> I've been running into some odd crashes when starting my UML instance >> from Python. This is my script: >> >> import subprocess >> subprocess.check_call(['path/to/vmlinux', 'mem=2048M', >> 'rootfstyp

Re: [uml-devel] uml instance crashes when started from script

2015-12-06 Thread stian
Den 2015-12-06 16:34, skrev Vegard Nossum: > Hi, > > I've been running into some odd crashes when starting my UML instance > from Python. This is my script: > > import subprocess > subprocess.check_call(['path/to/vmlinux', 'mem=2048M', > 'rootfstype=hostfs', 'rw', 'init=/bin/bash']) > > [1.8800

[uml-devel] uml instance crashes when started from script

2015-12-06 Thread Vegard Nossum
Hi, I've been running into some odd crashes when starting my UML instance from Python. This is my script: import subprocess subprocess.check_call(['path/to/vmlinux', 'mem=2048M', 'rootfstype=hostfs', 'rw', 'init=/bin/bash']) This will crash 9 out of 10 times with various strange messages on th

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

2015-10-31 Thread Thomas Meyer
Am 31.10.2015 4:39 vorm. schrieb Balaco Baco : > > > 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 somewhe

Re: [uml-devel] [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 that >> it would work. > > Are you an arche

Re: [uml-devel] [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-devel] [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 >> >> > > >> > with >> >> > > >> > another option

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

2015-10-30 Thread Michael Richardson
Please, at least mark the info as being OLD OLD OLD. 90% of it is unnecessary. -- ___ User-mode-linux-devel mailing list [email protected] https://lis

Re: [uml-devel] [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-devel] [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-devel] [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 for me. It is one of the cases

Re: [uml-devel] [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-devel] [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-devel] [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-devel] UML specific or just a generic 4.0.x glitch : kernel/time/Kconfig:157:warning: range is invalid ?

2015-04-19 Thread Geert Uytterhoeven
On Sat, Apr 18, 2015 at 3:31 PM, Toralf Förster wrote: > tfoerste@t44 ~/devel/linux $ make ARCH=um linux -j3 > scripts/kconfig/conf --silentoldconfig arch/x86/um/Kconfig > kernel/time/Kconfig:157:warning: range is invalid This is not UML-specific. It happens on all UP-only architectures, which i

[uml-devel] UML specific or just a generic 4.0.x glitch : kernel/time/Kconfig:157:warning: range is invalid ?

2015-04-18 Thread Toralf Förster
tfoerste@t44 ~/devel/linux $ make ARCH=um linux -j3 scripts/kconfig/conf --silentoldconfig arch/x86/um/Kconfig kernel/time/Kconfig:157:warning: range is invalid -- Toralf pgp key: 7B1A 07F4 EC82 0F90 D4C2 8936 872A E508 0076 E94E -- "; the past is all dirty and cruel in the modern po

[uml-devel] UML Interfaces

2015-03-30 Thread madhusudan r
Hi, I would like to know if the User Mode linux creates (and initialises) 'struct uml_net_private' for every interface device on it? To be specific, if there are multiple l2tpv3 tunnels on the UML, does it warrant the creation of as many 'dev's, and consequently associate it with a corresponding

Re: [uml-devel] UML Performance improvement patchset

2014-09-20 Thread Anton Ivanov
Hi list, Some benchmarks (current version, I believe this can do more once it gains full epoll write support). 4 UMLs running in parallel, each pinned to a core, new raw driver - vlan per UML, 10G NIC on 4 core 3.5GHz A8 connected back to back to an 8 core machine running iperf server. Server

Re: [uml-devel] UML Performance improvement patchset

2014-09-14 Thread Anton Ivanov (antivano)
Hi Richard, hi list. I have found a couple of minor issues which have crept up during porting from 3.3.8 to 3.12-3.15 (I originally wrote all of the improvements for 3.3.8/OpenWRT). I will reissue the patchset with these fixed sometimes this week - descriptions of issues/coming fixes inline.

Re: [uml-devel] UML Performance improvement patchset

2014-09-04 Thread Anton Ivanov (antivano)
On 04/09/14 20:14, Richard Weinberger wrote: > On Thu, Sep 4, 2014 at 9:00 PM, wrote: >> Patch dependencies: >> >> [PATCH v3 01/10] Epoll based interrupt controller >> >> Full redesign of the existing UML poll based controller. The old >> poll controller incurs huge penalties for IRQ sharing and

Re: [uml-devel] UML Performance improvement patchset

2014-09-04 Thread Richard Weinberger
On Thu, Sep 4, 2014 at 9:00 PM, wrote: > > Patch dependencies: > > [PATCH v3 01/10] Epoll based interrupt controller > > Full redesign of the existing UML poll based controller. The old > poll controller incurs huge penalties for IRQ sharing and many devices > setup due to the device list being w

[uml-devel] UML Performance improvement patchset

2014-09-04 Thread anton . ivanov
Patch dependencies: [PATCH v3 01/10] Epoll based interrupt controller Full redesign of the existing UML poll based controller. The old poll controller incurs huge penalties for IRQ sharing and many devices setup due to the device list being walked twice. Additionally, the current controller has

Re: [uml-devel] UML build broken since 3.0.75 (also affects 3.2.x)

2013-05-27 Thread Ben Hutchings
On Sat, 2013-05-25 at 15:44 +0200, richard -rw- weinberger wrote: > On Sat, May 25, 2013 at 2:18 PM, Greg KH wrote: > > On Sat, May 25, 2013 at 05:55:22PM +0700, Antoine Martin wrote: > >> Linus' vm patches broke the UML build in 3.0.75 onwards: > >> > >> CC mm/memory.o > >> mm/memory.c: In

Re: [uml-devel] UML build broken since 3.0.75 (also affects 3.2.x)

2013-05-25 Thread richard -rw- weinberger
On Sat, May 25, 2013 at 2:18 PM, Greg KH wrote: > On Sat, May 25, 2013 at 05:55:22PM +0700, Antoine Martin wrote: >> Linus' vm patches broke the UML build in 3.0.75 onwards: >> >> CC mm/memory.o >> mm/memory.c: In function ‘vm_iomap_memory’: >> mm/memory.c:2363:2: error: implicit declaratio

Re: [uml-devel] UML build broken since 3.0.75 (also affects 3.2.x)

2013-05-25 Thread Greg KH
On Sat, May 25, 2013 at 05:55:22PM +0700, Antoine Martin wrote: > Linus' vm patches broke the UML build in 3.0.75 onwards: > > CC mm/memory.o > mm/memory.c: In function ‘vm_iomap_memory’: > mm/memory.c:2363:2: error: implicit declaration of function > ‘io_remap_pfn_range’ [-Werror=implicit-

[uml-devel] UML build broken since 3.0.75 (also affects 3.2.x)

2013-05-25 Thread Antoine Martin
Linus' vm patches broke the UML build in 3.0.75 onwards: CC mm/memory.o mm/memory.c: In function ‘vm_iomap_memory’: mm/memory.c:2363:2: error: implicit declaration of function ‘io_remap_pfn_range’ [-Werror=implicit-function-declaration] cc1: some warnings being treated as errors make[1]: **

[uml-devel] UML vs ptrace_scope

2013-05-17 Thread Michael Richardson
I have been trying to bring the openswan nightly build system up again on a newish system. I started these scripts back in 2002, and it has been running on and off for many years, and many kernel revisions. I started this most recent effort work when 3.5 was stable, so my guest kernel is a 3.

Re: [uml-devel] UML Hardware Virt Support

2013-05-01 Thread Terry Hsu
Great to know this, thanks for keeping it up! On Wed, May 1, 2013 at 2:15 PM, richard -rw- weinberger < [email protected]> wrote: > On Wed, May 1, 2013 at 7:54 PM, Terry Hsu wrote: > > Indeed, I am developing some functions for the virtual memory subsystem > in > > the kernel. > > Q

Re: [uml-devel] UML Hardware Virt Support

2013-05-01 Thread richard -rw- weinberger
On Wed, May 1, 2013 at 7:54 PM, Terry Hsu wrote: > Indeed, I am developing some functions for the virtual memory subsystem in > the kernel. > Qemu replaces UML in my case. I run qemu without kvm support because I don't > seem to be able to run nested virtualization in virtualbox. > Anyway now Qemu

Re: [uml-devel] UML Hardware Virt Support

2013-05-01 Thread Terry Hsu
On Tue, Apr 30, 2013 at 12:27 PM, Richard RW. Weinberger < [email protected]> wrote: > - Ursprüngliche Mail - > > > > > > > UML development mostly stopped in favor to KVM. > > > > > > so you mean to say that KVM is preferable to UML? > > (I Guess it may depend on the situation?) > > KV

Re: [uml-devel] UML Hardware Virt Support

2013-04-30 Thread Richard RW. Weinberger
- Ursprüngliche Mail - > > > > UML development mostly stopped in favor to KVM. > > > so you mean to say that KVM is preferable to UML? > (I Guess it may depend on the situation?) KVM is *much* faster than UML and *much* less hacky. :-) Thanks, //richard --

Re: [uml-devel] UML Hardware Virt Support

2013-04-30 Thread richard -rw- weinberger
On Tue, Apr 30, 2013 at 6:49 PM, Earlence Fernandes wrote: > But then there's a fundamental question of whether KVM has similar > semantics. KVM works completely different than UML does. > UML was incredibly useful to my project since it ran a whole "kernel + > processes" in user space. > Now i'

Re: [uml-devel] UML Hardware Virt Support

2013-04-30 Thread Earlence Fernandes
But then there's a fundamental question of whether KVM has similar semantics. UML was incredibly useful to my project since it ran a whole "kernel + processes" in user space. Now i'm confused as to whether I need to change my work so that it works with KVM (I'm trying to read thru KVM docs to under

Re: [uml-devel] UML Hardware Virt Support

2013-04-30 Thread Earlence Fernandes
>UML development mostly stopped in favor to KVM. so you mean to say that KVM is preferable to UML? (I Guess it may depend on the situation?) -Earlence On Tue, Apr 30, 2013 at 12:17 PM, richard -rw- weinberger < [email protected]> wrote: > On Tue, Apr 30, 2013 at 6:12 PM, Earlence Fe

Re: [uml-devel] UML Hardware Virt Support

2013-04-30 Thread richard -rw- weinberger
On Tue, Apr 30, 2013 at 6:12 PM, Earlence Fernandes wrote: > The book (2004) states that work was going on for hardware assisted virt. I don't think so. > Has there been progress on it? Where do I find information on it? > The UML source tree still comes with the original modes of operation. UM

[uml-devel] UML Hardware Virt Support

2013-04-30 Thread Earlence Fernandes
The book (2004) states that work was going on for hardware assisted virt. Has there been progress on it? Where do I find information on it? The UML source tree still comes with the original modes of operation. -Earlence --

Re: [uml-devel] UML Network Related Crashing

2013-01-21 Thread Dave (Bob)
I'm wondering whether this was useful? Is there any other testing that I can do to help the cause, and to help fix this problem? Regards, David On 19/01/2013 18:59, Dave Humphreys (Bob) wrote: > I have experimented further with the network related crashing problem that I > have had for some tim

[uml-devel] UML Network Related Crashing

2013-01-19 Thread Dave Humphreys (Bob)
I have experimented further with the network related crashing problem that I have had for some time with UML. I have been using 3.8.0-rc3 UML kernels with Debian root filesystems. I have been running two UML instances side-by-side on the same host and communicationg via mcast networking. My c

Re: [uml-devel] UML Network Related Crashing

2013-01-06 Thread Richard Weinberger
Am Sun, 06 Jan 2013 12:16:02 + schrieb "Dave Humphreys (Bob)" : > I note that my message sent yesterday ended up heavily truncated, so > I have turned on the line-wrap for this one. Sorry about that. Now it passed my spamfilter. ;-) CC'in Al, maybe he has an idea. Does the crash only happen

[uml-devel] UML Network Related Crashing

2013-01-06 Thread Dave Humphreys (Bob)
I note that my message sent yesterday ended up heavily truncated, so I have turned on the line-wrap for this one. Sorry about that. What I was trying to say is that I can repeatedly crash UML by exercising the networking heavily as a result of rsync'ing data to and from. I also said that I have

[uml-devel] UML Network Related Crashing

2013-01-05 Thread Dave Humphreys (Bob)
I have problems with UML crashing that I believe are network related, because the crash happens whenever I try to make heavier use of the network connection to rsync more significant amounts of data from the UML. It may or may not be significant, but when I am rsyncing from one UML to another,

Re: [uml-devel] [uml-user] SMP on UML

2012-08-25 Thread richard -rw- weinberger
On Fri, Aug 24, 2012 at 6:19 PM, Dragos Diaconescu wrote: > Hello, > > I try to compile the UML, from a linux kernel(make ARCH=um SUBARCH=i386) > and I have configured it to use SMP (make config). I am getting the > following error: > > CHK include/generated/utsrelease.h > CC arch/um/

Re: [uml-devel] [uml-user] TSC register

2012-08-24 Thread richard -rw- weinberger
On Fri, Aug 24, 2012 at 5:09 PM, Dragos Diaconescu wrote: > Can you please > give me some directions? Shall I implement in the same manner as is > implemented in > /arch/x86/lib/delay.c . What are the big differences between this > implementation and in an implementation > for UML? If you a

  1   2   3   4   5   >