Skip to content
Snippets Groups Projects
  1. Oct 05, 2021
  2. Oct 04, 2021
  3. Oct 03, 2021
    • Richard Henderson's avatar
      Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging · 30bd1db5
      Richard Henderson authored
      
      * -smp cleanpus (Yanan)
      * Hyper-V enlightenment functionality (Vitaly)
      * virtio-mem support in dump, tpm and QMP (David)
      * NetBSD GCC 7.4 compiler support (Nia)
      
      # gpg: Signature made Sun 03 Oct 2021 03:41:30 AM EDT
      # gpg:                using RSA key F13338574B662389866C7682BFFBD25F78C7AE83
      # gpg:                issuer "pbonzini@redhat.com"
      # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>" [full]
      # gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>" [full]
      
      * remotes/bonzini/tags/for-upstream:
        softmmu/memory_mapping: optimize for RamDiscardManager sections
        softmmu/memory_mapping: factor out adding physical memory ranges
        softmmu/memory_mapping: never merge ranges accross memory regions
        tpm: mark correct memory region range dirty when clearing RAM
        monitor: Rate-limit MEMORY_DEVICE_SIZE_CHANGE qapi events per device
        qapi: Include qom-path in MEMORY_DEVICE_SIZE_CHANGE qapi events
        virtio-mem-pci: Fix memory leak when creating MEMORY_DEVICE_SIZE_CHANGE event
        configure: Loosen GCC requirement from 7.5.0 to 7.4.0
      
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      30bd1db5
  4. Oct 02, 2021
    • Richard Henderson's avatar
      Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2021-10-02' into staging · f50ecf54
      Richard Henderson authored
      
      QAPI patches patches for 2021-10-02
      
      # gpg: Signature made Sat 02 Oct 2021 01:37:11 AM EDT
      # gpg:                using RSA key 354BC8B3D7EB2A6B68674E5F3870B400EB918653
      # gpg:                issuer "armbru@redhat.com"
      # gpg: Good signature from "Markus Armbruster <armbru@redhat.com>" [full]
      # gpg:                 aka "Markus Armbruster <armbru@pond.sub.org>" [full]
      
      * remotes/armbru/tags/pull-qapi-2021-10-02:
        qapi/parser: enable pylint checks
        qapi/parser: Silence too-few-public-methods warning
        qapi/parser: enable mypy checks
        qapi/parser: Add FIXME for consolidating JSON-related types
        qapi/parser: add type hint annotations (QAPIDoc)
        qapi/parser: add import cycle workaround
        qapi/parser: Introduce NullSection
        qapi/parser: clarify _end_section() logic
        qapi/parser: remove FIXME comment from _append_body_line
        qapi: Add spaces after symbol declaration for consistency
        qapi/parser: fix unused check_args_section arguments
        qapi/gen: use dict.items() to iterate over _modules
        qapi/pylintrc: ignore 'consider-using-f-string' warning
      
      Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
      f50ecf54
    • David Hildenbrand's avatar
      softmmu/memory_mapping: optimize for RamDiscardManager sections · cb83ba8c
      David Hildenbrand authored
      
      virtio-mem logically plugs/unplugs memory within a sparse memory region
      and notifies via the RamDiscardManager interface when parts become
      plugged (populated) or unplugged (discarded).
      
      Currently, we end up (via the two users)
      1) zeroing all logically unplugged/discarded memory during TPM resets.
      2) reading all logically unplugged/discarded memory when dumping, to
         figure out the content is zero.
      
      1) is always bad, because we assume unplugged memory stays discarded
         (and is already implicitly zero).
      2) isn't that bad with anonymous memory, we end up reading the zero
         page (slow and unnecessary, though). However, once we use some
         file-backed memory (future use case), even reading will populate memory.
      
      Let's cut out all parts marked as not-populated (discarded) via the
      RamDiscardManager. As virtio-mem is the single user, this now means that
      logically unplugged memory ranges will no longer be included in the
      dump, which results in smaller dump files and faster dumping.
      
      virtio-mem has a minimum granularity of 1 MiB (and the default is usually
      2 MiB). Theoretically, we can see quite some fragmentation, in practice
      we won't have it completely fragmented in 1 MiB pieces. Still, we might
      end up with many physical ranges.
      
      Both, the ELF format and kdump seem to be ready to support many
      individual ranges (e.g., for ELF it seems to be UINT32_MAX, kdump has a
      linear bitmap).
      
      Reviewed-by: default avatarPeter Xu <peterx@redhat.com>
      Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: "Michael S. Tsirkin" <mst@redhat.com>
      Cc: Eduardo Habkost <ehabkost@redhat.com>
      Cc: Alex Williamson <alex.williamson@redhat.com>
      Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
      Cc: Igor Mammedov <imammedo@redhat.com>
      Cc: Claudio Fontana <cfontana@suse.de>
      Cc: Thomas Huth <thuth@redhat.com>
      Cc: "Alex Bennée" <alex.bennee@linaro.org>
      Cc: Peter Xu <peterx@redhat.com>
      Cc: Laurent Vivier <lvivier@redhat.com>
      Cc: Stefan Berger <stefanb@linux.ibm.com>
      Signed-off-by: default avatarDavid Hildenbrand <david@redhat.com>
      Message-Id: <20210727082545.17934-5-david@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      cb83ba8c
    • David Hildenbrand's avatar
      softmmu/memory_mapping: factor out adding physical memory ranges · 3513bb1b
      David Hildenbrand authored
      
      Let's factor out adding a MemoryRegionSection to the list, to be reused in
      RamDiscardManager context next.
      
      Reviewed-by: default avatarStefan Berger <stefanb@linux.ibm.com>
      Reviewed-by: default avatarPeter Xu <peterx@redhat.com>
      Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: "Michael S. Tsirkin" <mst@redhat.com>
      Cc: Eduardo Habkost <ehabkost@redhat.com>
      Cc: Alex Williamson <alex.williamson@redhat.com>
      Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
      Cc: Igor Mammedov <imammedo@redhat.com>
      Cc: Claudio Fontana <cfontana@suse.de>
      Cc: Thomas Huth <thuth@redhat.com>
      Cc: "Alex Bennée" <alex.bennee@linaro.org>
      Cc: Peter Xu <peterx@redhat.com>
      Cc: Laurent Vivier <lvivier@redhat.com>
      Cc: Stefan Berger <stefanb@linux.ibm.com>
      Signed-off-by: default avatarDavid Hildenbrand <david@redhat.com>
      Message-Id: <20210727082545.17934-4-david@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      3513bb1b
Loading