1. 25 7月, 2017 2 次提交
  2. 18 7月, 2017 4 次提交
  3. 14 7月, 2017 2 次提交
  4. 13 7月, 2017 1 次提交
    • A
      Convert error_report() to warn_report() · 3dc6f869
      Alistair Francis 提交于
      Convert all uses of error_report("warning:"... to use warn_report()
      instead. This helps standardise on a single method of printing warnings
      to the user.
      
      All of the warnings were changed using these two commands:
          find ./* -type f -exec sed -i \
            's|error_report(".*warning[,:] |warn_report("|Ig' {} +
      
      Indentation fixed up manually afterwards.
      
      The test-qdev-global-props test case was manually updated to ensure that
      this patch passes make check (as the test cases are case sensitive).
      Signed-off-by: NAlistair Francis <alistair.francis@xilinx.com>
      Suggested-by: NThomas Huth <thuth@redhat.com>
      Cc: Jeff Cody <jcody@redhat.com>
      Cc: Kevin Wolf <kwolf@redhat.com>
      Cc: Max Reitz <mreitz@redhat.com>
      Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Peter Lieven <pl@kamp.de>
      Cc: Josh Durgin <jdurgin@redhat.com>
      Cc: "Richard W.M. Jones" <rjones@redhat.com>
      Cc: Markus Armbruster <armbru@redhat.com>
      Cc: Peter Crosthwaite <crosthwaite.peter@gmail.com>
      Cc: Richard Henderson <rth@twiddle.net>
      Cc: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
      Cc: Greg Kurz <groug@kaod.org>
      Cc: Rob Herring <robh@kernel.org>
      Cc: Peter Maydell <peter.maydell@linaro.org>
      Cc: Peter Chubb <peter.chubb@nicta.com.au>
      Cc: Eduardo Habkost <ehabkost@redhat.com>
      Cc: Marcel Apfelbaum <marcel@redhat.com>
      Cc: "Michael S. Tsirkin" <mst@redhat.com>
      Cc: Igor Mammedov <imammedo@redhat.com>
      Cc: David Gibson <david@gibson.dropbear.id.au>
      Cc: Alexander Graf <agraf@suse.de>
      Cc: Gerd Hoffmann <kraxel@redhat.com>
      Cc: Jason Wang <jasowang@redhat.com>
      Cc: Marcelo Tosatti <mtosatti@redhat.com>
      Cc: Christian Borntraeger <borntraeger@de.ibm.com>
      Cc: Cornelia Huck <cohuck@redhat.com>
      Cc: Stefan Hajnoczi <stefanha@redhat.com>
      Acked-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Acked-by: NGreg Kurz <groug@kaod.org>
      Acked-by: NCornelia Huck <cohuck@redhat.com>
      Reviewed-by: NStefan Hajnoczi <stefanha@redhat.com>
      Reviewed by: Peter Chubb <peter.chubb@data61.csiro.au>
      Acked-by: NMax Reitz <mreitz@redhat.com>
      Acked-by: NMarcel Apfelbaum <marcel@redhat.com>
      Message-Id: <e1cfa2cd47087c248dd24caca9c33d9af0c499b0.1499866456.git.alistair.francis@xilinx.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      3dc6f869
  5. 06 7月, 2017 1 次提交
    • V
      s390x: return unavailable features via query-cpu-definitions · 38cba1f4
      Viktor Mihajlovski 提交于
      The response for query-cpu-definitions didn't include the
      unavailable-features field, which is used by libvirt to figure
      out whether a certain cpu model is usable on the host.
      
      The unavailable features are now computed by obtaining the host CPU
      model and comparing it against the known CPU models. The comparison
      takes into account the generation, the GA level and the feature
      bitmaps. In the case of a CPU generation/GA level mismatch
      a feature called "type" is reported to be missing.
      
      As a result, the output of virsh domcapabilities would change
      from something like
       ...
           <mode name='custom' supported='yes'>
            <model usable='unknown'>z10EC-base</model>
            <model usable='unknown'>z9EC-base</model>
            <model usable='unknown'>z196.2-base</model>
            <model usable='unknown'>z900-base</model>
            <model usable='unknown'>z990</model>
       ...
      to
       ...
           <mode name='custom' supported='yes'>
            <model usable='yes'>z10EC-base</model>
            <model usable='yes'>z9EC-base</model>
            <model usable='no'>z196.2-base</model>
            <model usable='yes'>z900-base</model>
            <model usable='yes'>z990</model>
       ...
      Signed-off-by: NViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
      Message-Id: <1499082529-16970-1-git-send-email-mihajlov@linux.vnet.ibm.com>
      Reviewed-by: NDavid Hildenbrand <david@redhat.com>
      Acked-by: NCornelia Huck <cohuck@redhat.com>
      Signed-off-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      38cba1f4
  6. 24 6月, 2017 5 次提交
  7. 23 6月, 2017 1 次提交
    • D
      target/s390x: implement mvcos instruction · 3e7e5e0b
      David Hildenbrand 提交于
      This adds support for the MOVE WITH OPTIONAL SPECIFICATIONS (MVCOS)
      instruction. Allow to enable it for the qemu cpu model using
      
      qemu-system-s390x ... -cpu qemu,mvcos=on ...
      
      This allows to boot linux kernel that uses it for uacccess.
      
      We are missing (as for most other part) low address protection checks,
      PSW key / storage key checks and support for AR-mode.
      
      We fake an ADDRESSING exception when called from problem state (which
      seems to rely on PSW key checks to be in place) and if AR-mode is used.
      user mode will always see a PRIVILEDGED exception.
      
      This patch is based on an original patch by Miroslav Benes (thanks!).
      Signed-off-by: NDavid Hildenbrand <david@redhat.com>
      Message-Id: <20170614133819.18480-3-david@redhat.com>
      Signed-off-by: NRichard Henderson <rth@twiddle.net>
      3e7e5e0b
  8. 14 6月, 2017 1 次提交
    • D
      s390x/cpumodel: wire up cpu type + id for TCG · 076d4d39
      David Hildenbrand 提交于
      Let's properly expose the CPU type (machine-type number) via "STORE CPU
      ID" and "STORE SUBSYSTEM INFORMATION".
      
      As TCG emulates basic mode, the CPU identification number has the format
      "Annnnn", whereby A is the CPU address, and n are parts of the CPU serial
      number (0 for us for now).
      
      A specification exception will be injected if the address is not aligned
      to a double word. Low address protection will not be checked as
      we're missing some more general support for that.
      Signed-off-by: NDavid Hildenbrand <david@redhat.com>
      Message-Id: <20170609133426.11447-3-david@redhat.com>
      Signed-off-by: NRichard Henderson <rth@twiddle.net>
      076d4d39
  9. 07 6月, 2017 2 次提交
  10. 06 6月, 2017 2 次提交
    • D
      s390x/cpumodel: improve defintion search without an IBC · fbe8202e
      David Hildenbrand 提交于
      Currently, under z/VM on a 0x2827, QEMU will detect a 0x2828 if no
      IBC value is provided. QEMU will simply take the last model of that HW
      generation, which happens to be the BC version.
      
      Let's improve our search for that case by selecting the latest CPU
      definition that matches the CPU type. This for example will avoid
      detecting an z13 as a z13s.
      
      We might still detect a GA2 version on a GA1 system, but as we don't
      have further information at hand, there isn't too much we can do about
      it. The alternative of always presenting the oldest GA is not backward
      compatible, e.g:
      You're running on 0x2827 GA2.
      Old QEMU version indicated "0x2828 GA1 == 0x2827 GA2". After you updated
      QEMU, you suddenly detect "0x2827 GA1". You're previous libvirt guest
      might suddenly refuse to run.
      
      In the end presenting a newer GA level does not matter because:
      
      1: All GAX models share the same base feature set. A GAX++ might
      support "more features".
      2: Without an IBC, the guest can't detect the GA version.
      
      If we have no IBC (esp. unblocked_ibc == 0), the IBC we will present
      to the guest in read_SCP_info() will be 0. The guest will not know
      which GA version it has. The problem of missing IBC propagates.
      
      If we don't have a feature of the GA++ version, also our guest won't
      have it. So in summary, the guest also has no idea of its GA version.
      Signed-off-by: NDavid Hildenbrand <david@redhat.com>
      Message-Id: <20170531193434.6918-3-david@redhat.com>
      Acked-by: NJason J. Herne <jjherne@linux.vnet.ibm.com>
      Reviewed-by: NHalil Pasic <pasic@linux.vnet.ibm.com>
      Signed-off-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      [improve patch description by reusing mailing list discussion]
      fbe8202e
    • D
      s390x/cpumodel: take care of the cpuid format bit for KVM · 64bc98f4
      David Hildenbrand 提交于
      Let's also properly forward that bit. It should always be set. I
      verified it under z/VM, it seems to be always set there. For now,
      zKVM guests never get that bit set when the CPU model is active.
      
      The PoP mentiones, that z800 + z900 (HW generation 7) always set this
      bit to 0, so let's take care of that.
      Signed-off-by: NDavid Hildenbrand <david@redhat.com>
      Message-Id: <20170531193434.6918-2-david@redhat.com>
      Acked-by: NJason J. Herne <jjherne@linux.vnet.ibm.com>
      Signed-off-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      64bc98f4
  11. 09 5月, 2017 1 次提交
  12. 21 4月, 2017 1 次提交
  13. 23 3月, 2017 1 次提交
  14. 05 3月, 2017 1 次提交
  15. 28 2月, 2017 1 次提交
  16. 13 1月, 2017 1 次提交
  17. 21 12月, 2016 1 次提交
    • T
      Move target-* CPU file into a target/ folder · fcf5ef2a
      Thomas Huth 提交于
      We've currently got 18 architectures in QEMU, and thus 18 target-xxx
      folders in the root folder of the QEMU source tree. More architectures
      (e.g. RISC-V, AVR) are likely to be included soon, too, so the main
      folder of the QEMU sources slowly gets quite overcrowded with the
      target-xxx folders.
      To disburden the main folder a little bit, let's move the target-xxx
      folders into a dedicated target/ folder, so that target-xxx/ simply
      becomes target/xxx/ instead.
      
      Acked-by: Laurent Vivier <laurent@vivier.eu> [m68k part]
      Acked-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> [tricore part]
      Acked-by: Michael Walle <michael@walle.cc> [lm32 part]
      Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> [s390x part]
      Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com> [s390x part]
      Acked-by: Eduardo Habkost <ehabkost@redhat.com> [i386 part]
      Acked-by: Artyom Tarasenko <atar4qemu@gmail.com> [sparc part]
      Acked-by: Richard Henderson <rth@twiddle.net> [alpha part]
      Acked-by: Max Filippov <jcmvbkbc@gmail.com> [xtensa part]
      Reviewed-by: David Gibson <david@gibson.dropbear.id.au> [ppc part]
      Acked-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> [cris&microblaze part]
      Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn> [unicore32 part]
      Signed-off-by: NThomas Huth <thuth@redhat.com>
      fcf5ef2a
  18. 25 10月, 2016 2 次提交
  19. 06 9月, 2016 10 次提交