1. 31 3月, 2010 1 次提交
    • J
      Get bsd-user host page protection code working on FreeBSD hosts · f01576f1
      Juergen Lock 提交于
      Use kinfo_getvmmap(3) on FeeBSD >= 7.x and /compat/linux/proc on older
      FreeBSD.  (kinfo_getvmmap is preferred since /compat/linux/proc is
      usually only mounted on hosts also using the Linuxolator.)
      
      This patch is a bit hacky because the includes needed for kinfo_getvmmap
      conflict with other definitions in exec.c by default so I had to `trick
      around' a little, but I built the result in FreeBSD 6.4-stable and
      7.2-stable tbs and on 8-stable on the host so the hacks at least
      should be stable.  (If this is a problem maybe we could also move the
      kinfo_getvmmap invocations into a seperate source file but that would
      be more work...)
      Signed-off-by: NJuergen Lock <nox@jelal.kn-bremen.de>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      f01576f1
  2. 28 3月, 2010 1 次提交
  3. 27 3月, 2010 1 次提交
  4. 22 3月, 2010 1 次提交
  5. 21 3月, 2010 1 次提交
  6. 13 3月, 2010 2 次提交
  7. 09 3月, 2010 2 次提交
  8. 07 3月, 2010 1 次提交
  9. 20 2月, 2010 2 次提交
  10. 08 2月, 2010 2 次提交
  11. 07 2月, 2010 3 次提交
  12. 29 1月, 2010 3 次提交
  13. 27 1月, 2010 2 次提交
  14. 24 1月, 2010 1 次提交
  15. 14 1月, 2010 4 次提交
  16. 13 1月, 2010 2 次提交
  17. 09 1月, 2010 1 次提交
  18. 08 1月, 2010 1 次提交
    • A
      Drop --whole-archive and static libraries · 0e8c9214
      Andreas Färber 提交于
      Juan has contributed a cool Makefile infrastructure that enables us to drop
      static libraries completely:
      
      Move shared obj-y definitions to Makefile.objs, prefixed {common-,hw-,user-},
      and link those object files directly into the executables.
      
      Replace HWLIB by HWDIR, specifying only the directory.
      
      Drop --whole-archive and ARLIBS in Makefiles and configure.
      
      Drop GENERATED_HEADERS dependency in rules.mak, since this rebuilds all
      common objects after generating a target-specific header; add dependency
      rules to Makefile and Makefile.target instead.
      
      v2:
      - Don't try to include /config.mak for user emulators
      - Changes to user object paths ("Quickfix for libuser.a drop") were obsoleted
        by "user_only: compile everything with -fpie" (Kirill A. Shutemov)
      
      v3:
      - Fix dependency modelling for tools
      - Remove comment on GENERATED_HEADERS obsoleted by this patch
      Signed-off-by: NAndreas Färber <afaerber@opensolaris.org>
      Cc: Blue Swirl <blauwirbel@gmail.com>
      Cc: Palle Lyckegaard <palle@lyckegaard.dk>
      Cc: Ben Taylor <bentaylor.solx86@gmail.com>
      Cc: Juan Quintela <quintela@trasno.org>
      Cc: Kirill A. Shutemov <kirill@shutemov.name>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      0e8c9214
  19. 23 12月, 2009 1 次提交
  20. 19 12月, 2009 1 次提交
  21. 14 12月, 2009 1 次提交
  22. 12 12月, 2009 1 次提交
    • A
      Do not abort on qemu_malloc(0) in production builds · 20ff6c80
      Anthony Liguori 提交于
      qemu_malloc() does not allow size=0 to be passed in and aborts on this behavior.
      
      Unfortunately, there is good reason to believe that within qemu, there are a
      number of, so far, undetected places that assume size=0 can be safely passed.
      Since we do not want to abort unnecessarily in production builds, return
      qemu_malloc(1) whenever the version file indicates that this is a production
      build.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      20ff6c80
  23. 06 12月, 2009 2 次提交
  24. 04 12月, 2009 2 次提交
  25. 02 12月, 2009 1 次提交
    • M
      configure: use correct cflags in compiler checks · be17dc90
      Michael S. Tsirkin 提交于
      linux-user build on fedora 11 breaks because fallocate
      is broken on that system if -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
      are specified, which is what QEMU uses.
      
      We do have a configure check to catch this and disable fallocate,
      however, it turns out that default QEMU_CFLAGS/LDFLAGS were assigned in
      script *after* all compiler checks: so during checks we were not running
      compiler with same flags that we used for build later.
      
      Fix this by moving QEMU_CFLAGS to before compiler checks, and using
      comple_prog when checking for fallocate.  This also fixes the fact that
      we do some compiler checks while assigning the flags, right below a
      comment that says "no cc tests beyond this point".
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      be17dc90