1. 12 Jun, 2009 3 commits
  2. 19 Apr, 2009 1 commit
  3. 30 Mar, 2009 1 commit
  4. 22 Oct, 2008 2 commits
  5. 22 Jul, 2008 1 commit
    • Vegard Nossum's avatar
      x86: consolidate header guards · 77ef50a5
      Vegard Nossum authored
      
      
      This patch is the result of an automatic script that consolidates the
      format of all the headers in include/asm-x86/.
      
      The format:
      
      1. No leading underscore. Names with leading underscores are reserved.
      2. Pathname components are separated by two underscores. So we can
         distinguish between mm_types.h and mm/types.h.
      3. Everything except letters and numbers are turned into single
         underscores.
      Signed-off-by: default avatarVegard Nossum <vegard.nossum@gmail.com>
      77ef50a5
  6. 17 Apr, 2008 1 commit
  7. 27 Mar, 2008 1 commit
  8. 30 Jan, 2008 1 commit
  9. 05 Nov, 2007 1 commit
  10. 24 Oct, 2007 1 commit
  11. 22 Oct, 2007 4 commits
    • Rusty Russell's avatar
      Remove old lguest I/O infrrasructure. · 15045275
      Rusty Russell authored
      
      
      This patch gets rid of the old lguest host I/O infrastructure and
      replaces it with a single hypercall "LHCALL_NOTIFY" which takes an
      address.
      
      The main change is the removal of io.c: that mainly did inter-guest
      I/O, which virtio doesn't yet support.
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      15045275
    • Rusty Russell's avatar
      Boot with virtual == physical to get closer to native Linux. · 47436aa4
      Rusty Russell authored
      
      
      1) This allows us to get alot closer to booting bzImages.
      
      2) It means we don't have to know page_offset.
      
      3) The Guest needs to modify the boot pagetables to create the
         PAGE_OFFSET mapping before jumping to C code.
      
      4) guest_pa() walks the page tables rather than using page_offset.
      
      5) We don't use page_offset to figure out whether to emulate: it was
         always kinda quesationable, and won't work for instructions done
         before remapping (bzImage unpacking in particular).
      
      6) We still want the kernel address for tlb flushing: have the initial
         hypercall give us that, too.
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      47436aa4
    • Jes Sorensen's avatar
      Make hypercalls arch-independent. · b410e7b1
      Jes Sorensen authored
      
      
      Clean up the hypercall code to make the code in hypercalls.c
      architecture independent. First process the common hypercalls and
      then call lguest_arch_do_hcall() if the call hasn't been handled.
      Rename struct hcall_ring to hcall_args.
      
      This patch requires the previous patch which reorganize the layout of
      struct lguest_regs on i386 so they match the layout of struct
      hcall_args.
      Signed-off-by: default avatarJes Sorensen <jes@sgi.com>
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      b410e7b1
    • Jes Sorensen's avatar
      Move lguest hcalls to arch-specific header · c37ae93d
      Jes Sorensen authored
      
      
      Move architecture specific portion of lg_hcall code to asm-i386/lg_hcall.h
      and have it included from linux/lguest.h.
      
      [Changed to asm-i386/lguest_hcall.h so documentation finds it -RR]
      Signed-off-by: default avatarJes Sorensen <jes@sgi.com>
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      Cc: Jes Sorensen <jes@sgi.com>
      c37ae93d
  12. 28 Jul, 2007 1 commit
    • Rusty Russell's avatar
      Provide timespec to guests rather than jiffies clock. · 6c8dca5d
      Rusty Russell authored
      
      
      A non-periodic clock_event_device and the "jiffies" clock don't mix well:
      tick_handle_periodic() can go into an infinite loop.
      
      Currently lguest guests use the jiffies clock when the TSC is
      unusable.  Instead, make the Host write the current time into the lguest
      page on every interrupt.  This doesn't cost much but is more precise
      and at least as accurate as the jiffies clock.  It also gets rid of
      the GET_WALLCLOCK hypercall.
      
      Also, delay setting sched_clock until our clock is set up, otherwise
      the early printk timestamps can go backwards (not harmful, just ugly).
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      6c8dca5d
  13. 26 Jul, 2007 1 commit
  14. 19 Jul, 2007 2 commits
    • Rusty Russell's avatar
      lguest: the host code · d7e28ffe
      Rusty Russell authored
      
      
      This is the code for the "lg.ko" module, which allows lguest guests to
      be launched.
      
      [akpm@linux-foundation.org: update for futex-new-private-futexes]
      [akpm@linux-foundation.org: build fix]
      [jmorris@namei.org: lguest: use hrtimers]
      [akpm@linux-foundation.org: x86_64 build fix]
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      Cc: Andi Kleen <ak@suse.de>
      Cc: Eric Dumazet <dada1@cosmosbay.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d7e28ffe
    • Rusty Russell's avatar
      lguest: the guest code · 07ad157f
      Rusty Russell authored
      
      
      lguest is a simple hypervisor for Linux on Linux.  Unlike kvm it doesn't need
      VT/SVM hardware.  Unlike Xen it's simply "modprobe and go".  Unlike both, it's
      5000 lines and self-contained.
      
      Performance is ok, but not great (-30% on kernel compile).  But given its
      hackability, I expect this to improve, along with the paravirt_ops code which
      it supplies a complete example for.  There's also a 64-bit version being
      worked on and other craziness.
      
      But most of all, lguest is awesome fun!  Too much of the kernel is a big ball
      of hair.  lguest is simple enough to dive into and hack, plus has some warts
      which scream "fork me!".
      
      This patch:
      
      This is the code and headers required to make an i386 kernel an lguest guest.
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      Cc: Andi Kleen <ak@suse.de>
      Cc: Jeremy Fitzhardinge <jeremy@goop.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      07ad157f