1. 02 4月, 2011 4 次提交
    • D
      Add a hook to allow hypercalls to be emulated on PowerPC · d569956e
      David Gibson 提交于
      PowerPC and POWER chips since the POWER4 and 970 have a special
      hypervisor mode, and a corresponding form of the system call
      instruction which traps to the hypervisor.
      
      qemu currently has stub implementations of hypervisor mode.  That
      is, the outline is there to allow qemu to run a PowerPC hypervisor
      under emulation.  There are a number of details missing so this
      won't actually work at present, but the idea is there.
      
      What there is no provision at all, is for qemu to instead emulate
      the hypervisor itself.  That is to have hypercalls trap into qemu
      and their result be emulated from qemu, rather than running
      hypervisor code within the emulated system.
      
      Hypervisor hardware aware KVM implementations are in the works and
      it would  be useful for debugging and development to also allow
      full emulation of the same para-virtualized guests as such a KVM.
      
      Therefore, this patch adds a hook which will allow a machine to
      set up emulation of hypervisor calls.
      Signed-off-by: NDavid Gibson <dwg@au1.ibm.com>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      d569956e
    • D
      Allow qemu_devtree_setprop() to take arbitrary values · c4897490
      David Gibson 提交于
      Currently qemu_devtree_setprop() expects the new property value to be
      given as a uint32_t *.  While property values consisting of u32s are
      common, in general they can have any bytestring value.
      
      Therefore, this patch alters the function to take a void * instead,
      allowing callers to easily give anything as the property value.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      c4897490
    • D
      Clean up PowerPC SLB handling code · 81762d6d
      David Gibson 提交于
      Currently the SLB information when emulating a PowerPC 970 is
      storeed in a structure with the unhelpfully named fields 'tmp'
      and 'tmp64'.  While the layout in these fields does match the
      description of the SLB in the architecture document, it is not
      convenient either for looking up the SLB, or for emulating the
      slbmte instruction.
      
      This patch, therefore, reorganizes the SLB entry structure to be
      divided in the the "ESID related" and "VSID related" fields as
      they are divided in instructions accessing the SLB.
      
      In addition to making the code smaller and more readable, this will
      make it easier to implement for the 1TB segments used in more
      recent PowerPC chips.
      Signed-off-by: NDavid Gibson <dwg@au1.ibm.com>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      81762d6d
    • A
      target-ppc: ext32u instead of andi with constant · 17d9b3af
      Aurelien Jarno 提交于
      Cc: Alexander Graf <agraf@suse.de>
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      17d9b3af
  2. 31 3月, 2011 2 次提交
  3. 29 3月, 2011 10 次提交
  4. 26 3月, 2011 4 次提交
  5. 25 3月, 2011 2 次提交
  6. 24 3月, 2011 2 次提交
  7. 23 3月, 2011 2 次提交
  8. 22 3月, 2011 14 次提交