Skip to content
Snippets Groups Projects
  1. Nov 07, 2013
  2. Nov 06, 2013
  3. Nov 05, 2013
  4. Nov 04, 2013
  5. Nov 03, 2013
  6. Nov 01, 2013
  7. Oct 31, 2013
    • Pekka Enberg's avatar
      acpi: Simplify ACPICA initialization · 2ce381c0
      Pekka Enberg authored
      
      Use the initialization sequence specified in 10.1.2.2 ("ACPICA
      Initialization With Early ACPI Table Access") from ACPICA reference
      manual.
      
      Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
      2ce381c0
    • Pekka Enberg's avatar
      acpi: Use mmu::isreadable() in AcpiOsReadable() · 82037caf
      Pekka Enberg authored
      
      Use mmu:isreadable() to actually check if a memory region is readable in
      AcpiOsReadable().
      
      Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
      82037caf
    • Pekka Enberg's avatar
      mempool: Fix realloc() debug version · aae1a5a1
      Pekka Enberg authored
      
      Fix the following issues with the debug version of realloc():
      
        - Make realloc with NULL ptr behave like malloc()
      
        - Make realloc with non-NULL pointer and zero size behave like free()
      
        - Avoid malloc() if we have enough space in original memory block
      
        - Return NULL if the new allocation fails but don't deallocate the
          original memory block
      
      Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
      aae1a5a1
    • Pekka Enberg's avatar
      acpi: Use console for AcpiOsPrintf() · c9dadf2d
      Pekka Enberg authored
      
      Switch to console::write_ll() in AcpiOsPrintf() and AcpiOsvPrintf() to
      make ACPI boot-time output readable:
      
        [penberg@localhost osv]$ ./scripts/run.py
        ACPI: RSDP 0xfd8d0 00014 (v00 BOCHS )
        ACPI: RSDT 0x3fffe380 00034 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
        ACPI: FACP 0x3fffff80 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
        ACPI: DSDT 0x3fffe3c0 011A9 (v01   BXPC   BXDSDT 00000001 INTL 20100528)
        ACPI: FACS 0x3fffff40 00040
        ACPI: SSDT 0x3ffff6e0 00858 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
        ACPI: APIC 0x3ffff5b0 00090 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
        ACPI: HPET 0x3ffff570 00038 (v01 BOCHS  BXPCHPET 00000001 BXPC 00000001)
        acpi 0 apic 0
        acpi 1 apic 1
        acpi 2 apic 2
        acpi 3 apic 3
        APIC base fee00000
        OSv v0.02-64-ga556eab Copyright 2013 Cloudius Systems
        locale works
        ACPI: RSDP 0xfd8d0 00014 (v00 BOCHS )
        ACPI: RSDT 0x3fffe380 00034 (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
        ACPI: FACP 0x3fffff80 00074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
        ACPI: DSDT 0x3fffe3c0 011A9 (v01   BXPC   BXDSDT 00000001 INTL 20100528)
        ACPI: FACS 0x3fffff40 00040
        ACPI: SSDT 0x3ffff6e0 00858 (v01 BOCHS  BXPCSSDT 00000001 BXPC 00000001)
        ACPI: APIC 0x3ffff5b0 00090 (v01 BOCHS  BXPCAPIC 00000001 BXPC 00000001)
        ACPI: HPET 0x3ffff570 00038 (v01 BOCHS  BXPCHPET 00000001 BXPC 00000001)
        ACPI: All ACPI Tables successfully acquired
      
      Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
      c9dadf2d
    • Tomasz Grabiec's avatar
      Cleanup stubbing.hh · d1c5a723
      Tomasz Grabiec authored
      
      Signed-off-by: default avatarTomasz Grabiec <tgrabiec@cloudius-systems.com>
      d1c5a723
  8. Oct 30, 2013
    • Nadav Har'El's avatar
      Simplify host-side of zfs image build · be3e55d6
      Nadav Har'El authored
      
      This patch simplifies the host-side work in the new /usr zfs filesystem
      build process.
      
      Previously, we copied the files to a temporary directory, used "cpio"
      to archive them and sent its output to the guest with "netcat".
      
      With this patch, we no longer have a temporary directory, and do not
      need either cpio or netcat on the build machine.
      
      Rather, mkzfs.py itself, using python (instead of a separate "nc" process),
      connects to the guest and sends it the files - still using the CPIO format.
      
      Rather than arbitrarily sleep for 3 seconds before the host tries to
      connect to the guest (which might not be enough for some, or a waste
      of time for others), with this patch the host looks at the guest's output
      and connects when it sees the message "Waiting for connection".
      
      Signed-off-by: default avatarNadav Har'El <nyh@cloudius-systems.com>
      be3e55d6
    • Nadav Har'El's avatar
      Small fix to condvar->wait() return code · a06948de
      Nadav Har'El authored
      
      We want to return 0, not ETIMEDWAIT, if a wake_one/all() was consumed.
      In one racy case, we returned the wrong one (we received a wakeup, but
      still returned ETIMEDWAIT).
      
      This probably doesn't matter at all in practice...
      
      Signed-off-by: default avatarNadav Har'El <nyh@cloudius-systems.com>
      a06948de
    • Nadav Har'El's avatar
      Start documenting condvar · 212a061a
      Nadav Har'El authored
      
      Add Doxygen comments to the condvar class. Only the C++ interface
      (condvar's methods) is documented, not the alternative C interface
      (condvar_* functions).
      
      A reminder: run "doxygen" and point your browser to doxyout/html/index.html
      to see the API documentation we have so far.
      
      A lot can still be added to this condvar documentation, including a
      good introduction to how to use condition variables, why they have
      a mutex, etc. But it's at least a start.
      
      Signed-off-by: default avatarNadav Har'El <nyh@cloudius-systems.com>
      212a061a
    • Pekka Enberg's avatar
      tests: Remove tst-zfs-simple.so · f966188e
      Pekka Enberg authored
      
      The tst-zfs-simple.so test case has serverd its purpose for bringup.  As
      OSv build relies on working ZFS now, there's no need to run the tests.
      
      Furthermore, we have the full ztest stress test in the tree:
      
        bsd/cddl/contrib/opensolaris/cmd/ztest/ztest.c
      
      which we can use if needed.
      
      Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
      f966188e
    • Avi Kivity's avatar
      external: update gcc to 4.8.2 · 5a11cc6e
      Avi Kivity authored
      
      Signed-off-by: default avatarAvi Kivity <avi@cloudius-systems.com>
      5a11cc6e
    • Avi Kivity's avatar
      x64: fix TLS segment alignment · 15d30a11
      Avi Kivity authored
      
      The TLS segment is a little wierd in that it grows backwards from percpu_base
      instead of forwards.  This causes the alignment code to calculate wrong
      offsets when the segment size is 8 (mod 16).  A failure was seen where
      ::percpu_base was set at offset 0xfffffffffffffa08 in code that was in the
      same translation unit as ::percpu_base, and 0xfffffffffffffa10 elsewhere.
      This caused all dynamic_percpu instances to crash.
      
      Fix by aligning the segment size.  For good measure, align also the segment
      base, both to a cacheline boundary.
      
      Signed-off-by: default avatarAvi Kivity <avi@cloudius-systems.com>
      15d30a11
Loading