Skip to content
Snippets Groups Projects
  1. Dec 11, 2020
    • Hanna Reitz's avatar
      fuse: (Partially) implement fallocate() · 4ca37a96
      Hanna Reitz authored
      
      This allows allocating areas after the (old) EOF as part of a growing
      resize, writing zeroes, and discarding.
      
      Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
      Message-Id: <20201027190600.192171-6-mreitz@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      4ca37a96
    • Hanna Reitz's avatar
      fuse: Allow growable exports · 4fba06d5
      Hanna Reitz authored
      
      These will behave more like normal files in that writes beyond the EOF
      will automatically grow the export size.
      
      As an optimization, keep the RESIZE permission for growable exports so
      we do not have to take it for every post-EOF write.  (This permission is
      not released when the export is destroyed, because at that point the
      BlockBackend is destroyed altogether anyway.)
      
      Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
      Message-Id: <20201027190600.192171-5-mreitz@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      4fba06d5
    • Hanna Reitz's avatar
      fuse: Implement standard FUSE operations · 41429e3d
      Hanna Reitz authored
      
      This makes the export actually useful instead of only producing errors
      whenever it is accessed.
      
      Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
      Message-Id: <20201027190600.192171-4-mreitz@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      41429e3d
    • Hanna Reitz's avatar
      fuse: Allow exporting BDSs via FUSE · 0c9b70d5
      Hanna Reitz authored
      
      block-export-add type=fuse allows mounting block graph nodes via FUSE on
      some existing regular file.  That file should then appears like a raw
      disk image, and accesses to it result in accesses to the exported BDS.
      
      Right now, we only implement the necessary block export functions to set
      it up and shut it down.  We do not implement any access functions, so
      accessing the mount point only results in errors.  This will be
      addressed by a followup patch.
      
      We keep a hash table of exported mount points, because we want to be
      able to detect when users try to use a mount point twice.  This is
      because we invoke stat() to check whether the given mount point is a
      regular file, but if that file is served by ourselves (because it is
      already used as a mount point), then this stat() would have to be served
      by ourselves, too, which is impossible to do while we (as the caller)
      are waiting for it to settle.  Therefore, keep track of mount point
      paths to at least catch the most obvious instances of that problem.
      
      Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
      Message-Id: <20201027190600.192171-3-mreitz@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      0c9b70d5
    • Hanna Reitz's avatar
      meson: Detect libfuse · a484a719
      Hanna Reitz authored
      
      Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
      Message-Id: <20201027190600.192171-2-mreitz@redhat.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      a484a719
    • Gan Qixin's avatar
      block/iscsi: Use lock guard macros · c208b0ef
      Gan Qixin authored
      
      Replace manual lock()/unlock() calls with lock guard macros
      (QEMU_LOCK_GUARD/WITH_QEMU_LOCK_GUARD) in block/iscsi.
      
      Signed-off-by: default avatarGan Qixin <ganqixin@huawei.com>
      Message-Id: <20201203075055.127773-5-ganqixin@huawei.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      c208b0ef
    • Gan Qixin's avatar
      block/throttle-groups: Use lock guard macros · 3af613eb
      Gan Qixin authored
      
      Replace manual lock()/unlock() calls with lock guard macros
      (QEMU_LOCK_GUARD/WITH_QEMU_LOCK_GUARD) in block/throttle-groups.
      
      Signed-off-by: default avatarGan Qixin <ganqixin@huawei.com>
      Message-Id: <20201203075055.127773-4-ganqixin@huawei.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      3af613eb
    • Gan Qixin's avatar
      block/curl: Use lock guard macros · f5056b70
      Gan Qixin authored
      
      Replace manual lock()/unlock() calls with lock guard macros
      (QEMU_LOCK_GUARD/WITH_QEMU_LOCK_GUARD) in block/curl.
      
      Signed-off-by: default avatarGan Qixin <ganqixin@huawei.com>
      Reviewed-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      Message-Id: <20201203075055.127773-3-ganqixin@huawei.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      f5056b70
    • Gan Qixin's avatar
      block/accounting: Use lock guard macros · c37c9736
      Gan Qixin authored
      
      Replace manual lock()/unlock() calls with lock guard macros
      (QEMU_LOCK_GUARD/WITH_QEMU_LOCK_GUARD) in block/accounting.
      
      Signed-off-by: default avatarGan Qixin <ganqixin@huawei.com>
      Reviewed-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      Message-Id: <20201203075055.127773-2-ganqixin@huawei.com>
      Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
      c37c9736
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/bonzini-gitlab/tags/for-upstream' into staging · b785d25e
      Peter Maydell authored
      
      * Fix for NULL segments (Bin Meng)
      * Support for 32768 CPUs on x86 without IOMMU (David)
      * PDEP/PEXT fix and testcase (myself)
      * Remove bios_name and ram_size globals (myself)
      * qemu_init rationalization (myself)
      * Update kernel-doc (myself + upstream patches)
      * Propagate MemTxResult across DMA and PCI functions (Philippe)
      * Remove master/slave when applicable (Philippe)
      * WHPX support for in-kernel irqchip (Sunil)
      
      # gpg: Signature made Thu 10 Dec 2020 17:21:50 GMT
      # 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]
      # Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4  E2F7 7E15 100C CD36 69B1
      #      Subkey fingerprint: F133 3857 4B66 2389 866C  7682 BFFB D25F 78C7 AE83
      
      * remotes/bonzini-gitlab/tags/for-upstream: (113 commits)
        scripts: kernel-doc: remove unnecessary change wrt Linux
        Revert "docs: temporarily disable the kernel-doc extension"
        scripts: kernel-doc: use :c:union when needed
        scripts: kernel-doc: split typedef complex regex
        scripts: kernel-doc: fix typedef parsing
        Revert "kernel-doc: Handle function typedefs that return pointers"
        Revert "kernel-doc: Handle function typedefs without asterisks"
        scripts: kernel-doc: try to use c:function if possible
        scripts: kernel-doc: fix line number handling
        scripts: kernel-doc: allow passing desired Sphinx C domain dialect
        scripts: kernel-doc: don't mangle with parameter list
        scripts: kernel-doc: fix typedef identification
        scripts: kernel-doc: reimplement -nofunction argument
        scripts: kernel-doc: fix troubles with line counts
        scripts: kernel-doc: use a less pedantic markup for funcs on Sphinx 3.x
        scripts: kernel-doc: make it more compatible with Sphinx 3.x
        Revert "kernel-doc: Use c:struct for Sphinx 3.0 and later"
        Revert "scripts/kerneldoc: For Sphinx 3 use c:macro for macros with arguments"
        scripts: kernel-doc: add support for typedef enum
        kernel-doc: add support for ____cacheline_aligned attribute
        ...
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      b785d25e
    • Peter Maydell's avatar
      Merge remote-tracking branch 'remotes/ehabkost/tags/machine-next-pull-request' into staging · 33744604
      Peter Maydell authored
      
      Machine queue, 2020-12-10
      
      Some patches that were queued after 5.2 soft freeze.
      
      # gpg: Signature made Thu 10 Dec 2020 22:41:29 GMT
      # gpg:                using RSA key 5A322FD5ABC4D3DBACCFD1AA2807936F984DC5A6
      # gpg:                issuer "ehabkost@redhat.com"
      # gpg: Good signature from "Eduardo Habkost <ehabkost@redhat.com>" [full]
      # Primary key fingerprint: 5A32 2FD5 ABC4 D3DB ACCF  D1AA 2807 936F 984D C5A6
      
      * remotes/ehabkost/tags/machine-next-pull-request:
        i386/cpu: Make the Intel PT LIP feature configurable
        sev: add sev-inject-launch-secret
        qom: code hardening - have bound checking while looping with integer value
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      33744604
  2. Dec 10, 2020
Loading