1. 25 4月, 2010 5 次提交
  2. 24 4月, 2010 1 次提交
  3. 19 4月, 2010 6 次提交
  4. 14 4月, 2010 3 次提交
    • S
      tcp/mips: Change TCG_AREG0 (fp -> s0) · d80e20a1
      Stefan Weil 提交于
      Register fp (frame pointer) is a bad choice for compilations
      without optimisation, because the compiler makes heavy use
      of this register (so the resulting code crashes).
      
      Register s0 had been used for TCG_AREG1 in earlier releases,
      but was no longer used and is now free for TCG_AREG0.
      
      The resulting code works for compilations without
      optimisation (tested with qemu mips in qemu mips
      on x86 host).
      Signed-off-by: NStefan Weil <weil@mail.berlios.de>
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      d80e20a1
    • A
      sh_pci: fix memory and I/O access · 1ce4fad9
      Aurelien Jarno 提交于
      Since commit 8da3ff18 ("MMIO callback
      interface changes"), the addresses passed to the I/O functions are an
      offset to the start of the area. As a consequence, there is no need to
      correct the address using the value of IOBR. This make possible the use
      of the default MMIO functions. Moreover the addresses are now remaped
      when the value if IOBR change.
      
      The memory area corresponds to the devices behing the PCI bus, it should
      not be mapped by the PCI controller. Remove the corresponding code.
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      (cherry-picked from commit 5ba9e952)
      1ce4fad9
    • M
      Fix incoming migration with iothread · 9167a242
      Marcelo Tosatti 提交于
      Do not allow the vcpus to execute if the vm is stopped.
      
      Fixes -incoming with CONFIG_IOTHREAD enabled.
      Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
      (cherry picked from commit c5f32c99)
      9167a242
  5. 11 4月, 2010 2 次提交
    • C
      Fix SIGFPE for vnc display of width/height = 1 · 09e96924
      Chris Webb 提交于
      During boot, the screen gets resized to height 1 and a mouse click at this
      point will cause a division by zero when calculating the absolute pointer
      position from the pixel (x, y). Return a click in the middle of the screen
      instead in this case.
      Signed-off-by: NChris Webb <chris@arachsys.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      (cherry picked from commit cc39a92c)
      09e96924
    • E
      net: remove broken net_set_boot_mask() boot device validation · 69ff4e9d
      Eduardo Habkost 提交于
      There are many problems with net_set_boot_mask():
      
      1) It is broken when using the device model instead of "-net nic". Example:
         $ qemu-system-x86_64 -device rtl8139,vlan=0,id=net0,mac=52:54:00:82:41:fd,bus=pci.0,addr=0x4 -net user,vlan=0,name=hostnet0 -vnc 0.0.0.0:0 -boot n
         Cannot boot from non-existent NIC
         $
      2) The mask was previously used to set which boot ROMs were supposed to be
         loaded, but this was changed long time ago. Now all ROM images are loaded,
         and SeaBIOS takes care of jumping to the right boot entry point depending on
         the boot settings.
      3) Interpretation and validation of the boot parameter letters is done on
         the machine type code. Examples: PC accepts only a,b,c,d,n as valid boot
         device letters. mac99 accepts only a,b,c,d,e,f.
      
      As a side-effect of this change, qemu-kvm won't abort anymore if using "-boot n"
      on a machine with no network devices. Checking if the requested boot device is
      valid is now a task for the BIOS or the machine-type code.
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Acked-by: NJuan Quintela <quintela@redhat.com>
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      (cherry-picked from da1fcfda)
      69ff4e9d
  6. 10 4月, 2010 15 次提交
  7. 06 4月, 2010 1 次提交
  8. 29 3月, 2010 1 次提交
  9. 20 3月, 2010 2 次提交
    • A
      tcg/arm: correctly save/restore registers in prologue/epilogue · 5c689207
      Aurelien Jarno 提交于
      Since commit 6113d6d3 QEMU crashes
      on ARM hosts. This is not a bug of this commit, but a latent bug
      revealed by this commit.
      
      The TCG code is called through a procedure call using the prologue
      and epilogue code. This code does not save and restore enough registers.
      The "Procedure Call Standard for the ARM Architecture" says:
      
        A subroutine must preserve the contents of the registers r4-r8, r10,
        r11 and SP (and r9 in PCS variants that designate r9 as v6).
      
      The current code only saves and restores r9 to r11, and misses r4 to
      r8. The patch fixes that by saving r4 to r12. Theoretically there is
      no need to save and restore r12, but an even number of registers have
      to be saved as per EABI.
      Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
      (cherry picked from commit 4e17eae9)
      5c689207
    • I
      workaround for cmd646 bmdma register access while no dma is active · 18a21890
      Igor V. Kovalenko 提交于
      This is a workaround only, and is a partial revert
      of a few changes to BMDMAState which removed pci_dev
      field on the way.
      
      - cmd646 pci_from_bm() expects bm->unit value to
      correspond with bm data being passed to callback
      as opaque pointer. This breaks when write to dma
      control register of second channel happens when no
      dma operation is in progress, so bm->unit is zero
      for second channel, and pci_from_bm() returns garbage
      pointer. Crash happens shortly after that while
      dereferencing that pointer.
      
      v0->v1: cleaned up dead code from pci_from_bm.
      Signed-off-by: NIgor V. Kovalenko <igor.v.kovalenko@gmail.com>
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      (cherry picked from commit 90228ee3)
      18a21890
  10. 16 3月, 2010 2 次提交
  11. 15 3月, 2010 1 次提交
  12. 13 3月, 2010 1 次提交