1. 13 4月, 2016 10 次提交
  2. 12 4月, 2016 1 次提交
  3. 11 4月, 2016 10 次提交
  4. 08 4月, 2016 19 次提交
    • P
      Merge remote-tracking branch 'remotes/lalrae/tags/mips-20160408' into staging · 9628af03
      Peter Maydell 提交于
      MIPS patches 2016-04-08
      
      Changes:
      * fix off-by-one error in ITU
      
      # gpg: Signature made Fri 08 Apr 2016 10:43:16 BST using RSA key ID 0B29DA6B
      # gpg: Good signature from "Leon Alrae <leon.alrae@imgtec.com>"
      
      * remotes/lalrae/tags/mips-20160408:
        hw/mips_itu: fix off-by-one reported by Coverity
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      9628af03
    • P
      Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging · 8227e2d1
      Peter Maydell 提交于
      pci, virtio, acpi: fixes for 2.6
      
      Fixes all over the place. Most notably, fixes migration
      for systems with pci express bridges, and random crashes
      observed with virtio blk and scsi dataplane.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      
      # gpg: Signature made Fri 08 Apr 2016 08:53:46 BST using RSA key ID D28D5469
      # gpg: Good signature from "Michael S. Tsirkin <mst@kernel.org>"
      # gpg:                 aka "Michael S. Tsirkin <mst@redhat.com>"
      
      * remotes/mst/tags/for_upstream:
        hw/pci-bridge: Add missing unref in case register-bus fails
        virtio: merge virtio_queue_aio_set_host_notifier_handler with virtio_queue_set_aio
        virtio-scsi: use aio handler for data plane
        virtio-blk: use aio handler for data plane
        virtio: add aio handler
        virtio-scsi: fix disabled mode
        virtio-blk: fix disabled mode
        virtio: make virtio_queue_notify_vq static
        tests/bios-tables-test: fix assert
        virtio-balloon: reset the statistic timer to load device
        Migration: Add i82801b11 migration data
        Sort the fw_cfg file list
        xen: piix reuse pci generic class init function
        pci-testdev: fast mmio support
        acpi: Add missing GCC_FMT_ATTR
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      8227e2d1
    • P
      Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.6-20160408' into staging · 3be4f4d7
      Peter Maydell 提交于
      ppc patch queue for 2016-04-08
      
      Just a single bugfix for spapr in this batch, but I want to make sure
      it gets in for 2.6.
      
      # gpg: Signature made Fri 08 Apr 2016 06:02:45 BST using RSA key ID 20D9B392
      # 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: 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: 75F4 6586 AE61 A66C C44E  87DC 6C38 CACA 20D9 B392
      
      * remotes/dgibson/tags/ppc-for-2.6-20160408:
        spapr: Fix ibm,lrdr-capacity
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      3be4f4d7
    • P
      Merge remote-tracking branch 'remotes/xtensa/tags/20160408-xtensa' into staging · 24790aef
      Peter Maydell 提交于
      Xtensa-related fixes:
      
      - fix networking on xtfpga platform in linux v4.5 by indicating
        autonegotiation completion in opencores_eth MII BMSR.
      
      # gpg: Signature made Thu 07 Apr 2016 23:33:59 BST using RSA key ID F83FA044
      # gpg: Good signature from "Max Filippov <max.filippov@cogentembedded.com>"
      # gpg:                 aka "Max Filippov <jcmvbkbc@gmail.com>"
      
      * remotes/xtensa/tags/20160408-xtensa:
        opencores_eth: indicate autonegotiation completion
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      24790aef
    • P
      Merge remote-tracking branch 'remotes/weil/tags/pull-tci-20160407' into staging · 5542417d
      Peter Maydell 提交于
      tci patch queue
      
      # gpg: Signature made Thu 07 Apr 2016 18:01:55 BST using RSA key ID 677450AD
      # gpg: Good signature from "Stefan Weil <sw@weilnetz.de>"
      # gpg:                 aka "Stefan Weil <stefan.weil@weilnetz.de>"
      # gpg:                 aka "Stefan Weil <stefan.weil@bib.uni-mannheim.de>"
      # 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: 4923 6FEA 75C9 5D69 8EC2  B78A E08C 21D5 6774 50AD
      
      * remotes/weil/tags/pull-tci-20160407:
        tci: Fix build regression
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      5542417d
    • P
      Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging · 28ee0126
      Peter Maydell 提交于
      * NBD fixes from Alex and Eric
      * Debug code bitrot from Emilio
      * HPET fix from Bill
      * ps2kbd fix from Hervé
      * PKU fix from myself
      * Coverity fixes from Gonglei
      * More memory.txt update from Jiangang
      * .gitignore maintenance from Changlong
      
      # gpg: Signature made Thu 07 Apr 2016 23:08:12 BST using RSA key ID 78C7AE83
      # gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org>"
      # gpg:                 aka "Paolo Bonzini <pbonzini@redhat.com>"
      
      * remotes/bonzini/tags/for-upstream:
        target-i386: check for PKU even for non-writable pages
        tests: ignore test-logging
        translate-all: add missing fold of tb_ctx into tcg_ctx
        hostmem-file: fix memory leak
        spapr: fix possible Negative array index read
        nbd: do not hang nbd_wr_syncv if outside a coroutine and no available data
        nbd: Don't kill server when client requests unknown option
        nbd: Fix NBD unsupported options
        qemu-nbd: Document -x option
        nbd: Improve debug traces on little-endian
        nbd: Avoid bitrot in TRACE() usage
        nbd: Return correct error for write to read-only export
        docs: fix typo in memory.txt
        hw/timer: Revert "hpet: inverse polarity when pin above ISA_NUM_IRQS"
        ps2kbd: default to scancode_set 2, as with KBD_CMD_RESET
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      28ee0126
    • L
      hw/mips_itu: fix off-by-one reported by Coverity · f2eb665a
      Leon Alrae 提交于
      Fix off-by-one error in ITC Tag read.
      
      Remove the switch as we just want to check if index is in valid range
      rather than test against list of values.
      Signed-off-by: NLeon Alrae <leon.alrae@imgtec.com>
      f2eb665a
    • B
      spapr: Fix ibm,lrdr-capacity · a110655a
      Bharata B Rao 提交于
      ibm,lrdr-capacity has a field to describe the maximum address in bytes
      and therefore, the most memory that can be allocated to this guest. We
      are using maxmem for this field, but instead should use the actual RAM
      address corresponding to the end of hotplug region.
      Signed-off-by: NBharata B Rao <bharata@linux.vnet.ibm.com>
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      a110655a
    • P
      target-i386: check for PKU even for non-writable pages · 44d066a2
      Paolo Bonzini 提交于
      Xiao Guangrong ran kvm-unit-tests on an actual machine with PKU and
      found that it fails:
      
      test pte.p pte.user pde.p pde.user pde.a pde.pse pkru.wd pkey=1 user write efer.nx cr4.pke: FAIL: error code 27 expected 7
      Dump mapping: address: 0x123400000000
      ------L4: 2ebe007
      ------L3: 2ebf007
      ------L2: 8000000020000a5
      
      (All failures are combinations of "pde.user pde.p pkru.wd pkey=1",
      plus either "pde.pse" or "pte.p pte.user", plus one of "user cr0.wp",
      "cr0.wp" or "user", plus unimportant bits such as accessed/dirty or
      efer.nx).
      
      So PFEC.PKEY is set even if the ordinary check failed (which it did
      because pde.w is zero).  Adjust QEMU to match behavior of silicon.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      44d066a2
    • C
      tests: ignore test-logging · 57a6c059
      Changlong Xie 提交于
      Commit 3514552e added a new test, but did not mark it for
      exclusion in .gitignore.
      Signed-off-by: NChanglong Xie <xiecl.fnst@cn.fujitsu.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Message-Id: <1459903756-30672-1-git-send-email-xiecl.fnst@cn.fujitsu.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      57a6c059
    • E
      translate-all: add missing fold of tb_ctx into tcg_ctx · 7e6bd36d
      Emilio G. Cota 提交于
      Since 5e5f07e0 "TCG: Move translation block variables
      to new context inside tcg_ctx: tb_ctx" on Feb 1 2013, compilation
      of usermode + TB_DEBUG_CHECK has been broken. Fix it.
      Signed-off-by: NEmilio G. Cota <cota@braap.org>
      Message-Id: <1459834253-8291-2-git-send-email-cota@braap.org>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      7e6bd36d
    • G
      hostmem-file: fix memory leak · 696b5501
      Gonglei 提交于
      Signed-off-by: NGonglei <arei.gonglei@huawei.com>
      Message-Id: <1456998223-12356-5-git-send-email-arei.gonglei@huawei.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      696b5501
    • G
      spapr: fix possible Negative array index read · 1a5512bb
      Gonglei 提交于
      fix CID 1351391.
      Signed-off-by: NGonglei <arei.gonglei@huawei.com>
      Message-Id: <1456998223-12356-6-git-send-email-arei.gonglei@huawei.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      1a5512bb
    • P
      nbd: do not hang nbd_wr_syncv if outside a coroutine and no available data · dacca04c
      Paolo Bonzini 提交于
      Until commit 1c778ef7 ("nbd: convert to using I/O channels for actual
      socket I/O", 2016-02-16), nbd_wr_sync returned -EAGAIN this scenario.
      nbd_reply_ready required these semantics because it has two conflicting
      requirements:
      
      1) if a reply can be received on the socket, nbd_reply_ready needs
      to read the header outside coroutine context to identify _which_
      coroutine to enter to process the rest of the reply
      
      2) on the other hand, nbd_reply_ready can find a false positive if
      another thread (e.g. a VCPU thread running aio_poll) sneaks in and
      calls nbd_reply_ready too.  In this case nbd_reply_ready does nothing
      and expects nbd_wr_syncv to return -EAGAIN.
      
      Currently, the solution to the first requirement is to wait in the very
      rare case of a read() that doesn't retrieve the reply header in its
      entirety; this is what nbd_wr_syncv does by calling qio_channel_wait().
      However, the unconditional call to qio_channel_wait() breaks the second
      requirement.  To fix this, the patch makes nbd_wr_syncv return -EAGAIN
      if done is zero, similar to the code before commit 1c778ef7.
      
      This is okay because NBD client-side negotiation is the only other case
      that calls nbd_wr_syncv outside a coroutine, and it places the socket
      in blocking mode.  On the other hand, it is a bit unpleasant to put
      this in nbd_wr_syncv(), because the function is used by both client
      and server.
      
      The full fix would be to add a counter to NbdClientSession for how
      many bytes have been filled in s->reply.  Then a reply can be filled
      by multiple separate invocations of nbd_reply_ready and the
      qio_channel_wait() call can be removed completely.  Something to
      consider for 2.7...
      Reported-by: NChanglong Xie <xiecl.fnst@cn.fujitsu.com>
      Reviewed-by: NDaniel P. Berrange <berrange@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      dacca04c
    • E
      nbd: Don't kill server when client requests unknown option · 156f6a10
      Eric Blake 提交于
      nbd-server.c currently fails to handle unsupported options properly.
      If during option haggling the client sends an unknown request, the
      server kills the connection instead of letting the client try to
      fall back to something older.  This is precisely what advertising
      NBD_FLAG_FIXED_NEWSTYLE was supposed to fix.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Message-Id: <1459982918-32229-1-git-send-email-eblake@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      156f6a10
    • A
      nbd: Fix NBD unsupported options · 6ff58164
      Alex Bligh 提交于
      nbd-client.c currently fails to handle unsupported options properly.
      If during option haggling the server finds an option that is
      unsupported, it returns an NBD_REP_ERR_UNSUP reply.
      
      According to nbd's proto.md, the format for such a reply
      should be:
      
        S: 64 bits, 0x3e889045565a9 (magic number for replies)
        S: 32 bits, the option as sent by the client to which this is a reply
        S: 32 bits, reply type (e.g., NBD_REP_ACK for successful completion,
           or NBD_REP_ERR_UNSUP to mark use of an option not known by this server
        S: 32 bits, length of the reply. This may be zero for some replies,
           in which case the next field is not sent
        S: any data as required by the reply (e.g., an export name in the case
           of NBD_REP_SERVER, or optional UTF-8 message for NBD_REP_ERR_*)
      
      However, in nbd-client.c, the reply type was being read, and if it
      contained an error, it was bailing out and issuing the next option
      request without first reading the length. This meant that the
      next option / handshake read had an extra 4 or more bytes of data in it.
      In practice, this makes Qemu incompatible with servers that do not
      support NBD_OPT_LIST.
      
      To verify this isn't an error in the specification or my reading of
      it, replies are sent by the reference implementation here:
       https://github.com/yoe/nbd/blob/66dfb35/nbd-server.c#L1232
      and as is evident it always sends a 'datasize' (aka length) 32 bit
      word. Unsupported elements are replied to here:
       https://github.com/yoe/nbd/blob/66dfb35/nbd-server.c#L1371Signed-off-by: NAlex Bligh <alex@alex.org.uk>
      Message-Id: <1459882500-24316-1-git-send-email-alex@alex.org.uk>
      [rework to ALWAYS consume an optional UTF-8 message from the server]
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Message-Id: <1459961962-18771-1-git-send-email-eblake@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      6ff58164
    • E
      qemu-nbd: Document -x option · 332a254b
      Eric Blake 提交于
      Commit 3d4b2f9c added -x to force qemu-nbd to use new-style
      negotiation, but while it documented it in the man page, it
      omitted docs in the --help output.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Message-Id: <1459908128-11925-1-git-send-email-eblake@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      332a254b
    • E
      nbd: Improve debug traces on little-endian · 7548fe31
      Eric Blake 提交于
      Print debug tracing messages while data is still in native
      ordering, rather than after we've potentially swapped it into
      network order for transmission.  Also, it's nice if the server
      mentions what it is replying, to correlate it to with what the
      client says it is receiving.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Message-Id: <1459913704-19949-4-git-send-email-eblake@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      7548fe31
    • E
      nbd: Avoid bitrot in TRACE() usage · 8c659712
      Eric Blake 提交于
      The compiler is smart enough to optimize out 'if (0)', but won't
      type-check our printfs if they are hidden behind #if.
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Message-Id: <1459913704-19949-3-git-send-email-eblake@redhat.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      8c659712