1. 18 4月, 2019 10 次提交
  2. 17 4月, 2019 2 次提交
  3. 16 4月, 2019 5 次提交
    • P
      Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging · dbfc49b6
      Peter Maydell 提交于
      Block layer patches:
      
      - qcow2: Fix potential corruption for preallocated resize with external data file
      
      # gpg: Signature made Tue 16 Apr 2019 15:23:35 BST
      # gpg:                using RSA key 7F09B272C88F2FD6
      # gpg: Good signature from "Kevin Wolf <kwolf@redhat.com>" [full]
      # Primary key fingerprint: DC3D EB15 9A9A F95D 3D74  56FE 7F09 B272 C88F 2FD6
      
      * remotes/kevin/tags/for-upstream:
        qcow2: Fix preallocation bdrv_pwrite to wrong file
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      dbfc49b6
    • K
      qcow2: Fix preallocation bdrv_pwrite to wrong file · 93e32b3e
      Kevin Wolf 提交于
      With an external data file, preallocate_co() must write the final byte
      to the external data file, not to the qcow2 image file.
      
      This is harmless for preallocation of newly created images (only the
      qcow2 file size is increased to the virtual disk size while it should be
      much smaller), but with preallocated resize, it could in theory cause
      visible corruption if the metadata of the image is larger than the data
      (e.g. lots of bitmaps).
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      93e32b3e
    • M
      socket: allow wait=false for client socket · a9b305ba
      Marc-André Lureau 提交于
      Commit 767abe7f ("chardev: forbid 'wait' option with client sockets")
      is a bit too strict. Current libvirt always set wait=false, and will
      thus fail to add client chardev.
      
      Make the code more permissive, allowing wait=false with client socket
      chardevs. Deprecate usage of 'wait' with client sockets.
      
      Fixes: 767abe7f
      Cc: Daniel P. Berrangé <berrange@redhat.com>
      Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      Message-id: 20190415163337.2795-1-marcandre.lureau@redhat.com
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      a9b305ba
    • P
      Merge remote-tracking branch 'remotes/thibault/tags/samuel-thibault' into staging · 677746b3
      Peter Maydell 提交于
      Slirp updates
      
      Dr. David Alan Gilbert (1):
        slirp: Gcc 9 -O3 fix
      
      # gpg: Signature made Mon 15 Apr 2019 19:05:39 BST
      # gpg:                using RSA key E61DBB15D4172BDEC97E92D9DB550E89F0FA54F3
      # gpg: Good signature from "Samuel Thibault <samuel.thibault@aquilenet.fr>" [unknown]
      # gpg:                 aka "Samuel Thibault <sthibault@debian.org>" [marginal]
      # gpg:                 aka "Samuel Thibault <samuel.thibault@gnu.org>" [unknown]
      # gpg:                 aka "Samuel Thibault <samuel.thibault@inria.fr>" [marginal]
      # gpg:                 aka "Samuel Thibault <samuel.thibault@labri.fr>" [marginal]
      # gpg:                 aka "Samuel Thibault <samuel.thibault@ens-lyon.org>" [marginal]
      # gpg:                 aka "Samuel Thibault <samuel.thibault@u-bordeaux.fr>" [unknown]
      # gpg: WARNING: This key is not certified with sufficiently trusted signatures!
      # gpg:          It is not certain that the signature belongs to the owner.
      # Primary key fingerprint: 900C B024 B679 31D4 0F82  304B D017 8C76 7D06 9EE6
      #      Subkey fingerprint: E61D BB15 D417 2BDE C97E  92D9 DB55 0E89 F0FA 54F3
      
      * remotes/thibault/tags/samuel-thibault:
        slirp: Gcc 9 -O3 fix
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      677746b3
    • D
      slirp: Gcc 9 -O3 fix · 6fabae61
      Dr. David Alan Gilbert 提交于
      Gcc 9 needs some convincing that sopreprbuf really is going to fill
      in iov in the call from soreadbuf, even though the failure case
      shouldn't happen.
      Signed-off-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
      Message-Id: <20190415121740.9881-1-dgilbert@redhat.com>
      Signed-off-by: NSamuel Thibault <samuel.thibault@ens-lyon.org>
      6fabae61
  4. 13 4月, 2019 3 次提交
  5. 12 4月, 2019 4 次提交
    • J
      qemu-img: fix .hx and .texi disparity · 13c24eda
      John Snow 提交于
      It turns out that having options listed in three places continues to be
      a bad idea. I'm still toying with the idea of an improved infrastructure
      here, but in the meantime, another bandaid.
      
      There are three locations:
      (1) .hx file, formatted as texi
      (2) .hx file, formatted as human readable.
      (3) .texi file, as section headers, formatted as texi.
      
      You can compare the two summaries within the .hx file like so:
      
      Human-readable command summaries:
      `./qemu-img --help | grep 'Command syntax' -A14`
      Detokenized texi command summaries:
      `grep "@item" qemu-img-cmds.hx | sed -E 's|@var\{([^\}]*?)\}|\1|g'`
      
      You can compare the two separate texi summaries like so:
      
      Texi command summaries:
      `grep "@item" qemu-img-cmds.hx"`
      Texi command headers:
      grep -E "@item.*@var" qemu-img.texi | tail -14
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Message-id: 20190409210655.777-1-jsnow@redhat.com
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      13c24eda
    • G
      curses: fix wchar_t printf warning · e1be9854
      Gerd Hoffmann 提交于
      On some systems wchar_t is "long int", on others just "int".
      So go cast to "long int" and adjust the printf format accordingly.
      Reported-by: NMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Reviewed-by: NPhilippe Mathieu-Daudé <philmd@redhat.com>
      Message-id: 20190402073018.17747-1-kraxel@redhat.com
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      e1be9854
    • P
      Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-4.0-20190412' into staging · 9e4a484b
      Peter Maydell 提交于
      ppc patch queue for 2018-04-12
      
      Here's a last minute pull request for 4.0.  Turns out my last pull
      request, to fix a regression in extended config space access for the
      pseries machine didn't fix things hard enough.  This PR has a single
      patch which improves the fix to work in more cases.
      
      It's a ghastly, ghastly hack, but it's simple and localized.  I
      already have patches almost ready to go in 4.1 that provides a simpler
      and cleaner solution to all this.
      
      # gpg: Signature made Fri 12 Apr 2019 06:34:16 BST
      # gpg:                using RSA key 75F46586AE61A66CC44E87DC6C38CACA20D9B392
      # gpg: Good signature from "David Gibson <david@gibson.dropbear.id.au>" [full]
      # gpg:                 aka "David Gibson (Red Hat) <dgibson@redhat.com>" [full]
      # gpg:                 aka "David Gibson (ozlabs.org) <dgibson@ozlabs.org>" [full]
      # gpg:                 aka "David Gibson (kernel.org) <dwg@kernel.org>" [unknown]
      # Primary key fingerprint: 75F4 6586 AE61 A66C C44E  87DC 6C38 CACA 20D9 B392
      
      * remotes/dgibson/tags/ppc-for-4.0-20190412:
        spapr_pci: Fix broken naming of PCI bus
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      9e4a484b
    • G
      spapr_pci: Fix broken naming of PCI bus · 4560116e
      Greg Kurz 提交于
      Recent commit 5cf0d326 fixed a regression which was preventing the
      guest to access the extended config space of a PCIe device. This was
      done by introducing a new PCI bus subtype for PAPR. The original fix
      was causing PCI busses to be named "spapr-pci-host-bridge-root-bus.N"
      instead of "pci.N", which was making upper layers unhappy of course.
      This got worked around by hardcoding the PCI bus name to "pci.0", but
      this only works for the default PHB. And we're now hitting:
      
      # qemu-system-ppc64 \
                   -device spapr-pci-host-bridge,index=1 \
                   -device e1000e,bus=pci.0 \
                   -device e1000e,bus=pci.1
      qemu-system-ppc64: -device e1000e,bus=pci.1: Bus 'pci.1' not found
      
      David already posted some patches [1] to control PCI extended config
      space accesses with a new flag in the base PCI bus class instead of
      subtyping. These patches are a bit more intrusive though, and
      are targetted for 4.1.
      
      When no name is passed to pci_register_bus(), the core device code
      generates a lowercase name based on the QOM typename. The typename
      for the base PCI bus class is "PCI", hence the "pci.0", "pci.1"
      bus names. Rename the type of the PAPR PCI bus to "pci", so that
      the QOM code can generate proper names. This is a hack but it is
      enough to fix the regression. And all this will be reworked properly
      in 4.1.
      
      [1] https://patchwork.ozlabs.org/project/qemu-devel/list/?series=100486
      
      Fixes: 5cf0d326Signed-off-by: NGreg Kurz <groug@kaod.org>
      Message-Id: <155500034416.646888.1307366522340665522.stgit@bahia.lab.toulouse-stg.fr.ibm.com>
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      4560116e
  6. 10 4月, 2019 10 次提交
  7. 09 4月, 2019 6 次提交
    • P
      target/i386: Generate #UD for LOCK on a register increment · 8cb2ca3d
      Peter Maydell 提交于
      Fix a TCG crash due to attempting an atomic increment
      operation without having set up the address first.
      This is a similar case to that dealt with in commit
      e84fcd7f, and we fix it in the same way.
      
      Fixes: https://bugs.launchpad.net/qemu/+bug/1807675Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Acked-by: NPaolo Bonzini <pbonzini@redhat.com>
      Message-id: 20190328104750.25046-1-peter.maydell@linaro.org
      8cb2ca3d
    • P
      Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-4.0-20190409' into staging · 120cba7f
      Peter Maydell 提交于
      ppc patch queue 2019-04-09
      
      This is a small, hard freeze, pull request which fixes a regression on
      the pseries machine handling of PCI-E extended config space accesses.
      
      # gpg: Signature made Tue 09 Apr 2019 08:00:36 BST
      # gpg:                using RSA key 75F46586AE61A66CC44E87DC6C38CACA20D9B392
      # gpg: Good signature from "David Gibson <david@gibson.dropbear.id.au>" [full]
      # gpg:                 aka "David Gibson (Red Hat) <dgibson@redhat.com>" [full]
      # gpg:                 aka "David Gibson (ozlabs.org) <dgibson@ozlabs.org>" [full]
      # gpg:                 aka "David Gibson (kernel.org) <dwg@kernel.org>" [unknown]
      # Primary key fingerprint: 75F4 6586 AE61 A66C C44E  87DC 6C38 CACA 20D9 B392
      
      * remotes/dgibson/tags/ppc-for-4.0-20190409:
        spapr_pci: Fix extended config space accesses
        pci: Allow PCI bus subtypes to support extended config space accesses
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      120cba7f
    • P
      Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-4.0-pull-request' into staging · 248987f9
      Peter Maydell 提交于
      fix gettid() clash with new glibc
      
      # gpg: Signature made Mon 08 Apr 2019 20:36:06 BST
      # gpg:                using RSA key F30C38BD3F2FBE3C
      # gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" [full]
      # gpg:                 aka "Laurent Vivier <laurent@vivier.eu>" [full]
      # gpg:                 aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" [full]
      # Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F  5173 F30C 38BD 3F2F BE3C
      
      * remotes/vivier2/tags/linux-user-for-4.0-pull-request:
        linux-user: rename gettid() to sys_gettid() to avoid clash with glibc
        linux-user: assume __NR_gettid always exists
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      248987f9
    • G
      spapr_pci: Fix extended config space accesses · 5cf0d326
      Greg Kurz 提交于
      The PAPR PHB acts as a legacy PCI bus but it allows PCIe extended
      config space accesses anyway (for pseries-2.9 and newer machine
      types).
      
      Introduce a specific PCI bus subtype to inform the common PCI code
      about that.
      
      Fixes: c2077e2cSigned-off-by: NGreg Kurz <groug@kaod.org>
      Message-Id: <155414130834.574858.16502276132110219890.stgit@bahia.lan>
      [dwg: Apply fix so we don't rename the default pci bus, breaking everything]
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      5cf0d326
    • G
      pci: Allow PCI bus subtypes to support extended config space accesses · 1c685a90
      Greg Kurz 提交于
      Some PHB implementations, eg. PAPR used on pseries machine, act like
      a regular PCI bus rather than a PCIe bus, but allow access to the
      PCIe extended config space anyway.
      
      Introduce a new PCI bus class method to modelize this behaviour and
      use it when adjusting the config space size limit during accesses.
      
      No behaviour change for existing PCI bus types.
      Signed-off-by: NGreg Kurz <groug@kaod.org>
      Message-Id: <155414130271.574858.4253514266378127489.stgit@bahia.lan>
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      1c685a90
    • P
      Merge remote-tracking branch 'remotes/ericb/tags/pull-nbd-2019-04-08' into staging · 7fe1427b
      Peter Maydell 提交于
      nbd patches for 2019-04-08
      
      - Fix minor issues in recent alignment patches
      
      # gpg: Signature made Mon 08 Apr 2019 19:53:48 BST
      # gpg:                using RSA key A7A16B4A2527436A
      # gpg: Good signature from "Eric Blake <eblake@redhat.com>" [full]
      # gpg:                 aka "Eric Blake (Free Software Programmer) <ebb9@byu.net>" [full]
      # gpg:                 aka "[jpeg image of size 6874]" [full]
      # Primary key fingerprint: 71C2 CC22 B1C4 6029 27D2  F3AA A7A1 6B4A 2527 436A
      
      * remotes/ericb/tags/pull-nbd-2019-04-08:
        nbd/client: Fix error message for server with unusable sizing
        nbd/server: Don't fail NBD_OPT_INFO for byte-aligned sources
        nbd/server: Trace client noncompliance on unaligned requests
        nbd/server: Fix blockstatus trace
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      7fe1427b