1. 28 8月, 2013 1 次提交
    • M
      hw: Clean up bogus default boot order · c1654732
      Markus Armbruster 提交于
      We set default boot order "cad" in every single machine definition
      except "pseries" and "moxiesim", even though very few boards actually
      care for boot order, and "cad" makes sense for even fewer.
      
      Machines that care:
      
      * pc and its variants
      
        Accept up to three letters 'a', 'b' (undocumented alias for 'a'),
        'c', 'd' and 'n'.  Reject all others (fatal with -boot).
      
      * nseries (n800, n810)
      
        Check whether order starts with 'n'.  Silently ignored otherwise.
      
      * prep, g3beige, mac99
      
        Extract the first character the machine understands (subset of
        'a'..'f').  Silently ignored otherwise.
      
      * spapr
      
        Accept an arbitrary string (vl.c restricts it to contain only
        'a'..'p', no duplicates).
      
      * sun4[mdc]
      
        Use the first character.  Silently ignored otherwise.
      
      Strip characters these machines ignore from their default boot order.
      
      For all other machines, remove the unused default boot order
      alltogether.
      
      Note that my rename of QEMUMachine member boot_order to
      default_boot_order and QEMUMachineInitArgs member boot_device to
      boot_order has a welcome side effect: it makes every use of boot
      orders visible in this patch, for easy review.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NLaszlo Ersek <lersek@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      c1654732
  2. 25 7月, 2013 1 次提交
  3. 12 7月, 2013 1 次提交
  4. 08 7月, 2013 1 次提交
    • D
      pci: Add root bus parameter to pci_nic_init() · 29b358f9
      David Gibson 提交于
      At present, pci_nic_init() and pci_nic_init_nofail() assume that they will
      only create a NIC under the primary PCI root.  As we add support for
      multiple PCI roots, that may no longer be the case.  This patch adds a root
      bus parameter to pci_nic_init() (and updates callers accordingly) to allow
      the machine init code using it to specify the right PCI root for NICs
      created by old-style -net nic parameters.  NICs created new-style, with
      -device can of course be put anywhere.
      Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      29b358f9
  5. 04 7月, 2013 1 次提交
  6. 01 7月, 2013 5 次提交
  7. 27 4月, 2013 1 次提交
    • 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
  8. 09 4月, 2013 1 次提交
    • P
      hw: move headers to include/ · 0d09e41a
      Paolo Bonzini 提交于
      Many of these should be cleaned up with proper qdev-/QOM-ification.
      Right now there are many catch-all headers in include/hw/ARCH depending
      on cpu.h, and this makes it necessary to compile these files per-target.
      However, fixing this does not belong in these patches.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      0d09e41a
  9. 09 3月, 2013 1 次提交
  10. 27 1月, 2013 1 次提交
  11. 26 1月, 2013 7 次提交
  12. 22 1月, 2013 1 次提交
  13. 16 1月, 2013 1 次提交
  14. 19 12月, 2012 3 次提交
  15. 17 12月, 2012 1 次提交
  16. 14 12月, 2012 2 次提交
    • A
      openpic: convert to qdev · d0b72631
      Alexander Graf 提交于
      This patch converts the OpenPIC device to qdev. Along the way it
      renames the "openpic" target to "raven" and the "mpic" target to
      "fsl_mpic_20", to better reflect the actual models they implement.
      
      This way we have a generic OpenPIC device now that can handle
      different flavors of the OpenPIC specification.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      d0b72631
    • A
      openpic: remove irq_out · 5bac0701
      Alexander Graf 提交于
      The current openpic emulation contains half-ready code for bypass mode.
      Remove it, so that when someone wants to finish it they can start from a
      clean state.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      5bac0701
  17. 29 10月, 2012 1 次提交
    • 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
  18. 23 10月, 2012 1 次提交
    • A
      Rename target_phys_addr_t to hwaddr · a8170e5e
      Avi Kivity 提交于
      target_phys_addr_t is unwieldly, violates the C standard (_t suffixes are
      reserved) and its purpose doesn't match the name (most target_phys_addr_t
      addresses are not target specific).  Replace it with a finger-friendly,
      standards conformant hwaddr.
      
      Outstanding patchsets can be fixed up with the command
      
        git rebase -i --exec 'find -name "*.[ch]"
                              | xargs s/target_phys_addr_t/hwaddr/g' origin
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      a8170e5e
  19. 20 10月, 2012 1 次提交
    • E
      create struct for machine initialization arguments · 5f072e1f
      Eduardo Habkost 提交于
      This should help us to:
      - More easily add or remove machine initialization arguments without
        having to change every single machine init function;
      - More easily make mechanical changes involving the machine init
        functions in the future;
      - Let machine initialization forward the init arguments to other
        functions more easily.
      
      This change was half-mechanical process: first the struct was added with
      the local ram_size, boot_device, kernel_*, initrd_*, and cpu_model local
      variable initialization to all functions. Then the compiler helped me
      locate the local variables that are unused, so they could be removed.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      5f072e1f
  20. 07 10月, 2012 2 次提交
  21. 16 8月, 2012 1 次提交
  22. 05 6月, 2012 2 次提交
  23. 15 3月, 2012 2 次提交
  24. 13 3月, 2012 1 次提交