1. 29 10月, 2012 7 次提交
    • D
      target-ppc: Rework storage of VPA registration state · 1bfb37d1
      David Gibson 提交于
      With PAPR guests, hypercalls allow registration of the Virtual Processor
      Area (VPA), SLB shadow and dispatch trace log (DTL), each of which allow
      for certain communication between the guest and hypervisor.  Currently, we
      store the addresses of the three areas and the size of the dtl in
      CPUPPCState.
      
      The SLB shadow and DTL are variable sized, with the size being retrieved
      from within the registered memory area at the hypercall time.  This size
      can later be overwritten with other information, however, so we need to
      save the size as of registration time.  We already do this for the DTL,
      but not for the SLB shadow, so this patch fixes that.
      
      In addition, we change the storage of the VPA information to use fixed
      size integer types which will make life easier for syncing this data with
      KVM, which we will need in future.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      1bfb37d1
    • D
      pseries: Don't allow duplicate registration of hcalls or RTAS calls · c89d5299
      David Gibson 提交于
      Currently the pseries machine code allows a callback to be registered
      for a hypercall number twice, as long as it's the same callback the second
      time.  We don't test for duplicate registrations of RTAS callbacks at all
      so it will effectively be last registratiojn wins.
      
      This was originally done because it was awkward to ensure that the
      registration happened exactly once, but the code has since been
      restructured so that's no longer the case.
      
      Duplicate registration of a hypercall or RTAS call could well suggest
      a duplicate initialization which could cause other problems, so this patch
      makes duplicate registrations a bug, to prevent the old behaviour from
      hiding other bugs.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      c89d5299
    • Z
      Add USB option in machine options · 094b287f
      zhlcindy@gmail.com 提交于
      When -usb option is used, global varible usb_enabled is set.
      And all the plaform will create one USB controller according
      to this variable. In fact, global varibles make code hard
      to read.
      
      So this patch is to remove global variable usb_enabled and
      add USB option in machine options. All the plaforms will get
      USB option value from machine options.
      
      USB option of machine options will be set either by:
        * -usb
        * -machine type=pseries,usb=on
      
      Both these ways can work now. They both set USB option in
      machine options. In the future, the first way will be removed.
      Signed-off-by: NLi Zhang <zhlcindy@linux.vnet.ibm.com>
      Acked-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      094b287f
    • B
      e500: Fix serial initialization · 59de4f98
      Bharat Bhushan 提交于
      it was wrongly using serial_hds[0] instead of serial_hds[1]
      Signed-off-by: NBharat Bhushan <bharat.bhushan@freescale.com>
      Reviewed-by: NAndreas Färber <afaerber@suse.de>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      59de4f98
    • A
      PPC: 440: Emulate DCBR0 · e598a9c5
      Alexander Graf 提交于
      The DCBR0 register on 440 is used to implement system reset. The same
      register is used on 405 as well, so just reuse the code.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      e598a9c5
    • A
      PPC: Bamboo: Fix memory size DT property · 5232fa59
      Alexander Graf 提交于
      Device tree properties need to be specified in big endian. Fix the
      bamboo memory size property accordingly.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      CC: qemu-stable@nongnu.org
      5232fa59
    • P
      Drop unnecessary check of TARGET_PHYS_ADDR_SPACE_BITS · 21b2f13a
      Peter Maydell 提交于
      For all our PPC targets the physical address space is at least
      36 bits, so drop an unnecessary preprocessor conditional check
      on TARGET_PHYS_ADDR_SPACE_BITS (erroneously introduced as part
      of the change from target_phys_addr_t to hwaddr). This brings
      this bit of code into line with the way we handle the other
      cases which were originally checking TARGET_PHYS_ADDR_BITS in
      order to avoid compiler complaints about overflowing a 32 bit type.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      21b2f13a
  2. 27 10月, 2012 8 次提交
  3. 25 10月, 2012 1 次提交
  4. 24 10月, 2012 13 次提交
  5. 23 10月, 2012 11 次提交