Re: [uml-devel] [PATCH 1/3] um: extend _fpstate to _xstate

2016-03-14 Thread stian
> /* test if signal handling preserves XMM registers */ > #include > #include > #include > > int count; > > void sighandler(int signum) > { > count++; > > /* alarm(1) without calling libc */ > asm("mov $0x1,%rdi"); > asm("mov $0x25,%rax"); > asm("syscall"

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

2015-12-09 Thread stian
;rootfstype=hostfs', 'rw', 'init=/bin/bash']) Can you please share your kernel config file? Stian -- ___ User-mode-linux-devel mailing list User-mode-linu

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

2015-12-06 Thread stian
, > 'rootfstype=hostfs', 'rw', 'init=/bin/bash']) > > [1.88] winch_thread : TIOCSCTTY failed on fd 1 err = 1 > I suspect subprocess.check_call() uses pipes and not pty/tty when creating this process. Same problem probably happens if do you something like cat /dev/

Re: [uml-devel] IRQ handler reentrancy

2015-11-20 Thread stian
code inside bar can do set_signals() magic. I am not linux kernel ABI expert. To me, it seems to be a more safe to have a ABI that tracks each signal blocked mask individually, and have a ref-counted block-all/unblock-all call. This would be like how you normally program on a CPU. Yo

Re: [uml-devel] IRQ handler reentrancy

2015-11-20 Thread stian
ld be a no-op foobar() unblock() <- first here the signals should be unblocked again Stian -- ___ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforg

Re: [uml-devel] [PATCH v2] EPOLL Interrupt Controller V2.0

2015-11-11 Thread stian
> I will probably add some "manual" debug code to check if the nested > invocation happens with the debug options off. Might be timing dependent and/or issue with nested blocking/unblocking of signals. Or debug printing when it should not. Just my two cents

Re: [uml-devel] [PATCH v6] um: Add a high resolution timer subsystem

2015-05-26 Thread stian
mes to my mind is that this very easy overflows if 32 bit multiplications are used (tv_sec is usually 32bit and dictates the first multiplication unless typecast is used). Stian Skjelstad -- One dashboard for servers a

Re: [uml-devel] compile error after : make ARCH=um allmodconfig && make ARCH=um linux

2015-03-10 Thread stian
hat you are missing http://vde.sourceforge.net/ . Do you have this library with its developments-headers installed? Stian Skjelstad -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel

Re: [uml-devel] Skas Mode : How does it work ?

2014-05-27 Thread stian
process to have multiple memory maps, and a tracing process could use a syscall to change which memory map a process should have at any given time. With SKAS0, this is no longer required, hence the version was set to zero. Googleling SKAS3 and SKAS0 should give some nice hits. -- Stian Skjelst

Re: [uml-devel] trinity commit 23dc478aba breaks syscall "mremap" at a 32 bit user mode linux

2014-05-01 Thread stian
ore the STUB and the END is not after the STUB Stian Skjelstad -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled

Re: [uml-devel] negative pid -516 possible ?

2013-12-29 Thread stian
traces. > And furthermore after a while the UML system does no longer serve any > ssh login attempts. 516 == -ERESTART_RESTARTBLOCK ?? Stian -- Rapidly troubleshoot problems before they affect your business. Most IT or

Re: [uml-devel] why does index in truncate_inode_pages_range() grows so much ?

2013-11-25 Thread stian
5 = 0x looks like something underflowed Stian Skjelstad -- Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline deli

Re: [uml-devel] [PATCH] uml: Simplify tempdir logic.

2013-11-14 Thread stian
ably add /run/shm to the list of tmpfs directories to test for (ubuntu systems atleast use this). Stian Skjelstad -- DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, No

Re: [uml-devel] fuzz tested 32 bit user mode linux image hangs in radix_tree_next_chunk()

2013-11-10 Thread stian
> You cannot build Linux with -O1/O0. > Try printing the value using printk... Or even printf(), since this an UML kernel. Stian -- November Webinars for C, C++, Fortran Developers Accelerate application perfo

Re: [uml-devel] BUG: soft lockup for a user mode linux image

2013-10-09 Thread stian
all decide what kind of multiplication and division we actually perform here; so let us hope it is not something like (signed char) >>>>> BUG_ON(pages_dirtied < 0); >>>>> BUG_ON(task_ratelimit < 0); These will never hit if pages_d

Re: [uml-devel] [PATCH] um: Implement probe_kernel_read()

2013-08-17 Thread stian
of a page size = 2; // big enough to cross two pages psrc = 0x0f000; // pointed to the start of the first page size = 2; // does not include the second page anymore second page is not checked Or is this not a proble

Re: [uml-devel] UML: Please help with __module_text_address crashing

2012-03-14 Thread Stian Skjelstad
race also included spin-lock right before the panic, which could be the source of the issue. If I remember right, the kernel has some debug options that can be enabled for spin-locks. Stian Skjelstad -- Virtualization &a

Re: [uml-devel] /sys/class/tty/tty0/active?

2012-01-26 Thread stian
> Hi! > > systemd goes nuts on UML. > While hunting down all issues I found out that systemd wants to read from > /sys/class/tty/tty0/active. Kernel version? http://comments.gmane.org/gmane.comp.sysutils.systemd.devel/3079 indicates that the given file appears in 2.6.37

Re: [uml-devel] general protection failures

2010-10-19 Thread Stian Skjelstad
Just some few things to check. How is the memory pressure? What resources does the UML instances use (network, hostfs, cow). Could it be related to a network-device not being able initialize? Stian Skjelstad > no hints? :-/ > >Am 15.10.2010 11:42, schrieb Felix Antonius Wilhel

Re: [uml-devel] syscall failed

2008-03-31 Thread Stian Skjelstad
If this is a common issue/problem, perhaps an informativ error-message can be written when this occure, hinting the user to a possible solution. Stian On Mon, 2008-03-31 at 10:50 -0400, Jeff Dike wrote: > On Fri, Mar 28, 2008 at 10:44:08PM +, Antoine Martin wrote: > > [434926

Re: [uml-devel] Loopback mounting jffs2 under UML?

2007-12-18 Thread Stian Skjelstad
initialization does/didn't have depencies). Just me five cents :-) Stian On Tue, 2007-12-18 at 12:45 -0600, Rob Landley wrote: > I want to loopback mount a jffs2 filesystem, and this filesystem has > incestuous knowledge of flash devices for wear levelling and stuff, so it > will

Re: [uml-devel] multicast on loopback: mcast networking at the cottage

2005-07-25 Thread stian
ice. Multicast aware programs should always bind to a device, or broadcast on all devices for discovery. This is not uml-specific, but vanilla kernel. Some distroes add multicast-routing for ipv4 during init scripts. Stian --- SF.Net email i

Re: [uml-devel] Slower system call with SMP

2005-05-30 Thread stian
t cpu's, and when interprocess stuff is to occure, cpu's have to sync. Also, some few kernel things is slower on SMP, while user-space things that are not related, and multithreaded apps run faster. Stian --- This SF.Net email is spon

[uml-devel] getdents problem upon SIGALRM

2005-05-01 Thread stian
Just a quick question. Have anybody seen hostfs randomly failing to list files when doing ls on samba-filesystems on the host, or other filesystems? Just wondering if I'm alone in the world being bother by this kernel-bug: http://bugzilla.kernel.org/show_bug.cgi?id=4497 Stian Skjelsta

RE: [uml-devel] Question about kernel_thread in UML TT mode

2005-04-29 Thread stian
"pushl %eax\n\t" > "call do_exit\n" > ".previous"); kernel_thread helper is just a dummy wrapper to feed into kernel_thread and can probably look at as a static local function only for use of x86 implementation of kernel_thread. Stian ---

Re: [uml-devel] Question about UML gdb

2005-04-27 Thread stian
nter/tls implementation in glibc. Either make gdb breakpoint (since processes doing any system calls appear with this setup, or disable tls libraries. Atleast that works for my setup). To disable tls: mv /lib/tls /lib/tls-old and later to re-enable mv /lib/tls-old /lib/tls Hopes t

Re: [uml-devel] Re: [PATCH 4/9] UML - Export gcov symbol based on gcc version

2005-03-11 Thread stian
would be to use a configure prinsip to test-compile, and have a define that depends on it. Perhaps dirty, conserning kbuild, but resolves problems, unless the alias symbol works. Stian --- SF email is sponsored by - The IT Product Guide Read honest

Re: [uml-devel] strace of 'ls' under Fedora Core 3

2005-02-10 Thread stian
s this syscall as I find the syscall to be badly documented last time I looked at it. Stian Skjelstad --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover wh

Re: [uml-devel] State of gdkfb ?

2005-01-28 Thread stian
ther ways, and a communatication channel for update-notifications and keyboard/mouse inputs). Stian Skjelstad --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop rep

Re: [uml-devel] memory

2005-01-24 Thread stian
gt; array is about 1% of the entire physical mem in size. You can mangle with the page-size as-well. You will break some few programs by increasing the page-size too 16K instead of 4K, but most software should respect the output mmap give

[uml-devel] uml_moo

2005-01-15 Thread stian
which gives size 0, og uml_moo fails. Also I see that it is compiled with 64bit file support, but shouldn't you define _GNU_SOURCE as well? Since off_t didn't need %lld in the printf, but %ld as the source-code now uses which is 32bit on i386 atleast. The last thingy was just a qu

Re: [uml-devel] df -h and hostfs

2005-01-13 Thread stian
rward when trying to locate the affected filesytems, while all other file-operations walks it backwards. So it seems to be general kernel-problem when you have mounted a mount-point two times (Either with intension or accident) Stian --- The S

Re: [uml-devel] df -h and hostfs

2005-01-12 Thread stian
even when the root is passed with -o, that > is > used even for the mount-point. And now I've actually ran the test... >> df -h on host: >> >> Filesystems Size Used Avail Use% Mounted on >> /dev/hda2 7.3G 6.2G 717M 90% / >> none

Re: [uml-devel] df -h and hostfs

2005-01-12 Thread stian
type proc (rw,nodiratime) df -h on host: Filesystems Size Used Avail Use% Mounted on /dev/hda2 7.3G 6.2G 717M 90% / none 126M 0 126M 0% /dev/shm 192.168.1.1:/var/home/stian 147G 104G 37G 75% /root/UML/a mount on host

[uml-devel] df -h and hostfs

2005-01-11 Thread stian
when df -h does a statfs, hostfs statfs'es /, instead of the mount-source directory, so you get the wrong stats about free-space if the mounted directory does not originate from the / host partition. Stian --- The SF.Net email is sponsor

[uml-devel] uml_console_write

2005-01-01 Thread stian
sig_handler __restore Stian --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sf