1. 28 7月, 2020 5 次提交
    • J
      net: forbid the reentrant RX · 22dc8663
      Jason Wang 提交于
      The memory API allows DMA into NIC's MMIO area. This means the NIC's
      RX routine must be reentrant. Instead of auditing all the NIC, we can
      simply detect the reentrancy and return early. The queue->delivering
      is set and cleared by qemu_net_queue_deliver() for other queue helpers
      to know whether the delivering in on going (NIC's receive is being
      called). We can check it and return early in qemu_net_queue_flush() to
      forbid reentrant RX.
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      22dc8663
    • J
      virtio-net: check the existence of peer before accessing vDPA config · c546ecf2
      Jason Wang 提交于
      We try to check whether a peer is VDPA in order to get config from
      there - with no peer, this leads to a NULL
      pointer dereference. Add a check before trying to access the peer
      type. No peer means not VDPA.
      
      Fixes: 108a6481 ("vhost-vdpa: introduce vhost-vdpa backend")
      Cc: Cindy Lu <lulu@redhat.com>
      Tested-by: NCornelia Huck <cohuck@redhat.com>
      Reviewed-by: NCornelia Huck <cohuck@redhat.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      c546ecf2
    • Y
      virtio-pci: fix wrong index in virtio_pci_queue_enabled · a48aaf88
      Yuri Benditovich 提交于
      We should use the index passed by the caller instead of the queue_sel
      when checking the enablement of a specific virtqueue.
      
      This is reported in https://bugzilla.redhat.com/show_bug.cgi?id=1702608
      
      Fixes: f19bcdfe ("virtio-pci: implement queue_enabled method")
      Signed-off-by: NYuri Benditovich <yuri.benditovich@daynix.com>
      Signed-off-by: NJason Wang <jasowang@redhat.com>
      a48aaf88
    • P
      Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging · 93ea4843
      Peter Maydell 提交于
      virtio,pci: bugfixes
      
      Minor bugfixes all over the places, including one CVE.
      
      Additionally, a fix for an ancient bug in migration -
      one has to wonder how come no one noticed.
      
      The fix is also non-trivial since we dare not break all
      existing machine types with pci - we have a work around
      in the works, for now we just skip the work-around for
      old machine types.
      
      Great job by Hogan Wang noticing, debugging and fixing it,
      and thanks to Dr. David Alan Gilbert for reviewing the patches.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      
      # gpg: Signature made Mon 27 Jul 2020 16:34:58 BST
      # gpg:                using RSA key 5D09FD0871C8F85B94CA8A0D281F0DB8D28D5469
      # gpg:                issuer "mst@redhat.com"
      # gpg: Good signature from "Michael S. Tsirkin <mst@kernel.org>" [full]
      # gpg:                 aka "Michael S. Tsirkin <mst@redhat.com>" [full]
      # Primary key fingerprint: 0270 606B 6F3C DF3D 0B17  0970 C350 3912 AFBE 8E67
      #      Subkey fingerprint: 5D09 FD08 71C8 F85B 94CA  8A0D 281F 0DB8 D28D 5469
      
      * remotes/mst/tags/for_upstream:
        virtio-pci: fix virtio_pci_queue_enabled()
        MAINTAINERS: Cover the firmware JSON schema
        vhost-vdpa :Fix Coverity CID 1430270 / CID 1420267
        libvhost-user: Report descriptor index on panic
        Fix vhost-user buffer over-read on ram hot-unplug
        hw/pci-host: save/restore pci host config register
        virtio-mem-pci: force virtio version 1
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      93ea4843
    • P
      Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20200727' into staging · 9303ecb6
      Peter Maydell 提交于
      fixes for protected virtualization and loadparm handling
      
      # gpg: Signature made Mon 27 Jul 2020 15:01:32 BST
      # gpg:                using RSA key C3D0D66DC3624FF6A8C018CEDECF6B93C6F02FAF
      # gpg:                issuer "cohuck@redhat.com"
      # gpg: Good signature from "Cornelia Huck <conny@cornelia-huck.de>" [marginal]
      # gpg:                 aka "Cornelia Huck <huckc@linux.vnet.ibm.com>" [full]
      # gpg:                 aka "Cornelia Huck <cornelia.huck@de.ibm.com>" [full]
      # gpg:                 aka "Cornelia Huck <cohuck@kernel.org>" [marginal]
      # gpg:                 aka "Cornelia Huck <cohuck@redhat.com>" [marginal]
      # Primary key fingerprint: C3D0 D66D C362 4FF6 A8C0  18CE DECF 6B93 C6F0 2FAF
      
      * remotes/cohuck/tags/s390x-20200727:
        s390x/s390-virtio-ccw: fix loadparm property getter
        s390x/protvirt: allow to IPL secure guests with -no-reboot
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      9303ecb6
  2. 27 7月, 2020 27 次提交
  3. 26 7月, 2020 3 次提交
  4. 25 7月, 2020 5 次提交