1. 08 1月, 2020 13 次提交
    • G
      ppc/pnv: Drop "num-chips" machine property · e44acde2
      Greg Kurz 提交于
      The number of CPU chips of the powernv machine is configurable through a
      "num-chips" property. This doesn't fit well with the CPU topology, eg.
      some configurations can come up with more CPUs than the maximum of CPUs
      set in the toplogy. This causes assertion to be hit with mttcg:
      
         -machine powernv,num-chips=2 -smp cores=2 -accel tcg,thread=multi
      
      ERROR:
      tcg/tcg.c:789:tcg_register_thread: assertion failed: (n < ms->smp.max_cpus)
      Aborted (core dumped)
      
      Mttcg mandates the CPU topology to be dimensioned to the actual number
      of CPUs, depending on the number of chips the user asked for. That is,
      '-machine num-chips=N' should always have a '-smp' companion with a
      topology that meats the resulting number of CPUs, typically
      '-smp sockets=N'.
      
      It thus seems that "num-chips" doesn't bring anything but forcing the user
      to specify the requested number of chips on the command line twice. Simplify
      the command line by computing the number of chips based on the CPU topology
      exclusively. The powernv machine isn't a production thing ; it is mostly
      used by developpers to prepare the bringup of real HW. Because of this and
      for simplicity, this deliberately ignores the official deprecation process
      and dumps "num-chips" right away : '-smp sockets=N' is now the only way to
      control the number of CPU chips.
      
      This is done at machine init because smp_parse() is called after instance
      init.
      Signed-off-by: NGreg Kurz <groug@kaod.org>
      Message-Id: <157830658266.533764.2214183961444213947.stgit@bahia.lan>
      Reviewed-by: NCédric Le Goater <clg@kaod.org>
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      e44acde2
    • D
      ppc440_bamboo.c: remove label from bamboo_load_device_tree() · 400431ef
      Daniel Henrique Barboza 提交于
      'out' label can be replaced by 'return -1' in all cases.
      
      CC: David Gibson <david@gibson.dropbear.id.au>
      CC: qemu-ppc@nongnu.org
      Signed-off-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
      Message-Id: <20200106182425.20312-3-danielhb413@gmail.com>
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      400431ef
    • D
      spapr.c: remove 'out' label in spapr_dt_cas_updates() · 9b6c1da5
      Daniel Henrique Barboza 提交于
      'out' can be replaced by 'return' with the appropriate
      return value.
      
      CC: David Gibson <david@gibson.dropbear.id.au>
      CC: qemu-ppc@nongnu.org
      Signed-off-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
      Message-Id: <20200106182425.20312-2-danielhb413@gmail.com>
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      9b6c1da5
    • B
      ppc/spapr: Don't call KVM_SVM_OFF ioctl on TCG · 0b731978
      Bharata B Rao 提交于
      Invoking KVM_SVM_OFF ioctl for TCG guests will lead to a QEMU crash.
      Fix this by ensuring that we don't call KVM_SVM_OFF ioctl on TCG.
      Reported-by: NAlexey Kardashevskiy <aik@ozlabs.ru>
      Fixes: 4930c1966249 ("ppc/spapr: Support reboot of secure pseries guest")
      Signed-off-by: NBharata B Rao <bharata@linux.ibm.com>
      Message-Id: <20200102054155.13175-1-bharata@linux.ibm.com>
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      0b731978
    • G
      spapr/xive: Use device_class_set_parent_realize() · 6cc64796
      Greg Kurz 提交于
      The XIVE router base class currently inherits an empty realize hook
      from the sysbus device base class, but it will soon implement one
      of its own to perform some sanity checks. Do the preliminary plumbing
      to have it called.
      Signed-off-by: NGreg Kurz <groug@kaod.org>
      Signed-off-by: NCédric Le Goater <clg@kaod.org>
      Message-Id: <20191219181155.32530-6-clg@kaod.org>
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      6cc64796
    • L
      mos6522: remove anh register · 068fe58c
      Laurent Vivier 提交于
      Register addr 1 is defined as buffer A with handshake (vBufAH),
      register addr 15 is also defined as buffer A without handshake (vBufA).
      
      As both addresses access the same register, remove the definition of
      'anh' and use only 'a' (with VIA_REG_ANH and VIA_REG_A).
      
      Fixes: 51f233ec ("misc: introduce new mos6522 VIA device and enable it for ppc builds")
      Signed-off-by: NLaurent Vivier <laurent@vivier.eu>
      Message-Id: <20191220214054.76525-1-laurent@vivier.eu>
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      068fe58c
    • C
      ppc/pnv: Modify the powerdown notifier to get the PowerNV machine · 8f06e370
      Cédric Le Goater 提交于
      Use container_of() instead of qdev_get_machine()
      Signed-off-by: NCédric Le Goater <clg@kaod.org>
      Reviewed-by: NGreg Kurz <groug@kaod.org>
      Signed-off-by: NCédric Le Goater <clg@kaod.org>
      Message-Id: <20191219181155.32530-2-clg@kaod.org>
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      8f06e370
    • B
      ppc/spapr: Support reboot of secure pseries guest · 905db916
      Bharata B Rao 提交于
      A pseries guest can be run as a secure guest on Ultravisor-enabled
      POWER platforms. When such a secure guest is reset, we need to
      release/reset a few resources both on ultravisor and hypervisor side.
      This is achieved by invoking this new ioctl KVM_PPC_SVM_OFF from the
      machine reset path.
      
      As part of this ioctl, the secure guest is essentially transitioned
      back to normal mode so that it can reboot like a regular guest and
      become secure again.
      
      This ioctl has no effect when invoked for a normal guest. If this ioctl
      fails for a secure guest, the guest is terminated.
      Signed-off-by: NBharata B Rao <bharata@linux.ibm.com>
      Message-Id: <20191219031445.8949-3-bharata@linux.ibm.com>
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      905db916
    • B
      linux-headers: Update · 50fd0c37
      Bharata B Rao 提交于
      Update to mainline commit: d1eef1c61974 ("Linux 5.5-rc2")
      Signed-off-by: NBharata B Rao <bharata@linux.ibm.com>
      Message-Id: <20191219031445.8949-2-bharata@linux.ibm.com>
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      50fd0c37
    • F
      target/ppc: Handle AIL=0 in ppc_excp_vector_offset · bc5fdfc0
      Fabiano Rosas 提交于
      The exception vector offset calculation was moved into a function but
      the case when AIL=0 was not checked.
      
      The reason we got away with this is that the sole caller of
      ppc_excp_vector_offset checks the AIL before calling the function:
      
          /* Handle AIL */
          if (ail) {
              ...
              vector |= ppc_excp_vector_offset(cs, ail);
          }
      
      Fixes: 2586a4d7 ("target/ppc: Move exception vector offset computation into a function")
      Signed-off-by: NFabiano Rosas <farosas@linux.ibm.com>
      Message-Id: <20191217142512.574075-1-farosas@linux.ibm.com>
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      bc5fdfc0
    • F
      target/ppc: Remove unused PPC_INPUT_INT defines · 38fc68a4
      Fabiano Rosas 提交于
      They were added in "16415335 Use correct input constant" with a
      single use in kvm_arch_pre_run but that function's implementation was
      removed by "1e8f51e8 ppc: remove idle_timer logic".
      Signed-off-by: NFabiano Rosas <farosas@linux.ibm.com>
      Message-Id: <20191218014616.686124-1-farosas@linux.ibm.com>
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      38fc68a4
    • P
      Merge remote-tracking branch 'remotes/vivier/tags/q800-for-5.0-pull-request' into staging · 035eed4c
      Peter Maydell 提交于
      m68k: fix CACR valid bits
      q800: add a fake mac rom reset (used by linux)
            fix and improve PRAM emulation
      
      # gpg: Signature made Tue 07 Jan 2020 13:25:50 GMT
      # gpg:                using RSA key CD2F75DDC8E3A4DC2E4F5173F30C38BD3F2FBE3C
      # gpg:                issuer "laurent@vivier.eu"
      # gpg: Good signature from "Laurent Vivier <lvivier@redhat.com>" [full]
      # gpg:                 aka "Laurent Vivier <laurent@vivier.eu>" [full]
      # gpg:                 aka "Laurent Vivier (Red Hat) <lvivier@redhat.com>" [full]
      # Primary key fingerprint: CD2F 75DD C8E3 A4DC 2E4F  5173 F30C 38BD 3F2F BE3C
      
      * remotes/vivier/tags/q800-for-5.0-pull-request:
        target/m68k: only change valid bits in CACR
        q800: implement mac rom reset function for BIOS-less mode
        q800: add a block backend to the PRAM
        q800: fix mac_via RTC PRAM commands
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      035eed4c
    • P
      Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging · 973d306d
      Peter Maydell 提交于
      virtio, pci, pc: fixes, features
      
      Bugfixes all over the place.
      HMAT support.
      New flags for vhost-user-blk utility.
      Auto-tuning of seg max for virtio storage.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      
      # gpg: Signature made Mon 06 Jan 2020 17:05:05 GMT
      # 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: (32 commits)
        intel_iommu: add present bit check for pasid table entries
        intel_iommu: a fix to vtd_find_as_from_bus_num()
        virtio-net: delete also control queue when TX/RX deleted
        virtio: reset region cache when on queue deletion
        virtio-mmio: update queue size on guest write
        tests: add virtio-scsi and virtio-blk seg_max_adjust test
        virtio: make seg_max virtqueue size dependent
        hw: fix using 4.2 compat in 5.0 machine types for i440fx/q35
        vhost-user-scsi: reset the device if supported
        vhost-user: add VHOST_USER_RESET_DEVICE to reset devices
        hw/pci/pci_host: Let pci_data_[read/write] use unsigned 'size' argument
        hw/pci/pci_host: Remove redundant PCI_DPRINTF()
        virtio-mmio: Clear v2 transport state on soft reset
        ACPI: add expected files for HMAT tests (acpihmat)
        tests/bios-tables-test: add test cases for ACPI HMAT
        tests/numa: Add case for QMP build HMAT
        hmat acpi: Build Memory Side Cache Information Structure(s)
        hmat acpi: Build System Locality Latency and Bandwidth Information Structure(s)
        hmat acpi: Build Memory Proximity Domain Attributes Structure(s)
        numa: Extend CLI to provide memory side cache information
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      973d306d
  2. 07 1月, 2020 21 次提交
  3. 06 1月, 2020 6 次提交