1. 29 6月, 2013 6 次提交
    • M
      vl: convert -smp to qemu_opts_parse() · 12b7f57e
      Michael Tokarev 提交于
      This also introduces a new suboption, "cpus=",
      which is the default.  So after this patch,
      
       -smp n,sockets=y
      
      is the same as
      
        -smp cpus=n,sockets=y
      
      (with "cpu" being some generic thing, referring to
      either cores, or threads, or sockets, as before).
      
      We still don't validate relations between different
      numbers, for example it is still possible to say
      
        -smp 1,sockets=10
      
      and it will be accepted to mean sockets=1.
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      Message-id: 1372072012-30305-1-git-send-email-mjt@msgid.tls.msk.ru
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      12b7f57e
    • K
      multiboot: Updated ROM binary · 8a27c6a0
      Kevin Wolf 提交于
      Signed-off-by: NKevin Wolf <mail@kevin-wolf.de>
      Reviewed-by: NAnthony Liguori <aliguori@us.ibm.com>
      Message-id: 1372018066-21822-4-git-send-email-mail@kevin-wolf.de
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      8a27c6a0
    • K
      multiboot: Calculate upper_mem in the ROM · 26a8ec07
      Kevin Wolf 提交于
      The upper_mem field of the Multiboot information struct doesn't really
      contain the RAM size - 1 MB like we used to calculate it, but only the
      memory from 1 MB up to the first (upper) memory hole.
      
      In order to correctly retrieve this information, the multiboot ROM now
      looks at the mmap it creates anyway and tries to find the size of
      contiguous usable memory from 1 MB.
      
      Drop the multiboot.c definition of lower_mem and upper_mem because both
      are queried at runtime now.
      Signed-off-by: NKevin Wolf <mail@kevin-wolf.de>
      Reviewed-by: NAnthony Liguori <aliguori@us.ibm.com>
      Message-id: 1372018066-21822-3-git-send-email-mail@kevin-wolf.de
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      26a8ec07
    • K
      multiboot: Don't forget last mmap entry · 390fb6b4
      Kevin Wolf 提交于
      When the BIOS returns ebx = 0, the current entry is still valid and
      needs to be included in the Multiboot memory map.
      
      Fixing this meant that using bx as the entry index doesn't work any
      more because it's 0 on the last entry (and it was SeaBIOS-specific
      anyway), so the whole loop had to change a bit and should be more
      generic as a result (ebx can be an arbitrary continuation number now,
      and the entry size returned by the BIOS is used instead of hard-coding
      20 bytes).
      Signed-off-by: NKevin Wolf <mail@kevin-wolf.de>
      Reviewed-by: NAnthony Liguori <aliguori@us.ibm.com>
      Message-id: 1372018066-21822-2-git-send-email-mail@kevin-wolf.de
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      390fb6b4
    • S
      arch_init: Fix format string by using RAM_ADDR_FMT · 6bedfe94
      Stefan Weil 提交于
      length is a ram_addr_t, so RAM_ADDR_FMT must be used instead of %ld.
      This fixes a recently introduced regression for w64 builds.
      
      Using RAM_ADDR_FMT also changes decimal output to sedecimal.
      This is good here because length and block->length should both
      use the same base in the error message.
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      Message-id: 1372359606-2759-1-git-send-email-sw@weilnetz.de
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      6bedfe94
    • A
      Merge remote-tracking branch 'afaerber/qom-cpu' into staging · 8a9c98ae
      Anthony Liguori 提交于
      # By Andreas Färber
      # Via Andreas Färber
      * afaerber/qom-cpu: (24 commits)
        cpu: Turn cpu_unassigned_access() into a CPUState hook
        hwaddr: Make hwaddr type usable beyond softmmu
        cpu: Change qemu_init_vcpu() argument to CPUState
        cpus: Change qemu_dummy_start_vcpu() argument to CPUState
        cpus: Change qemu_kvm_start_vcpu() argument to CPUState
        cpus: Change cpu_handle_guest_debug() argument to CPUState
        gdbstub: Set gdb_set_stop_cpu() argument to CPUState
        kvm: Change kvm_cpu_exec() argument to CPUState
        kvm: Change kvm_handle_internal_error() argument to CPUState
        cpu: Turn cpu_dump_{state,statistics}() into CPUState hooks
        cpus: Change qemu_kvm_init_cpu_signals() argument to CPUState
        kvm: Change kvm_set_signal_mask() argument to CPUState
        cpus: Change qemu_kvm_wait_io_event() argument to CPUState
        cpus: Change cpu_thread_is_idle() argument to CPUState
        cpu: Change cpu_exit() argument to CPUState
        kvm: Change cpu_synchronize_state() argument to CPUState
        kvm: Change kvm_cpu_synchronize_state() argument to CPUState
        gdbstub: Simplify find_cpu()
        cpu: Guard cpu_{save,load}() definitions
        target-openrisc: Register VMStateDescription for OpenRISCCPU
        ...
      8a9c98ae
  2. 28 6月, 2013 34 次提交