- 24 2月, 2010 6 次提交
-
-
由 Kevin Wolf 提交于
Checking for return codes < 0 isn't really going to work with unsigned types. Use signed types instead. Signed-off-by: NKevin Wolf <kwolf@redhat.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit f4f0d391)
-
由 Evgeniy Dushistov 提交于
In case, when qemu is executed with option like -serial /dev/ttyS0, report if there are problems with opening of devices. At now errors are silently ignoring. Signed-off-by: NEvgeniy Dushistov <dushistov@mail.ru> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit afc535ac)
-
由 Anthony Liguori 提交于
- 9fb3f4d Fix PkgLength calculation for the SSDT. - 6d75be2 Go back to using 0xf0000000 for PCI memory start. Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
-
由 Jan Kiszka 提交于
This should explain a lot of the weird breakages of upstream KVM we've seen recently (actually we should have seen it much earlier): Stop translating eflags into TCG format when in kvm mode as we never translate it back and rather sync this broken state into the kernel. Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com> Signed-off-by: NAvi Kivity <avi@redhat.com>
-
由 Aurelien Jarno 提交于
Backported from HEAD (cc3f20fee2c9bea3793bf873c531ae6baf68df3a) Signed-off-by: NNathan Froyd <froydnj@codesourcery.com> Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
-
由 Nathan Froyd 提交于
When we signal a CpU exception for coprocessor 0, we should indicate that it's for coprocessor 0 instead of coprocessor 1. Signed-off-by: NNathan Froyd <froydnj@codesourcery.com> Signed-off-by: NAurelien Jarno <aurelien@aurel32.net> (cherry picked from commit 13f160cebd0778113ba8d251aea297286b1666cb)
-
- 10 2月, 2010 1 次提交
-
-
由 Aurelien Jarno 提交于
The address register is overriden when it corresponds to v0 and the fast path is taken, which leads to a crash. Fix that by using the a0 register instead. Signed-off-by: NAurelien Jarno <aurelien@aurel32.net> (cherry picked from commit cca1af8c)
-
- 07 2月, 2010 1 次提交
-
-
由 Aurelien Jarno 提交于
In helper.c AREG0 may not correspond do env, so it's not possible to call cpu_loop_exit() here. Call it from op_helper.c instead. Signed-off-by: NAurelien Jarno <aurelien@aurel32.net> (cherry picked from commit c36bbb28)
-
- 30 1月, 2010 4 次提交
-
-
由 Kevin Wolf 提交于
If an I/O request fails right away instead of getting an error only in the callback, we still need to consider rerror/werror. Signed-off-by: NKevin Wolf <kwolf@redhat.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 6c510fbf)
-
由 Kevin Wolf 提交于
Current code assumes that only write requests are ever going to be restarted. This is wrong since rerror=stop exists. Instead of directly starting writes, use the same request processing as used for new requests. Signed-off-by: NKevin Wolf <kwolf@redhat.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit f1b52868)
-
由 Kevin Wolf 提交于
We need a function that handles a single request. Create one by splitting out code from virtio_blk_handle_output. Signed-off-by: NKevin Wolf <kwolf@redhat.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit bc6694d4)
-
由 Jan Kiszka 提交于
This fixes CONFIG_FB_CIRRUS for Linux guests and probably much more: When switching away from linearly mapped vram, we also have to restore the I/O handlers for the LFB. This regression was once introduced by commit 2bec46dc. Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 4516e45f)
-
- 27 1月, 2010 16 次提交
-
-
由 Kevin Wolf 提交于
Now that qcow2_alloc_clusters can return error codes, we must handle them in the callers of qcow2_alloc_clusters. Signed-off-by: NKevin Wolf <kwolf@redhat.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 5d757b56)
-
由 Kevin Wolf 提交于
update_refcount can return errors that need to be handled by the callers. Signed-off-by: NKevin Wolf <kwolf@redhat.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit db3a964f)
-
由 Kevin Wolf 提交于
There's absolutely no problem with updating the refcounts of 0 clusters. At least snapshot code is doing this and would fail once the result of update_refcount isn't ignored any more. Signed-off-by: NKevin Wolf <kwolf@redhat.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 7322afe7)
-
由 Kevin Wolf 提交于
If update_refcount fails, try to undo any changes made so far to avoid inconsistencies in the image file. Signed-off-by: NKevin Wolf <kwolf@redhat.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 09508d13)
-
由 Kevin Wolf 提交于
Return the appropriate error code instead of -EIO. Signed-off-by: NKevin Wolf <kwolf@redhat.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit f2b7c8b3)
-
由 Kevin Wolf 提交于
Don't assume -EIO but return the real error. Signed-off-by: NKevin Wolf <kwolf@redhat.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 9a8c4cce)
-
由 Kevin Wolf 提交于
Returning 0/-errno allows it to distingush different errors classes. The cluster offset of newly allocated clusters is now returned in the QCowL2Meta struct. Signed-off-by: NKevin Wolf <kwolf@redhat.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 148da7ea)
-
由 Kevin Wolf 提交于
Switching to 0/-errno allows it to distinguish different error cases. Signed-off-by: NKevin Wolf <kwolf@redhat.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 1e3e8f1a)
-
由 Kevin Wolf 提交于
Don't assume success but pass the bdrv_pwrite return value on. Signed-off-by: NKevin Wolf <kwolf@redhat.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 1d36e3aa)
-
由 Kevin Wolf 提交于
Return the appropriate error value instead of always using EIO. Don't free the L1 table on errors, we still need it. Signed-off-by: NKevin Wolf <kwolf@redhat.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit fb8fa77c)
-
由 Herve Poussineau 提交于
Toggle full screen on Win32/SDL 1.2.13 was broken by commit c18a2c36. Re-add the call to do_sdl_resize() which was removed in this revision Signed-off-by: NHerve Poussineau <hpoussin@reactos.org> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit a35aed57)
-
由 Herve Poussineau 提交于
Win32 suffers from a very big memory leak when dealing with SCSI devices. Each read/write request allocates memory with qemu_memalign (ie VirtualAlloc) but frees it with qemu_free (ie free). Pair all qemu_memalign() calls with qemu_vfree() to prevent such leaks. Signed-off-by: NHerve Poussineau <hpoussin@reactos.org> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit f8a83245)
-
由 Stefano Stabellini 提交于
Hi all, this patch fixes another bug in vnc_refresh: calling vnc_update_client might cause vs to be free()ed, in this case we cannot access vs->next right after to examine the next item on the list. Signed-off-by: NStefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 6185c578)
-
由 Jan Kiszka 提交于
Commit 930c8682 introduced a regression to eth_send: eth_tx_desc_put manipulates the host's tx descriptor copy before writing it back, but two lines down the descriptor is evaluated again, leaving us with an invalid next address if host and guest endianness differ. So this was the actual issue commit 2e87c5b9 tried to paper over. Signed-off-by: NJan Kiszka <jan.kiszka@web.de> Signed-off-by: Nmalc <av1474@comtv.ru> (cherry picked from commit 07b064e9) Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
-
由 Jan Kiszka 提交于
Commit b3a21988 uncovered that we attached the Wolfson with an I2C address shifted left by one. Fixing this makes sound work again for the Musicpal. Signed-off-by: NJan Kiszka <jan.kiszka@web.de> Signed-off-by: Nmalc <av1474@comtv.ru> (cherry picked from commit 64258229) Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
-
由 Marcelo Tosatti 提交于
savevm without id or tag segfaults in: (gdb) bt #0 0x00007f600a83bf8a in __strcmp_sse42 () from /lib64/libc.so.6 #1 0x00000000004745b6 in bdrv_snapshot_find (bs=<value optimized out>, sn_info=0x7fff996be280, name=0x0) at savevm.c:1631 #2 0x0000000000475c80 in del_existing_snapshots (name=<value optimized out>, mon=<value optimized out>) at savevm.c:1654 #3 do_savevm (name=<value optimized out>, mon=<value optimized out>) Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit f139a412)
-
- 20 1月, 2010 8 次提交
-
-
由 Gleb Natapov 提交于
Windows 7 BSODs under load with HAL_RTC_IRQF_WILL_NOT_CLEAR error. It happens here: hal!HalpRtcUnmaskClock: 8281b93a 8bff mov edi,edi 8281b93c 56 push esi 8281b93d 33f6 xor esi,esi 8281b93f 6a0c push 0Ch 8281b941 e8b2ffffff call hal!CMOS_READ (8281b8f8) 8281b946 84c0 test al,al 8281b948 7920 jns hal!HalpRtcUnmaskClock+0x30 (8281b96a) 8281b94a 6a0a push 0Ah 8281b94c 46 inc esi 8281b94d e854c8ffff call hal!KeStallExecutionProcessor (828181a6) 8281b952 83fe64 cmp esi,64h 8281b955 72e8 jb hal!HalpRtcUnmaskClock+0x5 (8281b93f) 8281b957 6a00 push 0 8281b959 6a00 push 0 8281b95b 6a00 push 0 8281b95d 680a010000 push 10Ah 8281b962 6a5c push 5Ch 8281b964 ff1500c38082 call dword ptr [hal!_imp__KeBugCheckEx (8280c300)] 8281b96a 5e pop esi 8281b96b c3 ret So it loops for 100(64h) times reading register C before BSOD. Lets reduce number of immediate reinjection well under this limit. Signed-off-by: NGleb Natapov <gleb@redhat.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit dd17765b)
-
由 Luiz Capitulino 提交于
Commit f039a563 introduces a regression as monitor_protocol_event() will return in the first user Monitor it finds in the QLIST_FOREACH() loop. The right thing to do is to only delivery an asynchronous event if the 'mon' is a QMP Monitor. The aforementioned commit was an early version, if it was applied to stable (it should) this one has to be applied there too. Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 23fabed1)
-
由 Stefan Weil 提交于
The command line options -device, -nodefaults, -readconfig, -writeconfig had entries for command line help, but documentation for texi and derived formats (man, html, info) was missing. This also required moving "@end table" to the end of qemu-options.hx again. Signed-off-by: NStefan Weil <weil@mail.berlios.de> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 3dbf2c7f)
-
由 Gerd Hoffmann 提交于
This patch adds compat property entries for ide-disk.ver and scsi-disk.ver to pc-0.10 and pc-0.11. With this patch applied the scsi and ide disks report "0.10" and "0.11" as version when you start qemu with "-M pc-0.10" or "-M pc-0.11". Signed-off-by: NGerd Hoffmann <kraxel@redhat.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 374ef704)
-
由 Gerd Hoffmann 提交于
This patch adds a new property named 'ver' to scsi-disk which allows to specify the version which the virtual disk/cdrom should report to the guest. By default this is the qemu version (i.e. 0.12). usage: -drive if=none,id=disk,file=... -device lsi -device scsi-disk,drive=disk,bus=scsi.0,unit=0,ver=42 You can also switch the version for all scsi drives using: -global scsi-disk.ver=42 Signed-off-by: NGerd Hoffmann <kraxel@redhat.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 383b4d9b)
-
由 Gerd Hoffmann 提交于
This patch adds a new property named 'ver' to ide-drive which allows to specify the version which the virtual disk/cdrom should report to the guest. By default this is the qemu version (i.e. 0.12). usage: -drive if=none,id=disk,file=... -device ide-drive,bus=ide.0,unit=0,drive=disk,ver=42 You can also switch the version for all ide drives using: -global ide-drive.ver=42 Signed-off-by: NGerd Hoffmann <kraxel@redhat.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 47c06340)
-
由 Adam Litke 提交于
When using a control/QMP monitor in tandem with a regular monitor, asynchronous messages can get lost depending on the order of the QEMU program arguments. QEMU events issued by monitor_protocol_event() always go to cur_mon. If the user monitor was specified on the command line first (or it has ,default), the message will be directed to the user monitor (not the QMP monitor). Additionally, only one QMP session is currently able to receive async messages. To avoid this confusion, scan through the list of monitors and emit the message on each QMP monitor. Signed-off-by: NAdam Litke <agl@us.ibm.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit f039a563)
-
由 Kevin Wolf 提交于
Since commit 747bbdf7 QEMU_WARN_UNUSED_RESULT is never defined as it is conditional on a define from config-host.h which is included only later. Include that file earlier to get the warnings back. Reactivating it unfortunately leads to some warnings about unused qdev_init results. These calls are changed to qdev_init_nofail to avoid build failures. Signed-off-by: NKevin Wolf <kwolf@redhat.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit beb6f0de)
-
- 14 1月, 2010 4 次提交
-
-
由 Anthony Liguori 提交于
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
-
由 Anthony Liguori 提交于
- 5da6833 Update version to 0.5.1 - 669c991 Fix sign error preventing incorrect memory over 4gig calculation. - 7e6bd3e Minor - better indent assembler in int1587. - 48cf232 Add comment explaining why mptable is in low memory. - 643062f Add int1589 support. - 085debd Set FDPT in irq table even for small drives. - 7c1b186 Reduce #ifs by weeding out some cross-chunk function definitions. - f9b25d3 Fix vgahook sign issue; add warning to build to catch future cases. - 3862b2d vgabios: Fix compile error due to fixed prototypes. - 1ca05b0 Be sure to add "void" to all function prototypes that take no args. - b5bb9db mptable: Reset pinmask on new bus or device. - 8918989 Detect latest FC12 gcc -combine breakage. - c9d3c2d Minor vga binary cleanups. - 9a8609f Make MTRR region 0xc0000-0x100000 be cached. - fdca418 Force a link error if a function is used from the wrong code chunk. - dad41d9 Add __noreturn define for __attribute__((noreturn)). - c003148 Implement native 32bit APM support. - 5c99b6c Commit compiled dsdt file; misc comment updates. - 29f4b91 prevent acpi from rerouting SCI interrupt - 4c94b7e enumerate all PCI buses in mptable - 871e0a0 Add support for 32bit PCI BIOS entry. - eda2c83 Only add "addr32" to memory accesses that require them. - 52a300f Introduce MODESEGMENT define; rename VISIBLE32 to VISIBLE32FLAT. - fe2c3ee Allocate smbios in temp space and copy into final location. - b164d2c Clear user reserved interrupts (0x60-0x66). - d9104ff Remove pci_bios_bigmem_addr; set pci_bios_mem_addr=0xe0000000 - 14021f2 Add initial support for ATA DMA. - 8362699 Allocate mptable in temp space and copy into final location. - 979862e Also report memory over 4G during init. - 928d4df provide correct pci routing information in mptable - afc02da Add symbolic definitions for MTRR code. - fb214dc Fix yield() so it works from boot code. - 2ceeec9 Fix potential build failure due to text16 section being too large. - a2195e4 Increase version in preparation for next release. Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
-
由 Milan Plzik 提交于
According to RFC 1350 and RFC 2347, TFTP server should answer RRQ by either OACK or DATA packet. Qemu's internal TFTP server answers RRQ with additional options by sending both OACK and DATA packet, thus breaking the "lock-step" feature of the protocol, and also confuses client. Proposed solution would be to, in case of OACK packet, wait for ACK from client and just then start sending data. Attached patch implements this. Signed-off-by: NThomas Horsten <thomas@horsten.com> Signed-off-by: NMilan Plzik <milan.plzik@gmail.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 1cb1a66a)
-
由 Kevin Wolf 提交于
Commit 3a03bfa5 added a fallback in case the Linux kernel running qemu is older than the kernel of the build system. Unfortunately, v1 was committed instead of v2, so the code has a bug that was revealed in the review (checking for the wrong error code). Signed-off-by: NKevin Wolf <kwolf@redhat.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com> (cherry picked from commit 347ed55c)
-