1. 22 11月, 2011 20 次提交
  2. 21 11月, 2011 7 次提交
  3. 19 11月, 2011 10 次提交
  4. 18 11月, 2011 3 次提交
    • M
      pseries: Fix qdev.id handling in the VIO bus code · 1e34d859
      Michael Ellerman 提交于
      When the user creates a device on the command line with -device, they
      can specify the id, using id=foo. Currently the VIO bus code overwrites
      this id with it's own value. We should only set qdev.id if it is not
      already set by the user.
      
      The device tree code uses qdev.id for the device tree node name, however
      we can't rely on the user specifiying the id using proper device tree
      syntax, ie. device@reg. So separate the device tree node name from the
      qdev.id, but use the same syntax, so they will match by default.
      Signed-off-by: NMichael Ellerman <michael@ellerman.id.au>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      1e34d859
    • D
      pseries: Allow kernel's early debug output to work · 3feef8ad
      David Gibson 提交于
      The PAPR specification defines a virtual TTY/console interface for guest
      OSes to use via the H_PUT_TERM_CHAR and H_GET_TERM_CHAR hypercalls.  There
      can be multiple virtual ttys, so these take a "termno" parameter.  This
      encodes which vty to use as the 'reg' property on the device tree node
      associated with that vty.
      
      However, with the early debug options enabled, the Linux kernel will
      attempt debugging output through the vty very early, before it has read
      the device tree.  In this case it always uses a termno of 0.  This works
      on the existing PowerVM hypervisor, so we assume there must be a hack /
      feature in there which interprets termno==0 to mean the default primary
      console.
      
      To help with debugging kernels, including existing distribution kernels,
      this patch implements a similar feature / hack in qemu.  If termno==0
      is supplied to H_{GET,PUT}_TERM_CHAR, they use the first available vty
      device instead.
      
      We need to be careful in the case that the user has manually created
      an spapr-vty at address 0. So first we search for the specified reg and
      only if that doesn't match do we fall back.
      Signed-off-by: NMichael Ellerman <michael@ellerman.id.au>
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      3feef8ad
    • M
      pseries: Default reg for vty should be SPAPR_VTY_BASE_ADDRESS · 5afdec40
      Michael Ellerman 提交于
      In commit b4a78527 ("Place pseries vty
      devices at addresses more similar to existing machines"), we changed the
      default reg for the vty to 0x30000000, however we didn't update the default
      value for a user specified vty device. Fix that.
      Signed-off-by: NMichael Ellerman <michael@ellerman.id.au>
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      5afdec40