27 Aug, 2010

1 commit

  • These days the headers we use are in glibc. If those are too old, you can
    add the -I lines to get the kernel headers.

    In file included from ../../include/linux/if_tun.h:19,
    from lguest.c:33:
    ../../include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
    lguest.c: In function ‘setup_tun_net’:
    lguest.c:1456: warning: dereferencing pointer ‘sin’ does break strict-aliasing rules
    lguest.c:1457: warning: dereferencing pointer ‘sin’ does break strict-aliasing rules
    lguest.c:1450: note: initialized from here

    Signed-off-by: Rusty Russell

    Rusty Russell
     

12 Jun, 2009

1 commit

  • 18 months ago 5bbf89fc260830f3f58b331d946a16b39ad1ca2d changed to loading
    bzImages directly, and no longer manually ungzipping them, so we no longer
    need libz.

    Also, -m32 is useful for those on 64-bit platforms (and harmless on
    32-bit).

    Reported-by: Ron Minnich
    Signed-off-by: Rusty Russell

    Rusty Russell
     

30 Jan, 2009

1 commit


31 Oct, 2008

1 commit


23 Oct, 2007

2 commits


09 Aug, 2007

1 commit

  • Some versions of ld.so mmap the shared libraries right in over guest
    memory, so compile lguest statically by default.

    [ FC7 maps shared libraries very low, where the launcher maps guest's
    physical memory. Quick fix is to link Launcher static, real fix is
    for 2.6.24. ]

    -static is a simple fix. I expect this problem will be more common than we
    like, as different distro's make different "improvements" to ld.so

    Signed-off-by: Ronald G. Minnich
    Signed-off-by: Rusty Russell
    Signed-off-by: Linus Torvalds

    Ronald G. Minnich
     

25 Jul, 2007

1 commit

  • S.Caglar Onur points out that many distributions don't ship a static
    zlib. Unfortunately the launcher currently maps virtual device memory
    where shared libraries want to go.

    The solution is to pre-scan the args to figure out how much memory we
    have, then allocate devices above that, rather than down from the top
    possible address. This also turns out to be simpler.

    Signed-off-by: Rusty Russell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rusty Russell
     

20 Jul, 2007

1 commit

  • A brief document describing how to use lguest. Because lguest doesn't have an
    ABI we also include an example launcher in the Documentation directory.

    [jmorris@namei.org: Fix up nat example in documentation]
    Signed-off-by: Rusty Russell
    Cc: Andi Kleen
    Signed-off-by: James Morris
    Cc: Matias Zabaljauregui
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rusty Russell