Skip to content
Snippets Groups Projects
  1. Jan 02, 2019
  2. Dec 29, 2018
    • Abdulla Kamar's avatar
      [hypervisor][gic] Set VFIQEn due to GIC sysregs · 50d20f11
      Abdulla Kamar authored
      We should be setting the VFIQEn bit, to present group 0 virtual
      interrupts as virtual FIQs, as this is required by a virtual machine
      that enables GIC system register access.
      
      Test: Ran "hypervisor-test".
      Change-Id: Ie7d1016c087cb4a9cf3eee8914f915a78459b857
      50d20f11
    • Abdulla Kamar's avatar
      [hypervisor][arm64] Use caller-saved registers · 811ce301
      Abdulla Kamar authored
      When storing arguments for HVC invocations, ensure we use caller-saved
      registers.
      
      Since we control the ABI between EL1 and EL2, this change gives us some
      additional flexibility with the number of arguments that can be passed
      to these functions without trampling on the additional arguments that
      need to be set for EL2 to decode the HVC invocation.
      
      Test: Ran "linux_guest" on a VIM2 and QEMU.
      Change-Id: Ie9ca97674f90f4aefb661d90a6ad4c4d6469cd7a
      811ce301
  3. Dec 28, 2018
    • Roland McGrath's avatar
      [host][zbi] Support empty input files · b6a3ae4d
      Roland McGrath authored
      Test: CQ & manual
      Change-Id: Ie32208d7e9af6fe7407446ba066b77aae3089bd8
      b6a3ae4d
    • Roland McGrath's avatar
      [build][scripts] Remove legacy booting support · 2e573132
      Roland McGrath authored
      The old names zircon.bin and bootdata.bin are no longer used.  The
      run-zircon script no longer supports the deprecated -x switch that
      required direct Multiboot kernel booting support or a shimmed
      kernel.  The only way to specify the ZBI (and thus the kernel) is
      with the -z switch.
      
      Bug: ZX-2614 #done
      Test: CQ
      Change-Id: Id68af0b0e21c5019c6fb40d2087c2c30a4a15d8a
      2e573132
    • Venkatesh Srinivas's avatar
      [zircon][make] make clean: Remove objects one-at-a-time · 45168a82
      Venkatesh Srinivas authored
      make clean attempted to remove every output object file at once. This
      overflows ARG_MAX on Mac OS with a standard zircon tree.
      
      Remove objects, dependency files, and generated files one-at-a-time
      to avoid ARG_MAX limits. This may negatively affect build times.
      
      Tested:
      Mac OS 10.13.6: (ARG_MAX = 256K) - make clean works
      
      Change-Id: I88e1e3046518904d2df9e13e2077c35fde5dfba9
      45168a82
    • Roland McGrath's avatar
      [kernel][x86] Remove Multiboot support · 037b77c4
      Roland McGrath authored
      The kernel is always started in 64-bit mode with the ZBI protocol.
      The way to boot via Multiboot is using the multiboot.bin trampoline.
      
      Bug: ZX-2225 #comment Multiboot support removed from kernel
      Test: CQ
      Change-Id: Iff577042285a578c4629ccb4a838e8950a5b3ea5
      037b77c4
    • Abdulla Kamar's avatar
      [hypervisor][gic] Save and restore all APRs · 5d1fa969
      Abdulla Kamar authored
      More than one APR register may be in use, therefore we should make sure
      that we correctly save and restore all of them, based on the number of
      preemption bits that the hardware supports.
      
      Furthermore, for GICv3 we should be saving and restoring active
      priorities group 1 registers.
      
      Test: Ran "hypervisor-test".
      Change-Id: I6a7ea92ae7a79da3f3f2126b07a9929467d7b2d6
      5d1fa969
    • Todd Eisenberger's avatar
      [fidl][hardware] Remove old interface names · ddb5bacd
      Todd Eisenberger authored
      In this batch: display, gpu-clock.  The temporary ordinals added to the
      display interface are removed, too.
      
      Test: CI
      Change-Id: I7488c361855dbbd27dd2ab7ee053a3f1b3403340
      ddb5bacd
    • Abdulla Kamar's avatar
      [hypervisor][gic] Add check of LR index · 83693e25
      Abdulla Kamar authored
      Ensure that all LRs are within range for the specific GIC version.
      
      Test: Ran "hypervisor-test".
      Change-Id: If96a0b81bef70ea74b230ac19691200235429e1c
      83693e25
  4. Dec 27, 2018
  5. Dec 26, 2018
    • Yifei Teng's avatar
      [fidlc][c binding] Validate parameter size before allocating VLA. · 59018983
      Yifei Teng authored
      Emit additional code to check the size of vectors and strings when an
      explicit maximum is declared in the FIDL definition. This prevents stack
      overflows introduced by invalid messages with a large size/count field.
      
      FIDL-385 #done
      
      Test: fidl-simple-test
      Change-Id: Ifc68681c2ecb97d222339a572caef1744eedead0
      59018983
    • Todd Eisenberger's avatar
      [fidl][hardware] Rename camera and TEE hardware interfaces · 1b77573b
      Todd Eisenberger authored
      There are no out-of-zircon dependencies, so this is a full rename.
      
      Test: CI
      
      Change-Id: Ia3f8aa6a8812ae2fc304a9fa8b9bef107649d02e
      1b77573b
    • Bruno Dal Bo's avatar
      [ethertap] Fix leaks in ethertap and core ethernet · 8c6f9b27
      Bruno Dal Bo authored
      * Ethertap was leaking a thread handle for "ethertap-thread"
      * Core ethernet driver was leaking tx fifo buffer memory
      
      TEST: ran tests in garnet layer that use ethertap
      Change-Id: Ic0d87cfec71f932cf183faa4d4b83873140e23fa
      8c6f9b27
    • Todd Eisenberger's avatar
      [fidl][hardware] Begin renaming hardware interfaces · 9e8e056b
      Todd Eisenberger authored
      In this batch: backlight, input, rtc.  The interfaces are copied rather
      than moved because of Garnet dependencies.  Since these interfaces all
      use manual ordinals, it should Just Work.
      
      Test: CI
      Change-Id: I2dbf2da6bc3321444fb85abe0214216e5b8bb49f
      9e8e056b
    • Todd Eisenberger's avatar
      Revert "[fidl][hardware] Begin renaming hardware interfaces" · 0be47890
      Todd Eisenberger authored
      This reverts commit 9b2ea3dc.
      
      Reason for revert: Broke GI, rename scripts accidentally modified original fidl files
      
      Original change's description:
      > [fidl][hardware] Begin renaming hardware interfaces
      > 
      > In this batch: backlight, input, rtc.  The interfaces are copied rather
      > than moved because of Garnet dependencies.  Since these interfaces all
      > use manual ordinals, it should Just Work.
      > 
      > Test: CI
      > 
      > Change-Id: If8d976ed4cb6dfcf35b5af24fdceed5d3d8c6052
      
      TBR=voydanoff@google.com,kulakowski@google.com,teisenbe@google.com
      
      Change-Id: I581132718870d5b2d507127a1abff4f4641aa7df
      No-Presubmit: true
      No-Tree-Checks: true
      No-Try: true
      0be47890
    • Vikram Auradkar's avatar
      [gpt] Convert gpt library to C++, fix compilation errors · e422e06f
      Vikram Auradkar authored
      This is a first patch among few to convert gpt library to
      C++.
      
      In addition to fixing compilation errors, patch also
      - adds namespace
      - changes "typedef struct" to "struct"
      - rearranges few functions to make them fall under one anon namespace
      - adds const qualifier
      - retains few changes proposed by clang-fmt
      
      Test:
      - Paved a device
      - Compiled, booted qemu and dumped gpt table with
        $ gpt dump /dev/sys/pci/00:1e.4/pci-sdhci/sdhci/sdmmc/sdmmc-block/block
        $ lsblk
      - On device and on qemu ran system/test/sys/chromeos-disk-setup-test
      
      Change-Id: I3e998bea20d1632ea6a19e1a0ff0b360c6b3676e
      e422e06f
    • Todd Eisenberger's avatar
      [fidl][hardware] Begin renaming hardware interfaces · 9b2ea3dc
      Todd Eisenberger authored
      In this batch: backlight, input, rtc.  The interfaces are copied rather
      than moved because of Garnet dependencies.  Since these interfaces all
      use manual ordinals, it should Just Work.
      
      Test: CI
      
      Change-Id: If8d976ed4cb6dfcf35b5af24fdceed5d3d8c6052
      9b2ea3dc
  6. Dec 23, 2018
  7. Dec 22, 2018
    • Suraj Malhotra's avatar
      [banjo] Remove DefaultProtocol. · 16bac627
      Suraj Malhotra authored
      All drivers now specify ddk::base_protocol as necessary so we can remove
      DefaultProtocol from banjo.
      
      Tested: booted on qemu, vim2, pixelbook, and astro.
      Change-Id: I90163291b619b18bc64d04be63fd5631e8f74637
      16bac627
    • Carlos Pizano's avatar
      [zircon][crash] simplfiy crash handling · 54ada214
      Carlos Pizano authored
      Since we are willing to give a restricted root
      job to svchost, crash handling can be greatly
      simplified. The JIRA bug below has a diagram,
      but the TLDR is that crashsvc and devmgr were
      doing very little other than redirecting.
      
      - Remove crashsvc process and all that code
        except for the core that moves to svchost
      - Remove code in devmgr that acts as middleman
        for crashes
      - Remove the crashanalyzer FIDL svc code
        use the inspector library directly.
      
      The logic of selecting which analyzer to use
      is kept as before.
      
      ZX-3199 #comment progress
      
      TEST=manual: use $crasher and inspect that
           dumps are seen in the log output, otherwise
           unittests suffice
      
      Change-Id: I84b24c85437ea0414e25e3fdabd53b55bb730257
      54ada214
    • Sean Klein's avatar
      [blobfs] Create BlobCache, CacheNode, controlling blob lifecycle · c3650f8b
      Sean Klein authored
      This patch removes cache policy and management from the VnodeBlob
      class, instead relocating it into two new isolated classes.
      
      ZX-3180 #comment Done
      ZX-3112 #comment In Progress
      
      Test: Cache Node tests added
      
      Change-Id: Ia562861ba891003dad317fff117101a1236de0bd
      c3650f8b
Loading