Skip to content
Snippets Groups Projects
  1. May 26, 2021
  2. Feb 08, 2021
  3. Nov 15, 2020
  4. Oct 26, 2020
  5. Aug 21, 2020
    • Paolo Bonzini's avatar
      meson: rename included C source files to .c.inc · 139c1837
      Paolo Bonzini authored
      
      With Makefiles that have automatically generated dependencies, you
      generated includes are set as dependencies of the Makefile, so that they
      are built before everything else and they are available when first
      building the .c files.
      
      Alternatively you can use a fine-grained dependency, e.g.
      
              target/arm/translate.o: target/arm/decode-neon-shared.inc.c
      
      With Meson you have only one choice and it is a third option, namely
      "build at the beginning of the corresponding target"; the way you
      express it is to list the includes in the sources of that target.
      
      The problem is that Meson decides if something is a source vs. a
      generated include by looking at the extension: '.c', '.cc', '.m', '.C'
      are sources, while everything else is considered an include---including
      '.inc.c'.
      
      Use '.c.inc' to avoid this, as it is consistent with our other convention
      of using '.rst.inc' for included reStructuredText files.  The editorconfig
      file is adjusted.
      
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      139c1837
  6. Sep 03, 2019
  7. Jun 28, 2018
    • Eric Auger's avatar
      exec: Fix MAP_RAM for cached access · a99761d3
      Eric Auger authored
      
      When an IOMMUMemoryRegion is in front of a virtio device,
      address_space_cache_init does not set cache->ptr as the memory
      region is not RAM. However when the device performs an access,
      we end up in glue() which performs the translation and then uses
      MAP_RAM. This latter uses the unset ptr and returns a wrong value
      which leads to a SIGSEV in address_space_lduw_internal_cached_slow,
      for instance.
      
      In slow path cache->ptr is NULL and MAP_RAM must redirect to
      qemu_map_ram_ptr((mr)->ram_block, ofs).
      
      As MAP_RAM, IS_DIRECT and INVALIDATE are the same in _cached_slow
      and non cached mode, let's remove those macros.
      
      This fixes the use cases featuring vIOMMU (Intel and ARM SMMU)
      which lead to a SIGSEV.
      
      Fixes: 48564041 (exec: reintroduce MemoryRegion caching)
      Signed-off-by: default avatarEric Auger <eric.auger@redhat.com>
      
      Message-Id: <1528895946-28677-1-git-send-email-eric.auger@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      a99761d3
  8. May 31, 2018
  9. May 08, 2018
  10. Dec 22, 2016
Loading