1. 07 7月, 2015 9 次提交
  2. 04 6月, 2015 9 次提交
  3. 31 5月, 2015 4 次提交
  4. 30 4月, 2015 1 次提交
  5. 28 4月, 2015 2 次提交
  6. 26 3月, 2015 3 次提交
  7. 12 3月, 2015 1 次提交
  8. 09 3月, 2015 7 次提交
    • M
      spapr: Clean up misuse of qdev_init() in xics-kvm creation · 34f2af3d
      Markus Armbruster 提交于
      We call try_create_xics() to create a "xics-kvm".  If it fails, we
      call it again to fall back to plain "xics".
      
      try_create_xics() uses qdev_init().  qdev_init()'s error handling has
      an unwanted side effect: it calls qerror_report_err(), which prints to
      stderr.  Looks like an error, but isn't.
      
      In QMP context, it would stash the error in the monitor instead,
      making the QMP command fail.  Fortunately, it's only called from board
      initialization, never in QMP context.
      
      Clean up by cutting out the qdev_init() middle-man: set property
      "realized" directly.
      
      While there, improve the error message when we can't satisfy an
      explicit user request for "xics-kvm", and exit(1) instead of abort().
      Simplify the abort when we can't create "xics".
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      [agraf: squash in fix for uninitialized variable from mdroth]
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      34f2af3d
    • D
      pseries: Export RTC time via QOM · 74e5ae28
      David Gibson 提交于
      On x86, the guest's RTC can be read with QMP, either from the RTC device's
      "date" property or via the "rtc-time" property on the machine (which is an
      alias to the former).  This is set up in the mc146818rtc driver, and
      doesn't work on other targets.
      
      This patch adds a similar "date" property to the pseries machine's RTAS RTC
      and adds a compatible alias to the machine.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      74e5ae28
    • D
      pseries: Move rtc_offset into RTC device's state structure · 880ae7de
      David Gibson 提交于
      The initial creation of the PAPR RTC qdev class left a wart - the rtc's
      offset was left in the sPAPREnvironment structure, accessed via a global.
      
      This patch moves it into the RTC device's own state structure, were it
      belongs.  This requires a small change to the migration stream format.  In
      order to handle incoming streams from older versions, we also need to
      retain the rtc_offset field in the sPAPREnvironment structure, so that it
      can be loaded into via the vmsd, then pushed into the RTC device.
      
      Since we're changing the migration format, this also takes the opportunity
      to:
      
        * Change the rtc offset from a value in seconds to a value in
          nanoseconds, allowing nanosecond offsets between host and guest
          rtc time, if desired.
      
        * Remove both the already unused "next_irq" field and now unused
          "rtc_offset" field from the new version of the spapr migration
          stream
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      880ae7de
    • D
      pseries: Make the PAPR RTC a qdev device · 28df36a1
      David Gibson 提交于
      At present the PAPR RTC isn't a "device" as such - it's accessed only via
      firmware/hypervisor calls, and is handled in the sPAPR core code.  This
      becomes inconvenient as we extend it in various ways.
      
      This patch makes the PAPR RTC a separate device in the qemu device model.
      
      For now, the only piece of device state - the rtc_offset - is still kept in
      the global sPAPREnvironment structure.  That's clearly wrong, but leaving
      it to be fixed in a following patch makes for a clearer separation between
      the internal re-organization of the device, and the behavioural changes
      (because the migration stream format needs to change slightly when the
      offset is moved into the device's own state).
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      28df36a1
    • D
      pseries: Move sPAPR RTC code into its own file · 12f42174
      David Gibson 提交于
      At the moment the RTAS (firmware/hypervisor) time of day functions are
      implemented in spapr_rtas.c along with a bunch of other things.  Since
      we're going to be expanding these a bit, move the RTAS RTC related code
      out into new file spapr_rtc.c.  Also add its own initialization function,
      spapr_rtc_init() called from the main machine init routine.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      12f42174
    • A
      spapr-pci: Enable huge BARs · b194df47
      Alexey Kardashevskiy 提交于
      At the moment sPAPR only supports 512MB window for MMIO BARs. However
      modern devices might want bigger 64bit BARs.
      
      This extends MMIO window from 512MB to 62GB (aligned to
      SPAPR_PCI_WINDOW_SPACING) and advertises it in 2 records in
      the PHB "ranges" property. 32bit gets the space from
      SPAPR_PCI_MEM_WIN_BUS_OFFSET till the end of 4GB, 64bit gets the rest
      of the space. If no space is left, 64bit range is not advertised.
      
      The MMIO space size is set to old value of 0x20000000 by default
      for pseries machines older than 2.3.
      
      The approach changes the device tree which is a guest visible change, however
      it won't break migration as:
      1. we do not support migration to older QEMU versions
      2. migration to newer QEMU will migrate the device tree as well and since
      the new layout only extends the old one and does not change address mappigns,
      no breakage is expected here too.
      
      SLOF change is required to utilize this extension.
      Suggested-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NAlexey Kardashevskiy <aik@ozlabs.ru>
      Reviewed-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      b194df47
    • A
      spapr: Add pseries-2.3 machine · 3dab0244
      Alexey Kardashevskiy 提交于
      The next patch will make MMIO space bigger and keep the old value for
      older pseries machines.
      Signed-off-by: NAlexey Kardashevskiy <aik@ozlabs.ru>
      Reviewed-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      3dab0244
  9. 24 2月, 2015 1 次提交
  10. 18 2月, 2015 1 次提交
  11. 10 2月, 2015 1 次提交
  12. 09 1月, 2015 1 次提交