1. 01 7月, 2013 8 次提交
  2. 28 6月, 2013 3 次提交
  3. 20 6月, 2013 8 次提交
  4. 14 6月, 2013 1 次提交
  5. 13 6月, 2013 2 次提交
  6. 07 6月, 2013 2 次提交
  7. 18 5月, 2013 1 次提交
  8. 06 5月, 2013 6 次提交
  9. 05 5月, 2013 1 次提交
  10. 30 4月, 2013 2 次提交
  11. 27 4月, 2013 6 次提交
    • D
      pseries: Generate device paths for VIO devices · c4eda5b7
      David Gibson 提交于
      This patch implements a get_dev_path qdev hook for the pseries paravirtual
      VIO bus.  With upcoming savevm support, this will become very important for
      scsi disks hanging of VIO virtual SCSI adapters.  scsibus_get_dev_path
      uses the get_dev_path of the parent adapter if available, but otherwise
      just uses a local channel/target/lun number to identify the device.  So if
      two disks are present in the system having the same target and lun on
      seperate VIO scsi adapters, savevm cannot distinguish them.  Since the
      conventional way of using VSCSI adapters is to have just one disk per
      adapter, such a conflict is very likely.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      c4eda5b7
    • D
      pseries: Convert VIO code to QOM style type safe(ish) casts · fd506b4f
      David Gibson 提交于
      Curerntly the pseries VIO device code contains quite a few explicit
      uses of DO_UPCAST and plain C casts.  This is (obviously) type unsafe,
      and not the conventional way of doing things in the QOM model.  This
      patch converts the code to use the QOM convention of per-type macros
      to do verified casts with OBJECT_CHECK().
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      fd506b4f
    • D
      pseries: Fix some small errors in XICS logic · e03c902c
      David Gibson 提交于
      Under certain circumstances the emulation for the pseries "XICS" interrupt
      controller was clearing a pending interrupt from the XISR register, without
      also clearing the corresponding priority variable.  This will cause
      problems later when can trigger sanity checks in the under-development
      in-kernel XICS implementation.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      e03c902c
    • D
      pseries: Fixes and enhancements to L1 cache properties · 0cbad81f
      David Gibson 提交于
      PAPR requires that the device tree's CPU nodes have several properties
      with information about the L1 cache.  We already create two of these
      properties, but with incorrect names - "[id]cache-block-size" instead
      of "[id]-cache-block-size" (note the extra hyphen).
      
      We were also missing some of the required cache properties.  This
      patch adds the [id]-cache-line-size properties (which have the same
      values as the block size properties in all current cases).  We also
      add the [id]-cache-size properties.
      
      Adding the cache sizes requires some extra infrastructure in the
      general target-ppc code to (optionally) set the cache sizes for
      various CPUs.  The CPU family descriptions in translate_init.c can set
      these sizes - this patch adds correct information for POWER7, I'm
      leaving other CPU types to people who have a physical example to
      verify against.  In addition, for -cpu host we take the values
      advertised by the host (if available) and use those to override the
      information based on PVR.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      0cbad81f
    • A
      PPC: mac newworld: fix cpu NIP reset value · 20f649dd
      Alexander Graf 提交于
      On -M mac99, we can run 970 CPUs. However, these CPUs define the initial
      instruction pointer they start execution at as part of their bootup protocol,
      so effectively it's up to the board to decide where they start.
      
      This went unnoticed, because they used to boot at the same location our flash
      was mapped to, but due to the recent reset changes our 970 CPUs want to reset
      to 0x100 now, which is always a 0 instruction.
      
      Set the initial IP to something reasonable for -M mac99.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Reviewed-by: NFabien Chouteau <chouteau@adacore.com>
      20f649dd
    • B
      Enable kvm emulated watchdog · 31f2cb8f
      Bharat Bhushan 提交于
      Enable the KVM emulated watchdog if KVM supports (use the
      capability enablement in watchdog handler). Also watchdog exit
      (KVM_EXIT_WATCHDOG) handling is added.
      Watchdog state machine is cleared whenever VM state changes to running.
      This is to handle the cases like return from debug halt etc.
      Signed-off-by: NBharat Bhushan <bharat.bhushan@freescale.com>
      [agraf: rebase to current code base, fix non-kvm cases]
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      31f2cb8f