1. 07 6月, 2017 31 次提交
  2. 06 6月, 2017 9 次提交
    • P
      Merge remote-tracking branch 'remotes/armbru/tags/pull-misc-2017-06-06' into staging · 572db7cd
      Peter Maydell 提交于
      Miscellaneous patches for 2017-06-06
      
      # gpg: Signature made Tue 06 Jun 2017 08:30:43 BST
      # gpg:                using RSA key 0x3870B400EB918653
      # gpg: Good signature from "Markus Armbruster <armbru@redhat.com>"
      # gpg:                 aka "Markus Armbruster <armbru@pond.sub.org>"
      # Primary key fingerprint: 354B C8B3 D7EB 2A6B 6867  4E5F 3870 B400 EB91 8653
      
      * remotes/armbru/tags/pull-misc-2017-06-06:
        monitor: fix object_del for command-line-created objects
        tests: check-qom-proplist: add checks for cmdline-created objects
        virtio-scsi-test: Use scsi-hd instead of legacy scsi-disk
        block: Clarify documentation of BlockInfo member io-status
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      572db7cd
    • P
      Merge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.10-20170606' into staging · e02bbe19
      Peter Maydell 提交于
      ppc patch queue 2017-06-06
      
      Accumulated patches for ppc targets and the pseries machine type.
      
      The big thing in this batch is a start on a substantial cleanup of the
      pseries hotplug mechanisms, which were pretty confusing.  For now
      these shouldn't cause substantial behavioural changes, but I am hoping
      these lead to clearer code and eventually to fixes for the bugs we
      have in hotplug handling, particularly when hotplug and migration are
      combined.
      
      The remaining patches are mostly bugfixes.
      
      # gpg: Signature made Tue 06 Jun 2017 03:48:50 BST
      # 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.10-20170606:
        spapr: Remove some non-useful properties on DRC objects
        spapr: Eliminate spapr_drc_get_type_str()
        spapr: Move configure-connector state into DRC
        spapr: Clean up spapr_dr_connector_by_*()
        spapr: Introduce DRC subclasses
        spapr/drc: don't migrate DRC of cold-plugged CPUs and LMBs
        spapr: Allow boot from vhost-*-scsi backends
        ppc/pnv: check the return value of fdt_setprop()
        spapr_nvram: Check return value from blk_getlength()
        target/ppc: Fixup set_spr error in h_register_process_table
        target-ppc: Fix openpic timer read register offset
        spapr: Make DRC get_index and get_type methods into plain functions
        spapr: Abolish DRC set_configured method
        spapr: Abolish DRC get_fdt method
        spapr: Move DRC RTAS calls into spapr_drc.c
        migration: Mark CPU states dirty before incoming migration/loadvm
        migration: remove register_savevm()
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      e02bbe19
    • M
      target/xtensa: handle unknown registers in gdbstub · dd7b952b
      Max Filippov 提交于
      Xtensa cores may have registers of types/sizes not supported by the
      gdbstub accessors. Ignore writes to such registers and return zero on
      read, but always return correct register size, so that gdb on the other
      side is able to access all registers in the packet holding unsupported
      registers in the middle. This fixes gdb interaction with cores that have
      vector/custom TIE registers.
      
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      dd7b952b
    • M
      target/xtensa: support output to chardev console · 8128b3e0
      Max Filippov 提交于
      In semihosting mode QEMU allows guest to read and write host file
      descriptors directly, including descriptors 0..2, a.k.a. stdin, stdout
      and stderr. Sometimes it's desirable to have semihosting console
      controlled by -serial option, e.g. to connect it to network.
      
      Add semihosting console to xtensa-semi.c, open it in the 'sim' machine
      in the presence of -serial option and direct stdout and stderr to it
      when it's present.
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      8128b3e0
    • M
      target/xtensa: fix return value of read/write simcalls · 347ec030
      Max Filippov 提交于
      Return value of read/write simcalls is not calculated correctly in case
      of operations crossing page boundary and in case of short reads/writes.
      Read and write simcalls should return the size of data actually
      read/written or -1 in case of error.
      
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      347ec030
    • M
      target/xtensa: fix mapping direction in read/write simcalls · 30c2afd1
      Max Filippov 提交于
      Read and write simcalls map physical memory to access I/O buffers, but
      'read' simcall need to map it for writing and 'write' simcall need to
      map it for reading, i.e. the opposite of what they do now. Fix that.
      
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
      30c2afd1
    • P
      Merge remote-tracking branch 'remotes/ehabkost/tags/x86-and-machine-pull-request' into staging · a65afaae
      Peter Maydell 提交于
      x86 and machine queue, 2017-06-05
      
      # gpg: Signature made Mon 05 Jun 2017 19:58:01 BST
      # gpg:                using RSA key 0x2807936F984DC5A6
      # gpg: Good signature from "Eduardo Habkost <ehabkost@redhat.com>"
      # Primary key fingerprint: 5A32 2FD5 ABC4 D3DB ACCF  D1AA 2807 936F 984D C5A6
      
      * remotes/ehabkost/tags/x86-and-machine-pull-request:
        scripts: Test script to look for -device crashes
        qemu.py: Add QEMUMachine.exitcode() method
        qemu.py: Don't set _popen=None on error/shutdown
        spapr: cleanup spapr_fixup_cpu_numa_dt() usage
        numa: move numa_node from CPUState into target specific classes
        numa: make hmp 'info numa' fetch numa nodes from qmp_query_cpus() result
        numa: make sure that all cpus have has_node_id set if numa is enabled
        numa: move default mapping init to machine
        numa: consolidate cpu_preplug fixups/checks for pc/arm/spapr
        pc: Use "min-[x]level" on compat_props
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      a65afaae
    • M
      monitor: fix object_del for command-line-created objects · c645d5ac
      Michael Roth 提交于
      Currently objects specified on the command-line are only partially
      cleaned up when 'object_del' is issued in either HMP or QMP: the
      object itself is fully finalized, but the QemuOpts are not removed.
      This results in the following behavior:
      
        x86_64-softmmu/qemu-system-x86_64 -monitor stdio \
          -object memory-backend-ram,id=ram1,size=256M
      
        QEMU 2.7.91 monitor - type 'help' for more information
        (qemu) object_del ram1
        (qemu) object_del ram1
        object 'ram1' not found
        (qemu) object_add memory-backend-ram,id=ram1,size=256M
        Duplicate ID 'ram1' for object
        Try "help object_add" for more information
      
      which can be an issue for use-cases like memory hotplug.
      
      This happens on the HMP side because hmp_object_add() attempts to
      create a temporary QemuOpts entry with ID 'ram1', which ends up
      conflicting with the command-line-created entry, since it was never
      cleaned up during the previous hmp_object_del() call.
      
      We address this by adding a check in user_creatable_del(), which
      is called by both qmp_object_del() and hmp_object_del() to handle
      the actual object cleanup, to determine whether an option group entry
      matching the object's ID is present and removing it if it is.
      
      Note that qmp_object_add() never attempts to create a temporary
      QemuOpts entry, so it does not encounter the duplicate ID error,
      which is why this isn't generally visible in libvirt.
      
      Cc: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
      Cc: Markus Armbruster <armbru@redhat.com>
      Cc: Eric Blake <eblake@redhat.com>
      Cc: Daniel Berrange <berrange@redhat.com>
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      Reviewed-by: NDaniel P. Berrange <berrange@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <1496531612-22166-3-git-send-email-mdroth@linux.vnet.ibm.com>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      c645d5ac
    • M
      tests: check-qom-proplist: add checks for cmdline-created objects · a1af255f
      Michael Roth 提交于
      check-qom-proplist originally added tests for verifying that
      object-creation helpers object_new_with_{props,propv} behaved in
      similar fashion to the "traditional" method involving setting each
      individual property separately after object creation rather than
      via a single call.
      
      Another similar "helper" for creating Objects exists in the form of
      objects specified via -object command-line parameters. By that
      rationale, we extend check-qom-proplist to include similar checks
      for command-line-created objects by employing the same
      qemu_opts_parse()-based parsing the vl.c employs.
      
      This parser has a side-effect of parsing the object's options into
      a QemuOpt structure and registering this in the global QemuOptsList
      using the Object's ID. This can conflict with future Object instances
      that attempt to use the same ID if we don't ensure this is cleaned
      up as part of Object finalization, so we include a FIXME stub to test
      for this case, which will then be resolved in a subsequent patch.
      Suggested-by: NDaniel Berrange <berrange@redhat.com>
      Cc: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
      Cc: Markus Armbruster <armbru@redhat.com>
      Cc: Eric Blake <eblake@redhat.com>
      Cc: Daniel Berrange <berrange@redhat.com>
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Message-Id: <1496531612-22166-2-git-send-email-mdroth@linux.vnet.ibm.com>
      [Comment formatting tidied up]
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      a1af255f