1. 23 9月, 2014 1 次提交
  2. 22 9月, 2014 1 次提交
    • M
      usb-storage: Fix how legacy init handles option ID clash · 31376776
      Markus Armbruster 提交于
      usb_msd_init() calls qemu_opts_create() with a made-up ID and false
      fail_if_exists.  If the ID already exists, it happily messes up those
      options, then fails drive_new(), because the BlockDriverState with
      that ID already exists, too.
      
      Reproducer: -drive if=none,id=usb0,format=raw -usbdevice disk:tmp.qcow2
      
      Pass true fail_if_exists to qemu_opts_create(), and if it fails, try
      the next made-up ID.
      
      The reproducer now succeeds, and creates an usb-storage device with ID
      usb1.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      31376776
  3. 20 9月, 2014 2 次提交
  4. 19 9月, 2014 15 次提交
  5. 18 9月, 2014 1 次提交
  6. 17 9月, 2014 8 次提交
  7. 16 9月, 2014 5 次提交
  8. 15 9月, 2014 5 次提交
  9. 12 9月, 2014 2 次提交
    • P
      Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging · 2b31cd4e
      Peter Maydell 提交于
      - Memory: improve error reporting and avoid crashes on hotplug
      - Build: fixing block/iscsi.so and ranlib warnings on Mac OS X
      - Migration fixes for x86
      - The odd KVM patch.
      
      # gpg: Signature made Thu 11 Sep 2014 11:21:10 BST using RSA key ID 9B4D86F2
      # gpg: Good signature from "Paolo Bonzini <pbonzini@redhat.com>"
      # gpg:                 aka "Paolo Bonzini <bonzini@gnu.org>"
      
      * remotes/bonzini/tags/for-upstream: (21 commits)
        gdbstub: init mon_chr through qemu_chr_alloc
        pckbd: adding new fields to vmstate
        mc146818rtc: add missed field to vmstate
        piix: do not set irq while loading vmstate
        serial: fixing vmstate for save/restore
        parallel: adding vmstate for save/restore
        fdc: adding vmstate for save/restore
        cpu: init vmstate for ticks and clock offset
        apic_common: vapic_paddr synchronization fix
        vl: use QLIST_FOREACH_SAFE to visit change state handlers
        exec: add parameter errp to gethugepagesize
        exec: report error when memory < hpagesize
        hostmem-ram: don't exit qemu if size of memory-backend-ram is way too big
        memory: add parameter errp to memory_region_init_rom_device
        memory: add parameter errp to memory_region_init_ram
        exec: add parameter errp to qemu_ram_alloc and qemu_ram_alloc_from_ptr
        rules.mak: Fix DSO build by pulling in archive symbols
        util: Don't link host-utils.o if it's empty
        util: Move general qemu_getauxval to util/getauxval.c
        trace: Only link generated-tracers.o with "simple" backend
        ...
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      2b31cd4e
    • L
      exec: file_ram_alloc(): print error when prealloc fails · e4d9df4f
      Luiz Capitulino 提交于
      If memory allocation fails when using the -mem-prealloc command-line
      option, QEMU exits without printing any error information to
      the user:
      
       # qemu [...] -m 1G -mem-prealloc -mem-path /dev/hugepages
       # echo $?
       1
      
      This commit adds an error message, so that we print instead:
      
       # qemu [...] -m 1G -mem-prealloc -mem-path /dev/hugepages
       qemu: unable to map backing store for hugepages: Cannot allocate memory
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      e4d9df4f