1. 30 5月, 2012 3 次提交
    • Amos_沧海桑田's avatar
      pci: call object_unparent() before free_qdev() · a6de8ed8
      Amos_沧海桑田 提交于
      Start VM with 8 multiple-function block devs, hot-removing
      those block devs by 'device_del ...' would cause qemu abort.
      
      | (qemu) device_del virti0-0-0
      | (qemu) **
      |ERROR:qom/object.c:389:object_delete: assertion failed: (obj->ref == 0)
      
      It's a regression introduced by commit 57c9fafe
      
      The whole PCI slot should be removed once. Currently only one func
      is cleaned in pci_unplug_device(), if you try to remove a single
      func by monitor cmd.
      
      free_qdev() are called for all functions in slot,
      but unparent_delete() is only called for one
      function.
      
      Signed-off-by: XXXX
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      a6de8ed8
    • S
      fix multiboot loading if load_end_addr == 0 · 9c3a596a
      Scott Moser 提交于
      The previous multiboot load code did not treat the case where
      load_end_addr was 0 specially.  The multiboot specification says the
      following:
       * load_end_addr
         Contains the physical address of the end of the data segment.
         (load_end_addr - load_addr) specifies how much data to load. This
         implies that the text and data segments must be consecutive in the
         OS image; this is true for existing a.out executable formats. If
         this field is zero, the boot loader assumes that the text and data
         segments occupy the whole OS image file.
      Signed-off-by: NScott Moser <smoser@ubuntu.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      9c3a596a
    • A
      vga: fix vram double-mapping with -vga std and -M pc-0.12 · 8294a64d
      Avi Kivity 提交于
      With pc-0.12, we map the video RAM both through the PCI BAR (the guest does
      this) and through a fixed mapping at 0xe0000000.  The memory API doesn't allow
      this double map, and aborts.
      
      Fix by using an alias.
      Reported-by: NMichael Tokarev <mjt@tls.msk.ru>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      8294a64d
  2. 29 5月, 2012 10 次提交
  3. 28 5月, 2012 7 次提交
  4. 26 5月, 2012 10 次提交
  5. 25 5月, 2012 3 次提交
  6. 24 5月, 2012 2 次提交
    • J
      audio: Always call fini on exit · aeb29b64
      Jan Kiszka 提交于
      Not only clean up enabled voices but any registered one. Backends like
      pulsaudio rely on unconditional fini handler invocations.
      
      This fixes "Memory pool destroyed but not all memory blocks freed!"
      warnings on VM shutdowns when pa is used and lockups of QEMU on shutdown
      as it got stuck on some pa-internal synchronization point.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: Nmalc <av1474@comtv.ru>
      aeb29b64
    • S
      es1370: Fix debug code · f8687bab
      Stefan Weil 提交于
      When DEBUG_ES1370 is defined, the compiler shows these warnings:
      
      hw/es1370.c: In function ?es1370_update_voices?:
      hw/es1370.c:414: warning: format ?%d? expects type ?int?, but argument 3 has type ?size_t?
      hw/es1370.c: In function ?es1370_writel?:
      hw/es1370.c:582: warning: format ?%d? expects type ?int?, but argument 3 has type ?long int?
      hw/es1370.c:592: warning: format ?%d? expects type ?int?, but argument 3 has type ?long int?
      hw/es1370.c:609: warning: format ?%d? expects type ?int?, but argument 3 has type ?long int?
      hw/es1370.c: In function ?es1370_readl?:
      hw/es1370.c:751: warning: suggest braces around empty body in an ?if? statement
      
      Fix the format strings and add the missing braces.
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      Signed-off-by: Nmalc <av1474@comtv.ru>
      f8687bab
  7. 22 5月, 2012 5 次提交