1. 18 11月, 2011 3 次提交
    • M
      pseries: Check we have a chardev in spapr_vty_init() · 57285302
      Michael Ellerman 提交于
      If qemu is run like:
      
       qemu-system-ppc64 -nodefaults -device spapr-vty
      
      We end up in spapr_vty_init() with dev->chardev == NULL. Currently
      that leads to a segfault because we unconditionally call
      qemu_chr_add_handlers().
      
      Although we could make that call conditional, I think a spapr-vty
      without a chardev is basically useless so fail the init. This is
      similar to what the serial code does for example.
      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>
      57285302
    • D
      pseries: Fix buggy spapr_vio_find_by_reg() · 5435352c
      David Gibson 提交于
      The spapr_vio_find_by_reg() function in hw/spapr_vio.c is supposed to find
      the device structure for a PAPR virtual IO device with the given reg value,
      and return NULL if none exists.
      
      It does the first ok, but if no device with that reg exists, it just
      returns the last device traversed in the list.  This patch fixes it.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      5435352c
    • D
      pseries: Correct RAM size check for SLOF · 92c93a81
      David Gibson 提交于
      The SLOF firmware used on the pseries machine needs a reasonable amount of
      (guest) RAM in order to run, so we have a check in the machine init
      function to check that this is available.  However, SLOF runs in real mode
      (MMU off) which means it can only actually access the RMA (Real Mode Area),
      not all of RAM.  In many cases the RMA is the same as all RAM, but when
      running with Book3S HV KVM on PowerPC 970, the RMA must be especially
      allocated to be (host) physically contiguous.  In this case, the RMA size
      is determined by what the host admin allocated at boot time, and will
      usually be less than the whole guest RAM size.
      
      This patch corrects the test to see if SLOF has enough memory for this
      case.
      
      In addition, more recent versions of SLOF that were committed earlier don't
      need quite as much memory as earlier versions.  Therefore, this patch also
      reduces the amount of RAM we require to run SLOF.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      92c93a81
  2. 12 11月, 2011 3 次提交
  3. 10 11月, 2011 16 次提交
  4. 09 11月, 2011 1 次提交
  5. 08 11月, 2011 11 次提交
  6. 07 11月, 2011 6 次提交