1. 14 12月, 2017 32 次提交
  2. 13 12月, 2017 1 次提交
  3. 12 12月, 2017 2 次提交
  4. 06 12月, 2017 1 次提交
  5. 05 12月, 2017 4 次提交
    • E
      vhost-scsi: add missing virtqueue_size parameter · 2994cb2e
      Eric Farman 提交于
      Commit 5c0919d0 ("virtio-scsi: Add virtqueue_size parameter allowing
      virtqueue size to be set.") introduced a new parameter to virtio-scsi.
      Later, commit 92003610 ("vhost-user-scsi: add missing virtqueue_size
      param") added that parameter to the new vhost-user-scsi interface but
      neglected the existing vhost-scsi interface it was built on.
      
      Apply the same change to vhost-scsi, so that we can boot a guest with
      a device defined.  This also avoids crashing a guest when hotplugging
      a vhost-scsi device.
      Signed-off-by: NEric Farman <farman@linux.vnet.ibm.com>
      Message-id: 20171201151538.6844-2-farman@linux.vnet.ibm.com
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      2994cb2e
    • P
      Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.11-20171205' into staging · 88f714aa
      Peter Maydell 提交于
      ppc patch queue 2017-12-05
      
      Alas, this is yet another fix for ppc that I think it's worth
      squeezing into 2.11.  It's a really ugly fix for some pretty ugly
      code, but it does seem to address a real problem.  It's also a problem
      that's appeared relatively recently, since it was either created by,
      or made much easier to trigger by, by the merge of MTTCG.
      
      # gpg: Signature made Tue 05 Dec 2017 05:24:04 GMT
      # gpg:                using RSA key 0x6C38CACA20D9B392
      # gpg: Good signature from "David Gibson <david@gibson.dropbear.id.au>"
      # gpg:                 aka "David Gibson (Red Hat) <dgibson@redhat.com>"
      # gpg:                 aka "David Gibson (ozlabs.org) <dgibson@ozlabs.org>"
      # gpg:                 aka "David Gibson (kernel.org) <dwg@kernel.org>"
      # Primary key fingerprint: 75F4 6586 AE61 A66C C44E  87DC 6C38 CACA 20D9 B392
      
      * remotes/dgibson/tags/ppc-for-2.11-20171205:
        target/ppc: Fix system lockups caused by interrupt_request state corruption
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      88f714aa
    • R
      target/ppc: Fix system lockups caused by interrupt_request state corruption · 044897ef
      Richard Purdie 提交于
      Occasionally in Linux guests on x86_64 we're seeing logs like:
      
      ppc_set_irq: 0x55b4e0d562f0 n_IRQ 8 level 1 => pending 00000100req 00000004
      
      when they should read:
      
      ppc_set_irq: 0x55b4e0d562f0 n_IRQ 8 level 1 => pending 00000100req 00000002
      
      The "00000004" is CPU_INTERRUPT_EXITTB yet the code calls
      cpu_interrupt(cs, CPU_INTERRUPT_HARD) ("00000002") in this function
      just before the log message. Something is causing the HARD bit setting
      to get lost.
      
      The knock on effect of losing that bit is the decrementer timer interrupts
      don't get delivered which causes the guest to sit idle in its idle handler
      and 'hang'.
      
      The issue occurs due to races from code which sets CPU_INTERRUPT_EXITTB.
      
      Rather than poking directly into cs->interrupt_request, that code needs to:
      
      a) hold BQL
      b) use the cpu_interrupt() helper
      
      This patch fixes the call sites to do this, fixing the hang. The calls
      are made from a variety of contexts so a helper function is added to handle
      the necessary locking. This can likely be improved and optimised in the future
      but it ensures the code is correct and doesn't lockup as it stands today.
      Signed-off-by: NRichard Purdie <richard.purdie@linuxfoundation.org>
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      044897ef
    • P
      Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging · 2a4c7e83
      Peter Maydell 提交于
      Block layer patches for 2.11.0-rc4
      
      # gpg: Signature made Mon 04 Dec 2017 16:46:07 GMT
      # gpg:                using RSA key 0x7F09B272C88F2FD6
      # gpg: Good signature from "Kevin Wolf <kwolf@redhat.com>"
      # Primary key fingerprint: DC3D EB15 9A9A F95D 3D74  56FE 7F09 B272 C88F 2FD6
      
      * remotes/kevin/tags/for-upstream:
        blockjob: Make block_job_pause_all() keep a reference to the jobs
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      2a4c7e83