commit_msg
stringlengths
1
24.2k
commit_hash
stringlengths
2
84
project
stringlengths
2
40
source
stringclasses
4 values
labels
int64
0
1
repo_url
stringlengths
26
70
commit_url
stringlengths
74
118
commit_date
stringlengths
25
25
quorum: validate vote threshold against num_children even if read-pattern is fifo We need to use threshold to check if too many write operation fails. If threshold is larger than num children, we always get write error event even if all write operations success. Signed-off-by: Wen Congyang <[email protected]> Message-id: [email protected] Reviewed-by: Alberto Garcia <[email protected]> Reviewed-by: Max Reitz <[email protected]> Signed-off-by: Max Reitz <[email protected]>
834cb2ada5db197a11c99142d50222945d196fc0
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/834cb2ada5db197a11c99142d50222945d196fc0
2015-09-04 21:00:32+02:00
s390/sclp: temporarily fix unassignment/reassignment of memory subregions Commit 374f2981d1f1 ("memory: protect current_map by RCU") broke unassignment of standby memory on s390x. Looks like that the new parallelism allows races with our (semi broken) memory hotplug code. The flatview_unref() can now be executed after our unparenting. Therefore memory_region_unref() tries to unreference the MemoryRegion itself instead of the parent. In theory, MemoryRegions are now bound to separate devices that control their lifetime. We don't have this yet, so we really want to control their lifetime manually. This patch fixes it temporarily, until we have a proper rework. The only drawback is that they won't pop up in "info qom-tree", but that's better than qemu crashes. We have to release the reference to a memory region after a memory_region_find, as it automatically takes a reference. As we're now able to reassign memory, the MemoryRegion is in fact deleted (otherwise vmstate_register_ram() would complain). Reviewed-by: Matthew Rosato <[email protected]> Signed-off-by: David Hildenbrand <[email protected]> Signed-off-by: Cornelia Huck <[email protected]>
732bdd383ee06be2655b1a849a628ff03b0000b8
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/732bdd383ee06be2655b1a849a628ff03b0000b8
2015-09-07 16:10:43+02:00
vhost/scsi: call vhost_dev_cleanup() at unrealize() time vhost-scsi calls vhost_dev_init() at realize() time but forgets to call it's counterpart vhost_dev_cleanup() at unrealize() time. Calling it should fix leaking of memory table and mem_sections table in vhost device. And also unregister vhost's memory listerner to prevent access from memory core to freed memory. Signed-off-by: Igor Mammedov <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
af103c9310b7ab56a2552965d9d1274b0024f27b
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/af103c9310b7ab56a2552965d9d1274b0024f27b
2015-07-30 15:45:07+02:00
aio-win32: reorganize polling loop Preparatory bugfixes and tweaks to the loop before the next patch: - disable dispatch optimization during aio_prepare. This fixes a bug. - do not modify "blocking" until after the first WaitForMultipleObjects call. This is needed in the next patch. - change the loop to do...while. This makes it obvious that the loop is always entered at least once. In the next patch this is important because the first iteration undoes the ctx->notify_me increment that happened before entering the loop. Signed-off-by: Paolo Bonzini <[email protected]> Reviewed-by: Fam Zheng <[email protected]> Tested-by: Richard W.M. Jones <[email protected]> Message-id: [email protected] Signed-off-by: Stefan Hajnoczi <[email protected]>
6493c975af75be5b8d9ade954239bdf5492b7911
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/6493c975af75be5b8d9ade954239bdf5492b7911
2015-07-22 12:41:40+01:00
ossaudio: fix memory leak Variable "conf" going out of scope leaks the storage it points to in line 856. Signed-off-by: Gonglei <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
2828a307232ffceeddec9feb6a87ac660b68b693
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/2828a307232ffceeddec9feb6a87ac660b68b693
2015-07-08 13:11:01+02:00
block/raw-posix: Don't think /dev/fd/<NN> is a floppy drive. In libguestfs we use /dev/fd/<NN> to pass pre-opened file descriptors to qemu-img. Lately I've discovered that although this works, qemu believes that these are floppy disk images. That in itself isn't much of a problem, but now qemu prints a warning about host floppy pass-thru being deprecated. Extend the existing test so that it ignores /dev/fd/ as well as /dev/fdset/ A simple test of this, if you are using the bash shell, is: qemu-img info <( cat /dev/null ) without this patch: $ qemu-img info <( cat /dev/null ) qemu-img: Host floppy pass-through is deprecated Support for it will be removed in a future release. qemu-img: Could not open '/dev/fd/63': Could not refresh total sector count: Illegal seek with this patch: $ qemu-img info <( cat /dev/null ) qemu-img: Could not open '/dev/fd/63': Could not refresh total sector count: Illegal seek Signed-off-by: Richard W.M. Jones <[email protected]> Reviewed-by: Markus Armbruster <[email protected]> Message-id: [email protected] Fixes: https://bugs.launchpad.net/qemu/+bug/1470536 Signed-off-by: Stefan Hajnoczi <[email protected]>
25d9747b6427de8253221d544b45e50888d4cef7
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/25d9747b6427de8253221d544b45e50888d4cef7
2015-07-07 14:27:14+01:00
Fix migration in case of scsi-generic During migration, QEMU uses fsync()/fdatasync() on the open file descriptor for read-write block devices to flush data just before stopping the VM. However, fsync() on a scsi-generic device returns -EINVAL which causes the migration to fail. This patch skips flushing data in case of an SG device, since submitting SCSI commands directly via an SG character device (e.g. /dev/sg0) bypasses the page cache completely, anyway. Note that fsync() not only flushes the page cache but also the disk cache. The scsi-generic device never sends flushes, and for migration it assumes that the same SCSI device is used by the destination host, so it does not issue any SCSI SYNCHRONIZE CACHE (10) command. Finally, remove the bdrv_is_sg() test from iscsi_co_flush() since this is now redundant (we flush the underlying protocol at the end of bdrv_co_flush() which, with this patch, we never reach). Signed-off-by: Dimitris Aragiorgis <[email protected]> Reviewed-by: Stefan Hajnoczi <[email protected]> Message-id: [email protected] Signed-off-by: Stefan Hajnoczi <[email protected]>
1b6bc94d5d43ff3e39abadae19f2dbcb0954eb93
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/1b6bc94d5d43ff3e39abadae19f2dbcb0954eb93
2015-06-23 15:08:52+01:00
bios-tables-test: handle false-positive smbios signature matches It has been reported that sometimes the .rodata section of SeaBIOS, containing the constant string against which the SMBIOS signature ends up being compared, also falls within the guest f-segment. In that case, the test obviously fails, unless we continue searching for the *real* SMBIOS entry point. Rather than stopping at the first match for the SMBIOS signature ("_SM_") in the f-segment (0xF0000-0xFFFFF), continue scanning until either a valid entry point table is found, or the f-segment has been exhausted. Reported-by: Bruce Rogers <[email protected]> Signed-off-by: Gabriel Somlo <[email protected]> Tested-by: Bruce Rogers <[email protected]> Signed-off-by: Gerd Hoffmann <[email protected]>
5efed5a172881f601ac3c57c22ec5c5721f895be
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/5efed5a172881f601ac3c57c22ec5c5721f895be
2015-06-10 08:06:47+02:00
target-s390x: fix CC computation for EX instruction Commit 7a6c7067f optimized CC computation by only saving cc_op before calling helpers as they either don't touch the CC or generate a new static value. This however doesn't work for the EX instruction as the helper changes or not the CC value depending on the actual executed instruction (e.g. MVC vs CLC). This patches force a CC computation before calling the helper. This fixes random memory corruption occuring in guests. Signed-off-by: Aurelien Jarno <[email protected]> [agraf: remove set_cc_static in op_ex as suggested by rth] Signed-off-by: Alexander Graf <[email protected]>
ee0d0be16819896cc6c8018cbe171a632b61489c
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/ee0d0be16819896cc6c8018cbe171a632b61489c
2015-06-05 01:37:57+02:00
hw/ide/pci: Fix memory leak valgrind complains about: ==16447== 16 bytes in 2 blocks are definitely lost in loss record 1,304 of 3,310 ==16447== at 0x4C2845D: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==16447== by 0x2E4FD7: malloc_and_trace (vl.c:2546) ==16447== by 0x64C770E: g_malloc (in /usr/lib64/libglib-2.0.so.0.3600.3) ==16447== by 0x36FB47: qemu_extend_irqs (irq.c:55) ==16447== by 0x36FBD3: qemu_allocate_irqs (irq.c:64) ==16447== by 0x3B4B44: bmdma_init (pci.c:464) ==16447== by 0x3B547B: pci_piix_init_ports (piix.c:144) ==16447== by 0x3B55D2: pci_piix_ide_realize (piix.c:164) ==16447== by 0x3EAEC6: pci_qdev_realize (pci.c:1790) ==16447== by 0x36C685: device_set_realized (qdev.c:1058) ==16447== by 0x47179E: property_set_bool (object.c:1514) ==16447== by 0x470098: object_property_set (object.c:837) Signed-off-by: Shannon Zhao <[email protected]> Signed-off-by: Shannon Zhao <[email protected]> Reviewed-by: Marcel Apfelbaum <[email protected]> Signed-off-by: Michael Tokarev <[email protected]>
6e38a4ba7889083b65729db2144cdbcefbaa303a
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/6e38a4ba7889083b65729db2144cdbcefbaa303a
2015-06-03 14:21:24+03:00
target-tricore: fix msub32_q producing the wrong overflow bit The inversion of the overflow bit as a special case, which was needed for the madd32_q instructions, does not apply for msub32_q instructions. So remove it. Signed-off-by: Bastian Koppelmann <[email protected]> Message-Id: <[email protected]>
9bbd4843c052a0a467c7a3363046b0c95c0e5fc0
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/9bbd4843c052a0a467c7a3363046b0c95c0e5fc0
2015-05-30 16:49:17+02:00
target-s390x: fix MVC instruction when areas overlap The MVC instruction and the memmove C funtion do not have the same semantic when memory areas overlap: MVC: When the operands overlap, the result is obtained as if the operands were processed one byte at a time and each result byte were stored immediately after fetching the necessary operand byte. memmove: Copying takes place as though the bytes in src are first copied into a temporary array that does not overlap src or dest, and the bytes are then copied from the temporary array to dest. The behaviour is therefore the same when the destination is at a lower address than the source, but not in the other case. This is actually a trick for propagating a value to an area. While the current code detects that and call memset in that case, it only does for 1-byte value. This trick can and is used for propagating two or more bytes to an area. In the softmmu case, the call to mvc_fast_memmove is correct as the above tests verify that source and destination are each within a page, and both in a different page. The part doing the move 8 bytes by 8 bytes is wrong and we need to check that if the source and destination overlap, they do with a distance of minimum 8 bytes before copying 8 bytes at a time. In the user code, we should check check that the destination is at a lower address than source or than the end of the source is at a lower address than the destination before calling memmove. In the opposite case we fallback to the same code as the softmmu one. Note that l represents (length - 1). Signed-off-by: Aurelien Jarno <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Signed-off-by: Alexander Graf <[email protected]>
068593deea6cc61b06243a33c7fcfadb1650b654
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/068593deea6cc61b06243a33c7fcfadb1650b654
2015-06-05 01:37:59+02:00
vmdk: Widen before shifting 32 bit header field Coverity spotted this. The field is 32 bits, but if it's possible to overflow in 32 bit left shift. Signed-off-by: Fam Zheng <[email protected]> Reviewed-by: John Snow <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
7237aecd7e8fcc3ccf7fded77b6c127b4df5d3ac
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/7237aecd7e8fcc3ccf7fded77b6c127b4df5d3ac
2015-04-28 15:36:11+02:00
Revert "hmp: fix crash in 'info block -n -v'" This reverts commit 638b8366200130cc7cf7a026630bc6bfb63b0c4c. Signed-off-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
9419874f709469de16c1bced7731bfecb07fe1cf
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/9419874f709469de16c1bced7731bfecb07fe1cf
2015-04-28 15:36:09+02:00
vhost: fix log base address VHOST_SET_LOG_BASE got an incorrect address, causing migration errors and potentially even memory corruption. Reported-by: Wen Congyang <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-by: Amos Kong <[email protected]> Message-id: [email protected] Signed-off-by: Peter Maydell <[email protected]>
e05ca8200216149008fa1b1d1d847bf16691f6b4
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/e05ca8200216149008fa1b1d1d847bf16691f6b4
2015-04-20 09:27:01+01:00
balloon: improve error msg when adding second device A VM supports only one balloon device, but due to several changes in infrastructure the error message got messed up when trying to add a second device. Fix it. Before this fix Command-line: qemu-qmp: -device virtio-balloon-pci,id=balloon0: Another balloon device already registered qemu-qmp: -device virtio-balloon-pci,id=balloon0: Adding balloon handler failed qemu-qmp: -device virtio-balloon-pci,id=balloon0: Device 'virtio-balloon-pci' could not be initialized HMP: Another balloon device already registered Adding balloon handler failed Device 'virtio-balloon-pci' could not be initialized QMP: { "execute": "device_add", "arguments": { "driver": "virtio-balloon-pci", "id": "balloon0" } } { "error": { "class": "GenericError", "desc": "Adding balloon handler failed" } } After this fix Command-line: qemu-qmp: -device virtio-balloon-pci,id=balloon0: Only one balloon device is supported qemu-qmp: -device virtio-balloon-pci,id=balloon0: Device 'virtio-balloon-pci' could not be initialized HMP: (qemu) device_add virtio-balloon-pci,id=balloon0 Only one balloon device is supported Device 'virtio-balloon-pci' could not be initialized (qemu) QMP: { "execute": "device_add", "arguments": { "driver": "virtio-balloon-pci", "id": "balloon0" } } { "error": { "class": "GenericError", "desc": "Only one balloon device is supported" } } Signed-off-by: Luiz Capitulino <[email protected]> Reviewed-by: Eric Blake <[email protected]>
46abb8124006887d071921c5e657eeec3c50a9e2
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/46abb8124006887d071921c5e657eeec3c50a9e2
2015-04-24 14:18:05-04:00
virtfs-proxy: Fix possible overflow It's detected by coverity. The socket name specified should fit in the sockadd_un.sun_path. If not abort. Signed-off-by: Shannon Zhao <[email protected]> Signed-off-by: Shannon Zhao <[email protected]> Signed-off-by: Aneesh Kumar K.V <[email protected]>
25ee9a7fa3f4e09fde48bb184447ff5651ed5fd8
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/25ee9a7fa3f4e09fde48bb184447ff5651ed5fd8
2015-03-16 13:29:12+05:30
vnc: avoid possible file handler leak vs->lsock may equal to 0, modify the check condition, avoid possible vs->lsock leak. Signed-off-by: Gonglei <[email protected]> Signed-off-by: Gerd Hoffmann <[email protected]>
b3c33f91732ea32e7a8391c5e61c3fc02308d822
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/b3c33f91732ea32e7a8391c5e61c3fc02308d822
2015-03-12 08:22:12+01:00
Fix crash when connecting to VNC through websocket Connecting to VNC through websocket crashes in vnc_flush() when trying to acquire a mutex that hasn't been initialized (vnc_init_state(vs) hasn't been called at this point). Signed-off-by: Jorge Acereda Macia <[email protected]> Signed-off-by: Gerd Hoffmann <[email protected]>
b57489cfe48f9fedc10205c0494f144085733f30
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/b57489cfe48f9fedc10205c0494f144085733f30
2015-03-10 11:33:42+01:00
qcow2: Add refcount_bits to format-specific info Add the bit width of every refcount entry to the format-specific information. In contrast to lazy_refcounts and the corrupt flag, this should be always emitted, even for compat=0.10 although it does not support any refcount width other than 16 bits. This is because if a boolean is optional, one normally assumes it to be false when omitted; but if an integer is not specified, it is rather difficult to guess its value. This new field breaks some test outputs, fix them. Signed-off-by: Max Reitz <[email protected]> Reviewed-by: Eric Blake <[email protected]> Reviewed-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
0709c5a1530b046183b6e96d9631affcff76c1fc
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/0709c5a1530b046183b6e96d9631affcff76c1fc
2015-03-10 14:02:20+01:00
block: fix off-by-one error in qcow and qcow2 This fixes an off-by-one error introduced in 9a29e18. Both qcow and qcow2 need to make sure to leave room for string terminator '\0' for the backing file, so the max length of the non-terminated string is either 1023 or PATH_MAX - 1. Reported-by: Kevin Wolf <[email protected]> Signed-off-by: Jeff Cody <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
e729fa6afed3aa917287b63034244f548b79ec60
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/e729fa6afed3aa917287b63034244f548b79ec60
2015-02-06 17:24:21+01:00
rcu: handle forks safely After forking, only the calling thread is duplicated in the child process. The call_rcu thread has to be recreated in the child. Exploit the fact that only one thread exists (same as when constructors run), and just redo the entire initialization to ensure the threads are in the proper state. The only additional things to do are emptying the list of threads registered with RCU, and unlocking the lock that was taken in the prepare callback (implementations are allowed to fail pthread_mutex_init() if the mutex is still locked). Signed-off-by: Paolo Bonzini <[email protected]>
21b7cf9e07e5991c57b461181cfb5bbb6fe7a9d6
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/21b7cf9e07e5991c57b461181cfb5bbb6fe7a9d6
2015-03-10 10:49:25+01:00
target-tricore: split up suov32 into suov32_pos and suov32_neg suov checks unsigned for an overflow and an underflow, after some arithmetic operations and saturates the result to either max_uint32 or 0. So far we handled this by expanding to the next bigger data type and compare whether the result is > max_uint32 or < 0. However this approach can fail for an 32 bit multiplication, if both operands of the multiplication are 0x80000000. This sets the sign bit of the 64 bit integer and would result in a false saturation to 0. Since unsigned operations, e.g add, sub, mul always result in either a positive or negative overflow, we split the functions for suov32 up into two functions (suov32_pos, suov32_neg) for each case. Signed-off-by: Bastian Koppelmann <[email protected]>
85d604af5f96c32734af9974ec6ddb625b6716a2
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/85d604af5f96c32734af9974ec6ddb625b6716a2
2015-01-26 19:56:46+00:00
pc: memory: Validate alignment of maxram_size to page size If the maxram_size is not aligned and dimm devices were added on the command line qemu would terminate with a rather unhelpful message: ERROR:hw/mem/pc-dimm.c:150:pc_dimm_get_free_addr: assertion failed: (QEMU_ALIGN_UP(address_space_size, align) == address_space_size) In case no dimm device was originally added on the commandline qemu exits on the assertion failure. Signed-off-by: Peter Krempa <[email protected]> Reviewed-by: Eric Blake <[email protected]> Acked-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Peter Krempa <[email protected]> Reviewed-by: Eric Blake <[email protected]>
f2c385220598523c8b9fefbfff1a6754cfd8232a
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/f2c385220598523c8b9fefbfff1a6754cfd8232a
2015-02-26 12:42:19+01:00
ide: Implement VPD response for ATAPI SCSI devices have multiple kinds of queries they need to respond to, as defined in the "cmd inquiry" section in MMC-6 and SPC-3. Relevent sections: MMC-6 revision 2g: Non-VPD response data and pointer to SPC-3; Section 6.8 "Inquiry Command" SPC-3 revision 23: Inquiry command and error handling: Section 6.4 "INQUIRY command" VPD data pages format: Section 7.6 "Vital product data parameters" We implement these Vital Product Data queries for SCSI, but not for ATAPI through IDE. The result is that if you are looking for the WWN identifier via tools such as sg3_utils, you will be unable to query our CD/DVD rom device to obtain it. This patch adds the minimum number of mandatory responses as defined by SPC-3, which include the "supported pages" response (page 0x00) and the "Device Identification" response (page 0x83). It also correctly responds when it receives a request for an illegal page to improve error output from related tools. The Device ID page contains an arbitrary list of identification strings of various formats; the ID strings included in this patch were chosen to mimic those provided by the libata driver when emulating this SCSI query (model, serial, and wwn when present.) Example: # libata emulated response [root@localhost ~]# sg_inq --id /dev/sda VPD INQUIRY: Device Identification page Designation descriptor number 1, descriptor length: 24 designator_type: vendor specific [0x0], code_set: ASCII associated with the addressed logical unit vendor specific: QM00001 Designation descriptor number 2, descriptor length: 72 designator_type: T10 vendor identification, code_set: ASCII associated with the addressed logical unit vendor id: ATA vendor specific: QEMU HARDDISK QM00001 # QEMU generated ATAPI response, with WWN [root@localhost ~]# sg_inq --id /dev/sr0 VPD INQUIRY: Device Identification page Designation descriptor number 1, descriptor length: 24 designator_type: vendor specific [0x0], code_set: ASCII associated with the addressed logical unit vendor specific: QM00005 Designation descriptor number 2, descriptor length: 72 designator_type: T10 vendor identification, code_set: ASCII associated with the addressed logical unit vendor id: ATA vendor specific: QEMU DVD-ROM QM00005 Designation descriptor number 3, descriptor length: 12 designator_type: NAA, code_set: Binary associated with the addressed logical unit NAA 5, IEEE Company_id: 0xc50 Vendor Specific Identifier: 0x15ea71bb [0x5000c50015ea71bb] See also: hw/scsi/scsi-disk.c, scsi_disk_emulate_inquiry() Signed-off-by: John Snow <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]>
9a502563eef7d7c2c9120b237059426e229eefe9
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/9a502563eef7d7c2c9120b237059426e229eefe9
2015-01-13 13:43:29+00:00
hw/arm/realview.c: Fix memory leak in realview_init() Variable 'ram_lo' is allocated unconditionally, but used only in some cases. When it is unused pointer will be lost at function exit, resulting in a memory leak. Allocate memory for 'ram_lo' only if it is needed. Valgrind output: ==16879== 240 bytes in 1 blocks are definitely lost in loss record 6,033 of 7,018 ==16879== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==16879== by 0x33D2CE: malloc_and_trace (vl.c:2804) ==16879== by 0x509E610: g_malloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0) ==16879== by 0x288836: realview_init (realview.c:55) ==16879== by 0x28988C: realview_pb_a8_init (realview.c:375) ==16879== by 0x341426: main (vl.c:4413) Signed-off-by: Nikita Belov <[email protected]> Reviewed-by: Markus Armbruster <[email protected]> Signed-off-by: Peter Maydell <[email protected]>
b1ab03af890b2b6c5bafc9344b7fe05b392180a5
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/b1ab03af890b2b6c5bafc9344b7fe05b392180a5
2014-12-11 12:07:52+00:00
vt82c686: fix coverity warning about out-of-bounds write Refactor superio_ioport_writeb to fix the out of bounds write warning. In addition, fix two typos: s/chage/change/ Signed-off-by: zhanghailiang <[email protected]> Signed-off-by: Michael Tokarev <[email protected]>
b196d969efa3987148994f0f8da79a10ebda7641
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/b196d969efa3987148994f0f8da79a10ebda7641
2014-12-10 11:59:17+03:00
block migration: fix return value Modify block_save_iterate() to return positive/zero/negative (success/not done/failure) return status. The computation of the blocks transferred (an int64_t) exceeds the size of an int return value. Signed-off-by: Gary R Hook <[email protected]> Reviewed-by: ChenLiang <[email protected]> Reviewed-by: Stefan Hajnoczi <[email protected]> Message-id: [email protected] Signed-off-by: Stefan Hajnoczi <[email protected]>
ebd9fbd7e102c533143c2c8372312b75c2b2678a
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/ebd9fbd7e102c533143c2c8372312b75c2b2678a
2014-12-12 10:29:44+00:00
virtio-9p-proxy: Fix sockfd leak If connect() in connect_namedsocket() return false, the sockfd will leak. Plug it. Signed-off-by: Michael Tokarev <[email protected]> Signed-off-by: Gonglei <[email protected]>
660edd4eda903e32811a4929d1434cceda3284aa
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/660edd4eda903e32811a4929d1434cceda3284aa
2014-11-02 10:04:34+03:00
ivshmem: Fix potential OOB r/w access Fix OOB access via malformed incoming_posn parameters and check that requested memory is actually alloc'ed. Signed-off-by: Sebastian Krahmer <[email protected]> [AF: Rebased, cleanups, avoid fd leak] Cc: [email protected] Signed-off-by: Andreas Färber <[email protected]> Reviewed-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
34bc07c5282a631c2663ae1ded0a186f46f64612
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/34bc07c5282a631c2663ae1ded0a186f46f64612
2014-10-31 17:02:07+01:00
vmware-vga: add vmsvga_verify_rect Add verification function for rectangles, returning true if verification passes and false otherwise. Cc: [email protected] Signed-off-by: Gerd Hoffmann <[email protected]> Reviewed-by: Don Koch <[email protected]>
07258900fd45b646f5b69048d64c4490b3243e1b
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/07258900fd45b646f5b69048d64c4490b3243e1b
2014-10-28 10:40:04+01:00
qcow2: Split fail code in L1 and L2 checks Instead of printing out an error message, incrementing check_errors and returning a fixed -errno, just do cleanups and return -ret, with ret set by the code which threw the exception (jumped to the fail label). Also, increment check_errors on error in check_refcounts_l2(). Signed-off-by: Max Reitz <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
ad27390c85c50df402c7ec0d3864fc43e6559fb3
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/ad27390c85c50df402c7ec0d3864fc43e6559fb3
2014-10-23 15:34:01+02:00
libqos: improve event_index test with timeout The virtio event_index feature lets the device driver tell the device how many requests to process before raising the next interrupt. virtio-blk-test.c tries to verify that the device does not raise an interrupt unnecessarily. Unfortunately the test has a race condition. It spins checking for an interrupt up to 100 times and then assumes the request has finished. On a slow host the I/O request could still be in flight and the test would fail. This patch waits for the request to complete, or until a 30-second timeout is reached. If an interrupt is raised while waiting the test fails since the device was not supposed to raise interrupts. Signed-off-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Peter Maydell <[email protected]>
e8c81b4d8a5a2fd125e559cb02b8a87598419041
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/e8c81b4d8a5a2fd125e559cb02b8a87598419041
2014-09-29 17:31:08+01:00
qcow2: Fix leak of QemuOpts in qcow2_open() Currently, the QemuOpts object opts is leaked if anything fails from its creation up to and including the image repair block. Fix this by freeing that object in the fail path. Signed-off-by: Max Reitz <[email protected]> Reviewed-by: Eric Blake <[email protected]> Reviewed-by: Benoît Canet <[email protected]> Message-id: [email protected] Signed-off-by: Stefan Hajnoczi <[email protected]>
7b17ce60cc58b3c20b3e708a2d69f6bbe2b4edfa
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/7b17ce60cc58b3c20b3e708a2d69f6bbe2b4edfa
2014-09-22 11:39:32+01:00
MAINTAINERS: add the image fuzzer to the block layer More work for the block device maintainers! Signed-off-by: Paolo Bonzini <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
8113fb529282897892f8010ed679565b0f1488d9
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/8113fb529282897892f8010ed679565b0f1488d9
2014-10-23 15:34:01+02:00
query-memdev: fix potential memory leaks Signed-off-by: Chen Fan <[email protected]> Reviewed-by: Peter Crosthwaite <[email protected]> Reviewed-by: Hu Tao <[email protected]> Signed-off-by: Michael Tokarev <[email protected]>
b0e90181e4d7244a9466447703acdb2cdd7abdaa
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/b0e90181e4d7244a9466447703acdb2cdd7abdaa
2014-09-02 22:38:16+04:00
virtio-scsi: Report error if num_queues is 0 or too large No cmd vq surprises guest (Linux panics in virtscsi_probe), too many queues abort qemu (in the following virtio_add_queue). Signed-off-by: Fam Zheng <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
c9f6552803d852d593dec9ef5bb39b7a61091963
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/c9f6552803d852d593dec9ef5bb39b7a61091963
2014-08-26 13:20:44+02:00
block: Use g_new() & friends to avoid multiplying sizes g_new(T, n) is safer than g_malloc(sizeof(*v) * n) for two reasons. One, it catches multiplication overflowing size_t. Two, it returns T * rather than void *, which lets the compiler catch more type errors. Perhaps a conversion to g_malloc_n() would be neater in places, but that's merely four years old, and we can't use such newfangled stuff. This commit only touches allocations with size arguments of the form sizeof(T), plus two that use 4 instead of sizeof(uint32_t). We can make the others safe by converting to g_malloc_n() when it becomes available to us in a couple of years. Signed-off-by: Markus Armbruster <[email protected]> Reviewed-by: Max Reitz <[email protected]> Reviewed-by: Jeff Cody <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
02c4f26b1517d9e403ec10d6f6ca3c0276d19e43
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/02c4f26b1517d9e403ec10d6f6ca3c0276d19e43
2014-08-20 11:51:28+02:00
vmdk: Handle failure for potentially large allocations Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the vmdk block driver. Signed-off-by: Kevin Wolf <[email protected]> Reviewed-by: Stefan Hajnoczi <[email protected]> Reviewed-by: Benoit Canet <[email protected]>
d6e5993197990ff55c660714526681fa7028299e
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/d6e5993197990ff55c660714526681fa7028299e
2014-08-15 15:07:16+02:00
rbd: Handle failure for potentially large allocations Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the rbd block driver. Signed-off-by: Kevin Wolf <[email protected]> Reviewed-by: Stefan Hajnoczi <[email protected]>
0f7a02379bb672666e21dfcd6b549c3506f8d784
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/0f7a02379bb672666e21dfcd6b549c3506f8d784
2014-08-15 15:07:16+02:00
iscsi: Handle failure for potentially large allocations Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the iscsi block driver. Signed-off-by: Kevin Wolf <[email protected]> Acked-by: Paolo Bonzini <[email protected]> Reviewed-by: Benoit Canet <[email protected]> Reviewed-by: Eric Blake <[email protected]>
4d5a3f888c7dbdd1bf892bab2a3fb5c1455ccc78
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/4d5a3f888c7dbdd1bf892bab2a3fb5c1455ccc78
2014-08-15 15:07:15+02:00
dmg: Handle failure for potentially large allocations Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the dmg block driver. Signed-off-by: Kevin Wolf <[email protected]> Reviewed-by: Stefan Hajnoczi <[email protected]> Reviewed-by: Benoit Canet <[email protected]>
b546a944749f963c5b4e27765354df10ac531853
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/b546a944749f963c5b4e27765354df10ac531853
2014-08-15 15:07:15+02:00
qcow2: Fix error path for unknown incompatible features qcow2's report_unsupported_feature() had two bugs: A 32 bit truncation would prevent feature table entries for bits 32-63 from being used, and it could assign errp multiple times if there was more than one unknown feature, resulting in an error_set() assertion failure. Fix the truncation, make sure to set the error exactly once and add a qemu-iotests case for it. This fixes https://bugs.launchpad.net/qemu/+bug/1342704/ Reported-by: Maria Kustova <[email protected]> Signed-off-by: Kevin Wolf <[email protected]> Reviewed-by: Eric Blake <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]>
12ac6d3db721a288c8953c5c253230aa0949a0e1
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/12ac6d3db721a288c8953c5c253230aa0949a0e1
2014-07-18 13:12:15+01:00
block: Extract the block accounting code The plan is to add new accounting metrics (latency, invalid requests, failed requests, queue depth) and block.c is overpopulated so it will be better to work in a separate module. Moreover the long term plan is to have statistics in each of the BDS of the graph for metrology purpose; this means that the device model statistics must move from the topmost BDS to the device model. So we need to decouple the statistic code from BlockDriverState. This is another argument for the extraction of the code in a separate module. CC: Kevin Wolf <[email protected]> CC: Stefan Hajnoczi <[email protected]> CC: Max Reitz <[email protected]> CC: Eric Blake <[email protected]> CC: Benoit Canet <[email protected]> CC: Fam Zheng <[email protected]> CC: Peter Crosthwaite <[email protected]> CC: Paolo Bonzini <[email protected]> Signed-off-by: Benoît Canet <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
5e5a94b60518002e8ecc7afa78a9e7565b23e38f
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/5e5a94b60518002e8ecc7afa78a9e7565b23e38f
2014-09-10 10:41:29+02:00
ahci.c: mask unused flags when reading size PRDT DBC The data byte count(DBC) read from the description information is defined for bits 21:00. Bits 30:22 are reserved and bit 31 is the Interrupt on Completion (I) flag. Completion interrupts are triggered after every transaction instead of on I-flag in QEMU. tbl_entry_size is a signed integer and improperly reading the DBC leads to a negative offset that causes sglist allocation to fail. Signed-off-by: Reza Jelveh <[email protected]> Reviewed-by: Alexander Graf <[email protected]> Reviewed-by: Kevin Wolf <[email protected]> Reviewed-by: John Snow <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]>
d02f8adc6d2a178bcbf77d0413f9a96fdbed53f0
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/d02f8adc6d2a178bcbf77d0413f9a96fdbed53f0
2014-07-07 09:15:29+02:00
qemu-char: initialize chr_write_lock Otherwise, Windows fails with a deadlock. Reported-by: Stefan Weil <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]> Message-id: [email protected] Tested-by: Stefan Weil <[email protected]> Signed-off-by: Peter Maydell <[email protected]>
f3db17b9514b8d724f8d6111a9f9608ff8bad631
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/f3db17b9514b8d724f8d6111a9f9608ff8bad631
2014-06-26 13:13:54+01:00
qemu-char: avoid leaking unused fds in tcp_get_msgfds() Commit c76bf6bb8fbbb233a7d3641e09229d23747d5ee3 ("Add chardev API qemu_chr_fe_get_msgfds") extended the get_msgfds API from one to multiple file descriptors. It forgot to close unused file descriptors before freeing the file descriptor array. This patch prevents a file descriptor leak if the tcp_get_msgfds() callers requests fewer file descriptors than are available. Cc: Nikolay Nikolaev <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]> Reviewed-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
d2fc39b4208709db95b6825c0e1b00ce6fbf0ecc
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/d2fc39b4208709db95b6825c0e1b00ce6fbf0ecc
2014-06-23 17:38:00+03:00
vhost: fix resource leak in error handling vhost_verify_ring_mappings leaks mappings on error. Fix this up. Cc: [email protected] Signed-off-by: Michael S. Tsirkin <[email protected]>
8617343faae6ba7e916137c6c9e3ef22c00565d8
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/8617343faae6ba7e916137c6c9e3ef22c00565d8
2014-06-23 17:37:59+03:00
virtio-scsi: define dummy handle_output for vhost-scsi vqs vhost userspace needn't to handle vq's notification from guest, so define dummy handle_output callback for all vqs of vhost-scsi. In some corner cases(such as when handling vq's reset from VM), virtio-pci still trys to handle pending virtio-scsi events, then object check failure inside virtio_scsi_handle_event() for vhost-scsi can be triggered. The issue can be reproduced by 'rmmod virtio-scsi', 'system sleep' or reboot inside VM. Cc: [email protected] Cc: Anthony Liguori <[email protected]> Cc: "Michael S. Tsirkin" <[email protected]> Cc: Paolo Bonzini <[email protected]> Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
91d670fbf9945ca4ecbd123affb36889e7fe8a5d
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/91d670fbf9945ca4ecbd123affb36889e7fe8a5d
2014-06-19 10:15:48+02:00
rbd: Fix leaks in rbd_start_aio() error path Signed-off-by: Kevin Wolf <[email protected]> Reviewed-by: Benoit Canet <[email protected]> Reviewed-by: Josh Durgin <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]>
405a27640b33c31ccef4001b3f3936b8c9d2218f
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/405a27640b33c31ccef4001b3f3936b8c9d2218f
2014-06-06 11:05:04+02:00
block/qapi: Plug memory leak in dump_qobject() case QTYPE_QERROR Introduced in commit a8d8ecb. Spotted by Coverity. Signed-off-by: Markus Armbruster <[email protected]> Reviewed-by: Benoit Canet <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
f25391c2a6ef1674384204265429520ea50e82bc
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/f25391c2a6ef1674384204265429520ea50e82bc
2014-05-30 14:26:54+02:00
qapi: Replace uncommon use of the error API by the common one We commonly use the error API like this: err = NULL; foo(..., &err); if (err) { goto out; } bar(..., &err); Every error source is checked separately. The second function is only called when the first one succeeds. Both functions are free to pass their argument to error_set(). Because error_set() asserts no error has been set, this effectively means they must not be called with an error set. The qapi-generated code uses the error API differently: // *errp was initialized to NULL somewhere up the call chain frob(..., errp); gnat(..., errp); Errors accumulate in *errp: first error wins, subsequent errors get dropped. To make this work, the second function does nothing when called with an error set. Requires non-null errp, or else the second function can't see the first one fail. This usage has also bled into visitor tests, and two device model object property getters rtc_get_date() and balloon_stats_get_all(). With the "accumulate" technique, you need fewer error checks in callers, and buy that with an error check in every callee. Can be nice. However, mixing the two techniques is confusing. You can't use the "accumulate" technique with functions designed for the "check separately" technique. You can use the "check separately" technique with functions designed for the "accumulate" technique, but then error_set() can't catch you setting an error more than once. Standardize on the "check separately" technique for now, because it's overwhelmingly prevalent. Signed-off-by: Markus Armbruster <[email protected]> Reviewed-by: Eric Blake <[email protected]> Signed-off-by: Luiz Capitulino <[email protected]>
297a3646c2947ee64a6d42ca264039732c6218e0
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/297a3646c2947ee64a6d42ca264039732c6218e0
2014-05-15 14:00:46-04:00
ipxe: update to current git Now that ipxe has separate settings for load / boot banner timeouts re-enable the boot banner while keeping the load banner turned off, so we don't add a delay to non-pxe boots. git shortlog: Adrian Jamróz (2): [rhine] Rewrite VIA Rhine driver [velocity] Rewrite VIA Velocity driver Alex Williamson (4): [romprefix] Allow ROM banner timeout to be configured independently [autoboot] Enable infrastructure to specify an autoboot device location [prefix] Allow prefix to specify a PCI autoboot device location [romprefix] Store boot bus:dev.fn address as autoboot device location Alexander Chernyakhovsky (1): [ocsp] Handle OCSP responses that don't provide certificates Bo Yang (1): [build] Avoid strict-aliasing warning for gcc 4.3 Brandon Penglase (1): [build] Add vmware build target Christian Hesse (2): [build] Update build system for Syslinux 6.x [build] Fix LABEL name for .liso images Daniel P. Berrange (1): [zbin] Fix size used for memset in alloc_output_file Frediano Ziglio (1): [romprefix] Fix incorrect pointer offset in undiloader.S Kevin Tran (1): [tg3] Fix various tg3 issues Marin Hannache (8): [linux] Add missing #include <stddef.h> [legal] Add FILE_LICENCE for valgrind headers [legal] Add FILE_LICENCE for core/errno.c [legal] Add FILE_LICENCE for ath9k driver headers [legal] Add missing FILE_LICENCE declarations [cmdline] Add "poweroff" command [nfs] Add support for NFS protocol [nfs] Fix an issue with the selection of a local port Michael Brown (363): [netdevice] Separate VLAN support from presence of VLAN-supporting drivers [undi] Work around specific devices with known broken interrupt behaviour [menu] Prevent character code zero from acting as a shortcut key [menu] Prevent separators with shortcut keys from being selected [tftp] Allow TFTP block size to be controlled via the PXE TFTP API [pcbios] Add extra debugging messages when unhiding iPXE from memory [nbiprefix] Set up real-mode stack before jumping to .text16 [prefix] Use %cs as implicit parameter to uninstall() [pcbios] Inhibit all calls to INT 15,e820 and INT 15,e801 during POST [romprefix] Display only one "Ctrl-B" prompt per PCI device during POST [efi] Update to latest EDK2 headers [autoboot] Split main control flow out of main() into a new function ipxe() [efi] Add last_opened_snpdev() [efi] Expose downloaded images via EFI_SIMPLE_FILE_SYSTEM_PROTOCOL [efi] Add our own EFI_LOAD_FILE_PROTOCOL implementation [efi] Fix building with newer binutils [lkrnprefix] Allow relocation when no initrd is present [efi] Fix minor typos in efi_image.c [efi] Add EFI-specific debugging macros [int13] Split out ISO9660 and El Torito definitions to separate header files [smbios] Provide SMBIOS version number via smbios_version() [smbios] Mangle UUIDs for SMBIOS version 2.6 and newer [dhcp] Use PXE byte ordering for UUID in DHCP option 97 [uuid] Abstract UUID mangling code out to a separate uuid_mangle() function [efi] Provide efi_guid_ntoa() for printing EFI GUIDs [efi] Add "reboot" command for EFI [cmdline] Add ability to perform a warm reboot [efi] Enable "cpuid" command by default for EFI [cs89x0] Remove conflicting macro definitions [igbvf] Remove conflicting macro definitions [prism2] Use standard type names [efi] Fetch device path for loaded image during initialisation [settings] Expose build architecture and platform via settings [bios] Fix screen clearing on buggy BIOSes [intel] Remove hardcoded offsets for descriptor ring registers [intel] Expose functionality to be shared with intelx driver [intel] Add intelx driver for Intel 10 Gigabit Ethernet NICs [efi] Remove obsolete EFI I/O implementation using EFI_CPU_IO_PROTOCOL [libc] Use __einfo() tuple as first argument to EUNIQ() [libc] Redefine low 8 bits of error code as "platform error code" [efi] Perform meaningful error code conversions [efi] Add sample platform-generated error disambiguations [netdevice] Use link-layer address as part of RNG seed [build] Allow sparse to find compiler.h [build] Define __WINT_TYPE__ if necessary [build] Allow sparse to be invoked via "make C=1" [build] Avoid sparse undeclared symbol warning for PROVIDE_SYMBOL() [process] Mark process descriptor as static in PERMANENT_PROCESS [realtek] Print bad MAC address in debug message when inferring no EEPROM [build] Use -Wno-decl when running sparse [build] Fix uses of literal 0 as a NULL pointer [build] Fix dubious uses of bitwise operators [build] Default to short wchar_t in stddef.h [realtek] Use ID word to detect EEPROM presence [errdb] Strip platform error code for non-platform-generated errors [pxe] Convert external PXE API errors into iPXE platform-generated errors [realtek] Allow reaction time between writing RTL_CAPR and reading RTL_CR [romprefix] Report failure cause when unable to open payload [realtek] Ensure EEPROM writes reach chip before starting udelay() [dhcp] Remove obsolete bootp.h header [netdevice] Add netdev_tx_defer() to allow drivers to defer transmissions [realtek] Defer packets when no transmit descriptors are available [settings] Eliminate settings "tag magic" [smbios] Allow access to unreferenced SMBIOS strings [smbios] Allow access to multiple instances of SMBIOS structures [crypto] Report meaningful error when certificate chain validation fails [build] Use $(eval) if available [build] Provide "allXXXs" targets for all media on all platforms [build] Add efidrv.cab target for UEFI Secure Boot signing [netdevice] Add "chip" setting [netdevice] Reset MAC address when asked to clear the "mac" setting [realtek] Fix reopening of legacy-mode 8139 NIC [crypto] Accept OCSP responses containing multiple certificates [bzimage] Align initrd images to page boundary [bzimage] Fix spurious uninitialised-variable warning on some gcc versions [build] Work around bug in gcc >= 4.8 [autoboot] Use next-server from filename's settings block [tcp] Do not send RST for unrecognised connections [tcp] Fix comment to match code behaviour [test] Add self-tests for base16 [base16] Generalise base16_decode() to hex_decode() [settings] Use hex_decode() to parse hex settings [settings] Add "hexraw" setting type [netdevice] Add "bustype" and "busloc" settings [settings] Add "busdevfn" setting type [linux] Add support for accessing PCI configuration space via /proc/bus/pci [settings] Add config/settings.h [settings] Expose PCI configuration space via settings mechanism [settings] Make "netX" settings block function as a symbolic link [cmdline] Accept "netX" in iPXE commands [lotest] Include sequence number within loopback test packets [intel] Incorporate ring producer and consumer counters in diagnostics [base16] Ensure base16_encode() always terminates its result string [realtek] Report RX error detail in debug messages [script] Allow for backslash continuation of script lines [settings] Add support for navigation keys in "config" user interface [realtek] Allow extra space in RX buffers [ifmgmt] Avoid relying on global variable within ifcommon_exec() [script] Avoid trying to read final character of a zero-length string [legal] Add missing FILE_LICENCE declarations [build] Fix %.licence build target [settings] Clarify usage of the term "named setting" [settings] Avoid potentially large stack allocations [settings] Remove temporary name buffer parameter from parse_setting_name() [settings] Remove default_type parameter from parse_setting_name() [settings] Expose parse_setting_name() [settings] Change "not-found" semantics of fetch_setting_copy() [settings] Add fetchf_setting_copy() [settings] Eliminate call to fetchf_named_setting() in expand_settings() [settings] Eliminate call to store_named_setting() in nslookup.c [settings] Remove now-unused store_named_setting() [parseopt] Allow parsed option to be modified [parseopt] Move parse_settings() to parseopt.c [parseopt] Add parse_setting() [settings] Eliminate call to storef_named_setting() in choose_exec() [settings] Eliminate calls to {fetch,store}f_named_setting() in NVO commands [settings] Remove now-unused fetchf_named_setting() and storef_named_setting() [script] Allow initial whitespace on lines containing labels [script] Allow commands following a script label [settings] Introduce the generalised concept of a numeric setting [cmdline] Add "inc" command [pci] Add pci_find_next() to iterate over existent PCI devices [cmdline] Add "pciscan" command to allow iteration over PCI devices [udp] Move high-frequency debug messages to DBGLVL_EXTRA [ipv6] Rename sin_{family,port} to sin6_{family,port} in struct sockaddr_in6 [tcpip] Allow binding to unspecified privileged ports (below 1024) [settings] Expose CPUID instruction via settings mechanism [test] Add self-tests for snprintf() [settings] Allow numeric_setting_value() to handle long setting values [settings] Expose memory map via settings mechanism [params] Add support for the general concept of a form parameter list [cmdline] Add "params" and "param" commands to manage form parameter lists [uri] Allow URIs to incorporate a parameter list [http] Add support for HTTP POST [settings] Make built-in settings a linker table [linux] Give tap devices a name and bus type [ipv4] Generalise fragment reassembly mechanism [netdevice] Increase maximum network-layer address length [netdevice] Add concept of a network device index [netdevice] Add method for generating EUI-64 address from link-layer address [ethernet] Add support for generating multicast hash for IPv6 addresses [linux] Apply MAC address prior to registering network device [tcpip] Pass through network device to transport layer protocols [neighbour] Generalise concept of neighbour discovery [ipv4] Abstract out protocol-specific portions of "route" command [ipv6] Replace IPv6 stack [ipv6] Fix uninitialised-variable warning [tcp] Reduce path MTU to 1280 bytes [ipv6] Add inet6_aton() [build] Work around bug in gcc >= 4.8 [neighbour] Add nstat() function to print out neighbour table [cmdline] Add "nstat" command [tcp] Add AF_INET6 socket opener [udp] Add AF_INET6 socket opener [netdevice] Add find_netdev_by_index() [socket] Add concept of a generalised socket address converter [ipv4] Add IPv4 socket address converter [ipv6] Add IPv6 socket address converter [resolv] Use sock_aton() to allow parsing of arbitrary numeric addresses [icmp] Add support for sending ICMP echo requests [ping] Add concept of a ping socket [ping] Add generic ping mechanism [ping] Add top-level ping() function to ping a host [cmdline] Add "ping" command [ipv6] Handle IPv6 option length correctly [ipv6] Extract link layer addresses from router advertisements [ipv6] Support stateless address autoconfiguration (SLAAC) [ipv6] Treat sin6_scope_id consistently [ipv6] Automatically choose source for link-local and multicast destinations [pxe] Always retrieve cached DHCPACK and apply to relevant network device [ipv6] Add ndp_tx_router_solicitation() to send router solicitations [parseopt] Add parse_timeout() [netdevice] Make all net_driver methods optional [interface] Default to calling intf_restart() in response to intf_close() [job] Allow job_progress() to return an ongoing job status code, if known [monojob] Add timeout parameter to monojob_wait() [monojob] Report ongoing job status as overall return status on timeout [cmdline] Rewrite "sync" command to use monojob_wait() [autoboot] Fix shell banner timeout [ifmgmt] Rewrite iflinkwait() to use monojob_wait() [cmdline] Allow "if<xxx>" commands to take options [netdevice] Add generic concept of a network device configurator [dhcp] Add DHCP network device configurator [parseopt] Add parse_netdev_configurator() [ifmgmt] Add ifconf() to carry out network device configuration [autoboot] Use ifconf() to configure network device [cmdline] Add "ifconf" command [cmdline] Make "dhcp" command a synonym for "ifconf" [dhcp] Remove obsolete dhcp() function [ipv6] Add IPv6 network device configurator [cmdline] Generate command option help text automatically [pxe] Ensure cached DHCPACK is retrieved prior to network device creation [base16] Fix comparison of signed and unsigned integers [settings] Move user-class setting from dhcp.c to settings.c [ipv6] Use given source address only if it is not the unspecified address [ipv6] Add "ipv6" setting type [dhcpv6] Add basic support for stateful and stateless DHCPv6 [ipv6] Separate the concepts of prefix and address creation [dhcpv6] Allow stateful DHCPv6 to apply obtained IPv6 addresses [test] Include failing code within failed test result output [main] Defer "initialising devices" message until initialising devices [console] Pass escape sequence context to ANSI escape sequence handlers [pixbuf] Add generic concept of a pixel buffer [image] Allow for non-executable image formats [image] Add image_pixbuf() to create pixel buffer from image [pnm] Add support for PNM images [mucurses] Use "<ESC>[2J" ANSI escape sequence to clear screen [console] Allow console input and output to be disabled independently [console] Add concept of generic console configuration [cmdline] Add "console" command to configure console [fbcon] Add generic concept of a frame buffer console [vesafb] Add VESA frame buffer console [vesafb] Include raw status value within VBE error messages [vesafb] Skip modes for which we cannot get mode information [vesafb] Return meaningful error when no suitable mode is found [vesafb] Select an optimal mode, rather than the first acceptable mode [build] Fix building on OpenBSD 5.4 [console] Allow '?' as an intermediate byte in ANSI escape sequences [mucurses] Implement curs_set() to control cursor visibility [settings] Hide cursor when not actively editing a setting [menu] Hide cursor when displaying menu [fbcon] Add support for displaying a cursor [settings] Explicitly separate the concept of a completed fetched setting [settings] Allow for IPv6 setting types in non-IPv6 builds [settings] Add fetch_ipv6_setting() [dns] Add support for resolving IPv6 addresses via AAAA records [socket] Ensure socket address structure sizes are fixed [syslog] Add support for IPv6 syslog server [ipv6] Add support for resolving IPv6 addresses via the "nslookup" command [linux] Provide access to SMBIOS via /dev/mem [dhcpv6] Use DUID-UUID form of client DUID [settings] Force settings into alphabetical order within sections [settings] Allow for multiple definitions of each predefined setting [settings] Merge SETTING_IPv4 and SETTING_IPv6 [dhcpv6] Add DHCPv6 "filename" setting [ipv6] Expose NDP-provided settings (including the DNS server) [vesafb] Work around data corruption bug in bochs/qemu VBE implementation [settings] Adapt user interface to fit display size [login] Adapt user interface to fit display size [menu] Adapt user interface to fit display size [console] Allow consoles to update the recorded console size [fbcon] Update the console width and height after changing mode [lkrnprefix] Include iPXE version string in image header [fbcon] Always draw cursor using current foreground and background colours [console] Add centralised concept of colours and colour pairs [mucurses] Use centralised concept of colour pairs [cmdline] Add the "colour" and "cpair" commands [console] Add concept of a "magic" colour [vesafb] Set "magic" colour to transparent when a background picture is used [build] Remove obsolete check for GNU as version 2.9.1 [ipv6] Fix compilation under FreeBSD [build] Build ROMs used by qemu and VMware as part of "make all" [libc] Add isprint() [test] Add okx() macro taking an explicit file name and line number [deflate] Add support for DEFLATE decompression [deflate] Fix literal data length calculation [libc] Add abs() [uaccess] Add memcmp_user() [test] Rewrite pnm_ok() using okx() [test] Generalise pnm_ok() to pixbuf_ok() [png] Add support for PNG images [vesafb] Handle failures from fbcon_init() [fbcon] Centre background picture on console [fbcon] Allow for an arbitrary margin around the text area [vesafb] Allow for an arbitrary margin around the text area [cmdline] Rename "console" command's --bpp option to --depth [cmdline] Add margin options to the "console" command [fbcon] Allow ANSI CUP with missing arguments [cmdline] Always clear screen after reconfiguring console [intel] Add some missing PCI IDs [dns] Support DNS search lists [dns] Update end-of-name pointer after processing CNAME record [dhcp] Copy exactly the required length when resizing DHCP options [settings] Remove "uristring" setting type [params] Use reference counters for form parameter lists [uri] Refactor URI parsing and formatting [image] Ensure every image has a fully resolved URI [tcpip] Add IP statistics collection as per RFC 4293 [cmdline] Add the "ipstat" command [prefix] Ignore PCI autoboot device location if set to 00:00.0 [tcpip] Provide tcpip_netdev() to determine the transmitting network device [tcpip] Provide tcpip_mtu() to determine the maximum transmission unit [tcp] Calculate correct MSS from peer address [bzimage] Report exact initrd length via bzImage header [realtek] Include link status register details in debug messages [romprefix] Do not clobber stack segment when returning to BIOS [netdevice] Mark devices as open before calling open() method [tcp] Update window even if ACK does not acknowledge new data [linux] Avoid starting currticks() from zero every time [http] Use a retry timer to trigger retried requests [http] Automatically retry request on a 503 Service Unavailable [mii] Add mii_dump() to dump all MII registers [realtek] Dump all MII register contents when link status changes [monojob] Reset timeout when progress is made [image] Add "--timeout" parameter to image downloading commands [efi] Allow for 64-bit EFI_STATUS codes [efi] Allow driver to be unloaded [efi] Connect driver to devices as part of installation [console] Fix display of characters with top bit set [lotest] Allow loopback testing on shared networks [netdevice] Notify upper-layer drivers when RX processing is (un)frozen [efi] Avoid accidentally calling main() twice [efi] Unload our own image before exiting UEFI application [efi] Disable SNP devices when running iPXE as the application [realtek] Add ability to dump all internal registers [realtek] Clear bit 24 of RCR [bios] Fix screen clearing on even more buggy BIOSes [http] Accept Content-Length header with trailing whitespace [crypto] Remove dynamically-allocated storage for certificate name [crypto] Remove dynamically-allocated storage for certificate OCSP URI [build] Remove long-obsolete mechanism for wrapping embedded images [build] Disable ccache for all relevant build targets [build] Add dependency of generated files upon Makefile [crypto] Add pubkey_match() to check for matching public/private key pairs [crypto] Generalise X.509 cache to a full certificate store [crypto] Use fingerprint when no common name is available for debug messages [crypto] Allow signed timestamp error margin to be configured at build time [test] Rewrite X.509 tests using okx() [test] Rewrite CMS tests using okx() [test] Add tests for x509_check_name() [test] Add subject alternative names to X.509 server test certificate [crypto] Add support for subjectAltName and wildcard certificates [crypto] Allow wildcard matches on commonName as well as subjectAltName [intel] Avoid completely filling the TX descriptor ring [test] Rewrite TCP/IP tests using okx() [test] Add self-tests for flsl() [libc] Add inline assembly implementation of flsl() using BSR instruction [test] Add tests for 64-bit division [build] Fix __libgcc attribute for recent gcc versions [test] Check for correct -mrtd assumption on libgcc arithmetic functions [libc] Add isqrt() function to find integer square roots [libc] Add flsll() [profile] Add generic profiling infrastructure [cmdline] Add "profstat" command to display profiling statistics [netdevice] Profile common operations [intel] Profile common virtual machine operations [intel] Push new RX descriptors in batches [librm] Use genuine real mode to accelerate operation in virtual machines [ipv4] Profile transmit and receive datapaths [tcp] Profile transmit and receive datapaths [http] Profile receive datapath [downloader] Profile receive datapath [build] Allow for a debug level of zero [librm] Allow interrupts in protected mode [comboot] Use built-in interrupt reflector [pcbios] Do not switch to real mode to check for timer interrupt [pcbios] Do not switch to real mode to sleep the CPU [test] Print out profiling statistics after a successful test run [librm] Add a profiling self-test for measuring mode transition times [librm] Add meaningful labels at section changes [librm] Speed up protected-to-real mode transition under KVM [librm] Speed up real-to-protected mode transition under KVM [librm] Speed up protected-mode calls under KVM [profile] Provide methods for profiling individual stages of operations [librm] Add profiling self-tests for complete real_call and prot_call cycles [pxe] Profile all PXE API calls [pxe] Profile UNDI transmit datapath [pxe] Work around missing PXENV_UNDI_OPEN only when necessary [undi] Profile all PXE API calls [undi] Profile transmit and receive datapaths [undi] Report any PXENV_UNDI_ISR errors via netdev_rx_err() [undi] Do not switch to real mode to check for NIC interrupt [undi] Place an upper limit on the number of PXENV_UNDI_ISR calls per poll Peter Pickford (1): [serial] Enable UART FIFOs Robin Smidsrød (2): [settings] Add "version" builtin setting [build] Include ipxe.pxe in default build Stefan Hajnoczi (2): [netdevice] Add vlan_tag() to get the VLAN tag of a network device [iscsi] Include 802.1Q VLAN identifier in iBFT Thomas Miletich (3): [3c90x] Stall upload engine before setting RX ring address [3c90x] Don't round up transmit packet length [3c90x] Fix High-MTU packet reception lolipop (1): [intel] Add Intel I217 Gigabit Ethernet PCI ID Signed-off-by: Gerd Hoffmann <[email protected]>
d880b28cef4a8b4bc489a5caec201d019b9c0add
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/d880b28cef4a8b4bc489a5caec201d019b9c0add
2014-05-15 14:24:05+02:00
Disallow outward migration while awaiting incoming migration QEMU will assert if you attempt to start an outgoing migration on a QEMU that's sitting waiting for an incoming migration (started with -incoming), so disallow it with a proper error. (This is a fix for https://bugzilla.redhat.com/show_bug.cgi?id=1086987 ) Signed-off-by: Dr. David Alan Gilbert <[email protected]> Reviewed-by: Andreas Färber <[email protected]> Reviewed-by: Eric Blake <[email protected]> Signed-off-by: Juan Quintela <[email protected]>
ca99993adc9205c905dba5dc1bb819959ada7200
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/ca99993adc9205c905dba5dc1bb819959ada7200
2014-05-05 22:15:03+02:00
usb: sanity check setup_index+setup_len in post_load CVE-2013-4541 s->setup_len and s->setup_index are fed into usb_packet_copy as size/offset into s->data_buf, it's possible for invalid state to exploit this to load arbitrary data. setup_len and setup_index should be checked to make sure they are not negative. Cc: Gerd Hoffmann <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-by: Gerd Hoffmann <[email protected]> Signed-off-by: Juan Quintela <[email protected]>
9f8e9895c504149d7048e9fc5eb5cbb34b16e49a
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/9f8e9895c504149d7048e9fc5eb5cbb34b16e49a
2014-05-05 22:15:03+02:00
vmstate: fix buffer overflow in target-arm/machine.c CVE-2013-4531 cpreg_vmstate_indexes is a VARRAY_INT32. A negative value for cpreg_vmstate_array_len will cause a buffer overflow. VMSTATE_INT32_LE was supposed to protect against this but doesn't because it doesn't validate that input is non-negative. Fix this macro to valide the value appropriately. The only other user of VMSTATE_INT32_LE doesn't ever use negative numbers so it doesn't care. Reported-by: Anthony Liguori <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Juan Quintela <[email protected]>
d2ef4b61fe6d33d2a5dcf100a9b9440de341ad62
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/d2ef4b61fe6d33d2a5dcf100a9b9440de341ad62
2014-05-05 22:15:02+02:00
target-arm: Implement XScale cache lockdown operations as NOPs XScale defines some implementation-specific coprocessor registers for doing cache lockdown operations. Since QEMU doesn't model a cache no proper implementation is possible, but NOP out the registers so that guest code like u-boot that tries to use them doesn't crash. Reported-by: <[email protected]> Signed-off-by: Peter Maydell <[email protected]>
3b7715796401ad1b00f752217fe8f425915e801b
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/3b7715796401ad1b00f752217fe8f425915e801b
2014-05-01 15:24:44+01:00
target-alpha: Remove cpu_unique, cpu_sysval, cpu_usp Technically, these variables could have been referenced both via offsets from env and as TCG registers, which would be illegal. Of course, that could only be done from PALcode, and ours doesn't do that. But honestly, these are used infrequently enough that they don't really need to be TCG registers. We wind up with exactly the same code if we follow the letter of the law and issue explicit ld/st. Signed-off-by: Richard Henderson <[email protected]>
06ef8604e92964cbf30084b7d31091aa7cbbb62f
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/06ef8604e92964cbf30084b7d31091aa7cbbb62f
2014-04-17 11:47:42-07:00
vmxnet3: validate queues configuration read on migration CVE-2013-4544 Signed-off-by: Dmitry Fleytman <[email protected]> Reported-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-by: Dr. David Alan Gilbert <[email protected]> Message-id: [email protected] Signed-off-by: Peter Maydell <[email protected]>
f12d048a523780dbda702027d4a91b62af1a08d7
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/f12d048a523780dbda702027d4a91b62af1a08d7
2014-04-14 11:50:56+01:00
dmg: prevent out-of-bounds array access on terminator When a terminator is reached the base for offsets and sectors is stored. The following records that are processed will use this base value. If the first record we encounter is a terminator, then calculating the base values would result in out-of-bounds array accesses. Don't do that. Signed-off-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Kevin Wolf <[email protected]> Reviewed-by: Max Reitz <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]>
73ed27ec28a1dbebdd2ae792284151f029950fbe
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/73ed27ec28a1dbebdd2ae792284151f029950fbe
2014-04-01 15:22:35+02:00
block/cloop: refuse images with bogus offsets (CVE-2014-0144) The offsets[] array allows efficient seeking and tells us the maximum compressed data size. If the offsets are bogus the maximum compressed data size will be unrealistic. This could cause g_malloc() to abort and bogus offsets mean the image is broken anyway. Therefore we should refuse such images. Signed-off-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Kevin Wolf <[email protected]> Reviewed-by: Max Reitz <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]>
f56b9bc3ae20fc93815b34aa022be919941406ce
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/f56b9bc3ae20fc93815b34aa022be919941406ce
2014-04-01 13:59:47+02:00
block/cloop: validate block_size header field (CVE-2014-0144) Avoid unbounded s->uncompressed_block memory allocation by checking that the block_size header field has a reasonable value. Also enforce the assumption that the value is a non-zero multiple of 512. These constraints conform to cloop 2.639's code so we accept existing image files. Signed-off-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Kevin Wolf <[email protected]> Reviewed-by: Max Reitz <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]>
d65f97a82c4ed48374a764c769d4ba1ea9724e97
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/d65f97a82c4ed48374a764c769d4ba1ea9724e97
2014-04-01 13:59:47+02:00
osdep: initialize glib threads in all QEMU tools glib versions prior to 2.31.0 require an explicit g_thread_init() call to enable multi-threading. Failure to initialize threading causes glib to take single-threaded code paths without synchronization. For example, the g_slice allocator will crash due to race conditions. Fix this for all QEMU tool programs (qemu-nbd, qemu-io, qemu-img) by moving the g_thread_init() call from vl.c:main() into a new osdep.c:thread_init() constructor function. thread_init() has __attribute__((constructor)) and is automatically invoked by the runtime during startup. We can now drop the "simple" trace backend's g_thread_init() call since thread_init() already called it. Note that we must keep coroutine-gthread.c's g_thread_init() call which is located in a constructor function. There is no guarantee for constructor function ordering so thread_init() may only be called later. Reported-by: Mario de Chenno <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]>
ae2990c259abec198879c362dc13f7047f26c2cf
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/ae2990c259abec198879c362dc13f7047f26c2cf
2014-03-25 13:39:31+01:00
virtio-rng: Avoid default_backend refcount leak QOM child properties take a reference to the object and release it when the property is deleted. Therefore we should unref the default_backend after we have added it as a child property. Cc: KONRAD Frederic <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]> Reviewed-by: Paolo Bonzini <[email protected]> Signed-off-by: Andreas Färber <[email protected]>
abdffd1fb78c1b98bda925d3d59123beca6761a3
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/abdffd1fb78c1b98bda925d3d59123beca6761a3
2014-03-19 22:23:47+01:00
linux-user/signal.c: Correct error path for AArch64 do_rt_sigreturn The error path in AArch64 do_rt_sigreturn() which fails before attempting lock_user_struct() was doing an unlock_user_struct() on an uninitialized variable. Initialize frame to NULL so we can use the same error-exit path in all cases (unlock of NULL is permitted and does nothing). Signed-off-by: Peter Maydell <[email protected]> Signed-off-by: Riku Voipio <[email protected]>
7f72cd235fa33f2fc7a8d1cc4d621bf7db61e9eb
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/7f72cd235fa33f2fc7a8d1cc4d621bf7db61e9eb
2014-03-17 11:44:31+02:00
target-mips: Avoid shifting left into sign bit Add U suffix to various places where we shift a 1 left by 31, to avoid undefined behaviour. Signed-off-by: Peter Maydell <[email protected]> Signed-off-by: Michael Tokarev <[email protected]>
f45cb2f43f5bb0a4122a64e61c746048b59a84ed
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/f45cb2f43f5bb0a4122a64e61c746048b59a84ed
2014-03-27 19:22:49+04:00
acpi-build: don't access unaligned addresses casting an unaligned address to e.g. uint32_t can trigger undefined behaviour in C. Replace cast + assignment with memcpy. Reported-by: Peter Maydell <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
b4e5a4bffda0d5dd79c87c66f28a5fac87182e30
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/b4e5a4bffda0d5dd79c87c66f28a5fac87182e30
2014-03-11 13:27:27+02:00
qapi: Clean up null checking in generated visitors Visitors get passed a pointer to the visited object. The generated visitors try to cope with this pointer being null in some places, for instance like this: visit_start_optional(m, obj ? &(*obj)->has_name : NULL, "name", &err); visit_start_optional() passes its second argument to Visitor method start_optional. Three out of three methods dereference it unconditionally. I fail to see how this pointer could legitimately be null. All this useless null checking is highly redundant, which Coverity duly reports. About 200 times. Remove the useless null checks. Signed-off-by: Markus Armbruster <[email protected]> Reviewed-by: Eric Blake <[email protected]> Signed-off-by: Luiz Capitulino <[email protected]>
949ceeb31b84dce43e4619b6d7f02cac0e62e1e1
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/949ceeb31b84dce43e4619b6d7f02cac0e62e1e1
2014-03-03 11:17:20-05:00
s390x/sclp: Add missing checks to SCLP handler If the 51 most significant bits of the SCCB address are zero or equal to the prefix, we should throw an specification exception, too. Also moved the check for privileged mode to sclp_service_call() to have all program checks in one place now. Signed-off-by: Thomas Huth <[email protected]> Reviewed-by: Cornelia Huck <[email protected]> Signed-off-by: Christian Borntraeger <[email protected]>
6e25280216fc23c8387892f76d961559da124528
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/6e25280216fc23c8387892f76d961559da124528
2014-02-27 09:51:25+01:00
ACPI: Remove commented-out code from HPET._CRS IRQNoFlags on HPET._CRS crashes WinXP because it causes the HPET to conflict with the system timer and/or the RTC. It only occurs on Apple hardware, and even there it is exposed fully only when OS X is detected (via _OSI). Recent OS X versions work on QEMU without this statement, so at this time there is no need to find a better way to conditionally include the statement. This patch removes the commented out (and wrong, should have been {0, 8}) statement from HPET._CRS. Signed-off-by: Gabriel Somlo <[email protected]> Reviewed-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-By: Igor Mammedov <[email protected]>
417c45ab2f847c0a47b1232f611aa886df6a97d5
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/417c45ab2f847c0a47b1232f611aa886df6a97d5
2014-02-10 11:09:33+02:00
qemu_opts_parse(): always check return value qemu_opts_parse() can always return NULL, even if the QemuOptsList.desc in question would be trivial to satisfy (eg. because it's empty). For example: qemu_opts_parse() opts_parse() qemu_opts_create() id_wellformed() In practice: $ .../qemu-system-x86_64 -acpitable id=3 qemu-system-x86_64: -acpitable id=3: Parameter 'id' expects an identifier ** ERROR:vl.c:3491:main: assertion failed: (opts != NULL) Aborted (core dumped) $ .../qemu-system-x86_64 -smbios id=3 qemu-system-x86_64: -smbios id=3: Parameter 'id' expects an identifier Segmentation fault (core dumped) I checked all qemu_opts_parse() invocations (and all drive_def() invocations too, because it blindly forwards the former's retval). Only the two above examples look problematic. Signed-off-by: Laszlo Ersek <[email protected]> Reviewed-by: Markus Armbruster <[email protected]> Message-id: [email protected] Signed-off-by: Anthony Liguori <[email protected]>
f46e720a82ccdf1a521cf459448f3f96ed895d43
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/f46e720a82ccdf1a521cf459448f3f96ed895d43
2013-12-16 15:33:48-08:00
Don't crash on keyboard input with no handler Prevent a call to put_kbd if null. On shutdown of some OSes, the keyboard handler goes away before the system is down. If a key is typed during this window, qemu crashes. Signed-off-by: Don Koch <[email protected]> Signed-off-by: Michael Tokarev <[email protected]>
4282c8277013dc5613b8f27845f6121b66b7cbff
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/4282c8277013dc5613b8f27845f6121b66b7cbff
2013-12-02 21:09:04+04:00
qxl: add vgamem_size_mb and vgamem_size In preperation for supporting a larger framebuffer for multiple monitors on a single card, add a property to qxl vgamem_size_mb, and corresponding byte sized vgamem_size, and use instead of VGA_RAM_SIZE. [ kraxel: simplify property handling, add sanity checks ] [ kraxel: fix mode copying ] Signed-off-by: Alon Levy <[email protected]> Signed-off-by: Gerd Hoffmann <[email protected]>
13d1fd44c46629aad672f192abbf02238c6cbf36
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/13d1fd44c46629aad672f192abbf02238c6cbf36
2012-06-22 10:49:45+02:00
qom: Fix memory leak in object_property_set_link() Save the result of the call to object_get_canonical_path() so we can free it. Cc: [email protected] Signed-off-by: Vlad Yasevich <[email protected]> Reviewed-by: Amos Kong <[email protected]> Reviewed-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Andreas Färber <[email protected]>
2d3aa28cc2cf382aa04cd577e0be542175eea9bd
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/2d3aa28cc2cf382aa04cd577e0be542175eea9bd
2013-11-19 10:58:21+01:00
qdev-monitor-test: add device_add leak test cases Ensure that the device_add error code path deletes device objects. Failure to do so not only leaks the objects but can also keep other objects (like drive or netdev) alive due to qdev properties holding references. Signed-off-by: Stefan Hajnoczi <[email protected]> Reviewed-by: Eric Blake <[email protected]>
43cd209803d6cffb1e1a028c9ff2fd0ff4fce954
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/43cd209803d6cffb1e1a028c9ff2fd0ff4fce954
2013-11-07 13:58:58+01:00
exec: fix breakpoint_invalidate when pc may not be translated This fixes qemu abort with the following message: include/qemu/int128.h:22: int128_get64: Assertion `!a.hi' failed. which happens due to attempt to invalidate breakpoint by virtual address for which get_phys_page_debug couldn't find mapping. For more details see http://lists.nongnu.org/archive/html/qemu-devel/2013-09/msg04582.html Cc: [email protected] Signed-off-by: Max Filippov <[email protected]> Reviewed-by: Paolo Bonzini <[email protected]>
e8262a1b5b7cfbcbc80c46e4ce6ff7c517b7b2f6
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/e8262a1b5b7cfbcbc80c46e4ce6ff7c517b7b2f6
2013-11-08 09:25:22+04:00
PPC: Fix L2CR write accesses Commit 2345f1c01 was supposed to render L2CR writes into noops. Instead, it made them illegal instruction traps which apparently didn't confuse XNU, but can easily confuse other OSs. Fix it up by actually doing nothing when we write to L2CR. Reported-by: Julio Guerra <[email protected]> Signed-off-by: Alexander Graf <[email protected]> Tested-by: Julio Guerra <[email protected]>
9633fcc6a02f23e3ef00aa5fe3fe9c41f57c3456
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/9633fcc6a02f23e3ef00aa5fe3fe9c41f57c3456
2013-10-25 23:25:45+02:00
hw/9pfs: Fix errno value for xattr functions If there is no operation driver for the xattr type the functions return '-1' and set errno to '-EOPNOTSUPP'. When the calling code sets 'ret = -errno' this turns into a large positive number. In Linux 3.11, the kernel has switched to using 9p version 9p2000.L, instead of 9p2000.u, which enables support for xattr operations. This on its own is harmless, but for another change which makes it request the xattr with a name 'security.capability'. The result is that the guest sees a succesful return of 95 bytes of data, instead of a failure with errno set to 95. Since the kernel expects a maximum of 20 bytes for an xattr return this gets translated to the unexpected errno ERANGE. This all means that when running a binary off a 9p fs in 3.11 kernels you get a fun result of: # ./date sh: ./date: Numerical result out of range The only workaround is to pass 'version=9p2000.u' when mounting the 9p fs in the guest, to disable all use of xattrs. Signed-off-by: Daniel P. Berrange <[email protected]> Reviewed-by: Aneesh Kumar K.V <[email protected]> Signed-off-by: Michael Tokarev <[email protected]>
8af00205445eb901f17ca5b632d976065187538e
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/8af00205445eb901f17ca5b632d976065187538e
2013-10-05 13:05:28+04:00
target-i386: Set model=6 on qemu64 & qemu32 CPU models There's no Intel CPU with family=6,model=2, and Linux and Windows guests disable SEP when seeing that combination due to Pentium Pro erratum #82. In addition to just having SEP ignored by guests, Skype (and maybe other applications) runs sysenter directly without passing through ntdll on Windows, and crashes because Windows ignored the SEP CPUID bit. So, having model > 2 is a better default on qemu64 and qemu32 for two reasons: making SEP really available for guests, and avoiding crashing applications that work on bare metal. model=3 would fix the problem, but it causes CPU enumeration problems for Windows guests[1]. So let's set model=6, that matches "Athlon (PM core)" on AMD and "P2 with on-die L2 cache" on Intel and it allows Windows to use all CPUs as well as fixing sysenter. [1] https://bugzilla.redhat.com/show_bug.cgi?id=508623 Cc: Andrea Arcangeli <[email protected]> Signed-off-by: Eduardo Habkost <[email protected]> Reviewed-by: Igor Mammedov <[email protected]> Signed-off-by: Andreas Färber <[email protected]>
f8e6a11aecc96e9d8a84f17d7c07019471714e20
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/f8e6a11aecc96e9d8a84f17d7c07019471714e20
2013-10-02 16:51:12+02:00
rbd: avoid qemu_rbd_snap_list() memory leaks When there are no snapshots qemu_rbd_snap_list() returns 0 and the snapshot table pointer is NULL. Don't forget to free the snaps buffer we allocated for librbd rbd_snap_list(). When the function succeeds don't forget to free the snaps buffer after calling rbd_snap_list_end(). Cc: [email protected] Signed-off-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
9e6337d0818650362149b734d53edf9489f3acaa
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/9e6337d0818650362149b734d53edf9489f3acaa
2013-09-25 16:22:00+02:00
qcow2: Unset zero_beyond_eof in save_vmstate Saving the VM state is done using bdrv_pwrite. This function may perform a read-modify-write, which in this case results in data being read from beyond the end of the virtual disk. Since we are actually trying to access an area which is not a part of the virtual disk, zero_beyond_eof has to be set to false before performing the partial write, otherwise the VM state may become corrupted. Signed-off-by: Max Reitz <[email protected]> Reviewed-by: Eric Blake <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
6e13610aa454beba52944e8df6d93158d68ab911
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/6e13610aa454beba52944e8df6d93158d68ab911
2013-10-24 11:50:51+02:00
pc_sysfw: Fix ISA BIOS init for ridiculously big flash pc_isa_bios_init() suffers integer overflow for flash larger than INT_MAX. Signed-off-by: Markus Armbruster <[email protected]> Acked-by: Laszlo Ersek <[email protected]> Acked-by: Stefano Stabellini <[email protected]> Acked-by: Christian Borntraeger <[email protected]> Message-id: [email protected] Signed-off-by: Anthony Liguori <[email protected]>
7f87af39dc786a979e7ebba338d0781e366060ed
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/7f87af39dc786a979e7ebba338d0781e366060ed
2013-09-12 11:45:32-05:00
QMP/qemu-ga-client: Make timeout longer for guest-fsfreeze-freeze command guest-fsfreeze-freeze command can take longer than 3 seconds when heavy disk I/O is running. To avoid unexpected timeout, this changes the timeout to 60 seconds (timeout of pre-commit phase of VSS). Signed-off-by: Tomoki Sekiyama <[email protected]> Reviewed-by: Paolo Bonzini <[email protected]> Reviewed-by: Laszlo Ersek <[email protected]> Reviewed-by: Michael Roth <[email protected]> Signed-off-by: Michael Roth <[email protected]>
e2682db06a6c218f149ff990959c31f3b3d82003
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/e2682db06a6c218f149ff990959c31f3b3d82003
2013-09-09 14:17:57-05:00
iscsi: use bdrv_new() instead of stack structure BlockDriverState structure needs bdrv_new() to initialize refcnt, don't allocate a local structure variable and memset to 0, becasue with coming refcnt implementation, bdrv_unref will crash if bs->refcnt not initialized to 1. Signed-off-by: Fam Zheng <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]>
13c91cb7e28b47f5c4227f7e88a1378570117704
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/13c91cb7e28b47f5c4227f7e88a1378570117704
2013-09-06 15:25:08+02:00
loader: store FW CFG ROM files in RAM ROM files that are put in FW CFG are copied to guest ram, by BIOS, but they are not backed by RAM so they don't get migrated. Each time we change two bytes in such a ROM this breaks cross-version migration: since we can migrate after BIOS has read the first byte but before it has read the second one, getting an inconsistent state. Future-proof this by creating, for each such ROM, an MR serving as the backing store. This MR is never mapped into guest memory, but it's registered as RAM so it's migrated with the guest. Naturally, this only helps for -M 1.7 and up, older machine types will still have the cross-version migration bug. Luckily the race window for the problem to trigger is very small, which is also likely why we didn't notice the cross-version migration bug in testing yet. Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-by: Laszlo Ersek <[email protected]>
04920fc0faa4760f9c4fc0e73b992b768099be70
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/04920fc0faa4760f9c4fc0e73b992b768099be70
2013-08-21 00:18:39+03:00
qemu-iotests: add poke_file utility function The new poke_file function sets bytes at an offset in a file given a printf-style format string. It can be used to corrupt an image file for test coverage of error paths. Signed-off-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
23ea2ecc2a43d850bc9482068201ece5da36a448
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/23ea2ecc2a43d850bc9482068201ece5da36a448
2013-08-06 15:27:32+02:00
semaphore: fix a hangup problem under load on NetBSD hosts. Fix following bugs in "fallback implementation of counting semaphores with mutex+condvar" added in c166cb72f1676855816340666c3b618beef4b976: - waiting threads are not restarted properly if more than one threads are waiting unblock signals in qemu_sem_timedwait() - possible missing pthread_cond_signal(3) calls when waiting threads are returned by ETIMEDOUT - fix an uninitialized variable The problem is analyzed by and fix is provided by Noriyuki Soda. Also put additional cleanup suggested by Laszlo Ersek: - make QemuSemaphore.count unsigned (it won't be negative) - check a return value of in pthread_cond_wait() in qemu_sem_wait() Signed-off-by: Izumi Tsutsui <[email protected]> Reviewed-by: Laszlo Ersek <[email protected]> Message-id: [email protected] Signed-off-by: Anthony Liguori <[email protected]>
79761c6681f0d1cc1c027116fcb4382d41ed3ece
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/79761c6681f0d1cc1c027116fcb4382d41ed3ece
2013-08-05 11:48:00-05:00
qapi.py: Fix diagnosing non-objects at a schema's top-level Report syntax error instead of crashing. Signed-off-by: Markus Armbruster <[email protected]> Reviewed-by: Eric Blake <[email protected]> Message-id: [email protected] Signed-off-by: Anthony Liguori <[email protected]>
5f3cd2b717c949f3afb502fb4c81193eb18ce6aa
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/5f3cd2b717c949f3afb502fb4c81193eb18ce6aa
2013-07-29 10:37:11-05:00
qapi.py: Fix schema parser to check syntax systematically Fixes at least the following parser bugs: * accepts any token in place of a colon * treats comma as optional * crashes when closing braces or brackets are missing Signed-off-by: Markus Armbruster <[email protected]> Reviewed-by: Eric Blake <[email protected]> Message-id: [email protected] Signed-off-by: Anthony Liguori <[email protected]>
6974ccd542d11ae5fb1e56dd3d753f2de5cc097e
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/6974ccd542d11ae5fb1e56dd3d753f2de5cc097e
2013-07-29 10:37:11-05:00
libqtest: Plug fd and memory leaks in qtest_quit() Reviewed-by: Anthony Liguori <[email protected]> Signed-off-by: Markus Armbruster <[email protected]> Reviewed-by: Andreas Färber <[email protected]> Message-id: [email protected] Signed-off-by: Anthony Liguori <[email protected]>
fdd26fca3ce66863e547560fbde1a444fc5d71b7
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/fdd26fca3ce66863e547560fbde1a444fc5d71b7
2013-07-18 11:32:54-05:00
gdbstub: Change GDBState::query_cpu to CPUState Since first_cpu/next_cpu are CPUState, CPUArchState is no longer needed. This resolves a NULL pointer dereference of query_cpu, introduced with commit 182735efaf956ccab50b6d74a4fed163e0f35660 and reported by TeLeMan and Max Filippov. Reviewed-by: Richard Henderson <[email protected]> Signed-off-by: Andreas Färber <[email protected]>
52f34623b499cb0273118b1f637c2c6ebaf5d5a1
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/52f34623b499cb0273118b1f637c2c6ebaf5d5a1
2013-07-23 02:38:32+02:00
fsdev: Fix potential memory leak This leak was reported by cppcheck. Signed-off-by: Stefan Weil <[email protected]> Reviewed-by: M. Mohan Kumar <[email protected]> Message-id: [email protected] Signed-off-by: Anthony Liguori <[email protected]>
b58c86e1e4cdf59373aad2ec25f99f772766374c
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/b58c86e1e4cdf59373aad2ec25f99f772766374c
2013-07-09 13:38:56-05:00
acl: acl_add can't insert before last list element, fix Watch this: $ upstream-qemu -nodefaults -S -vnc :0,acl,sasl -monitor stdio QEMU 1.5.50 monitor - type 'help' for more information (qemu) acl_add vnc.username drei allow acl: added rule at position 1 (qemu) acl_show vnc.username policy: deny 1: allow drei (qemu) acl_add vnc.username zwei allow 1 acl: added rule at position 2 (qemu) acl_show vnc.username policy: deny 1: allow drei 2: allow zwei (qemu) acl_add vnc.username eins allow 1 acl: added rule at position 1 (qemu) acl_show vnc.username policy: deny 1: allow eins 2: allow drei 3: allow zwei The second acl_add inserts at position 2 instead of 1. Root cause is an off-by-one in qemu_acl_insert(): when index == acl->nentries, it appends instead of inserting before the last list element. Cc: [email protected] Signed-off-by: Markus Armbruster <[email protected]> Reviewed-by: Michael Roth <[email protected]> Signed-off-by: Michael Tokarev <[email protected]>
4999f3a8a6009de05ba82e58e723277917f16254
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/4999f3a8a6009de05ba82e58e723277917f16254
2013-06-21 22:52:50+04:00
Unbreak -no-quit for GTK, validate SDL options Certain options (-no-frame, -alt-grab, -ctrl-grab) only make sense with SDL. When compiling without SDL, these options (and -no-quit) print an error message and exit qemu. In case QEMU is compiled with SDL support, the three aforementioned options still do not make sense with other display types. This patch addresses that issue by printing a warning. I have chosen not to exit QEMU afterwards because having the option is not harmful and before this patch it would be ignored anyway. By delaying the sanity check from compile-time with some ifdefs to run-time, -no-quit is now also properly supported when compiling without SDL. Signed-off-by: Peter Wu <[email protected]> Signed-off-by: Michael Tokarev <[email protected]>
047d4e151dd462915786a4fddc12f774d0028af5
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/047d4e151dd462915786a4fddc12f774d0028af5
2013-06-11 23:45:44+04:00
exec: do not use error_mem_read We will soon reach this case when doing (unaligned) accesses that span partly past the end of memory. We do not want to crash in that case. unassigned_mem_ops and rom_mem_ops are now the same. Reviewed-by: Richard Henderson <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
bf8d5166395612b4e856fad57606eb0cff97ae2e
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/bf8d5166395612b4e856fad57606eb0cff97ae2e
2013-05-29 16:26:44+02:00
acpi: add dummy write function for acpi timer Otherwise the guest can crash qemu (NULL pointer dereference). https://bugzilla.redhat.com/show_bug.cgi?id=947691 Signed-off-by: Gerd Hoffmann <[email protected]> Reviewed-by: Laszlo Ersek <[email protected]> Message-id: [email protected] Signed-off-by: Anthony Liguori <[email protected]>
2d3b989529727ccace243b953a181fbae04a30d1
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/2d3b989529727ccace243b953a181fbae04a30d1
2013-05-14 08:53:09-05:00
virtio-net: properly check the vhost status during status set Commit 32993698 (vhost: disable on tap link down) tries to disable the vhost also when the peer's link is down. But the check was not done properly, the vhost were only started when: 1) peer's link is not down 2) virtio-net has already been started. Since == have a higher precedence than &&, place a brace to make sure both the conditions were met then does the check. This fixes the crash when doing a savem after set the link off which let qemu crash and complains: virtio_net_save: Assertion `!n->vhost_started' failed. Cc: Michael S. Tsirkin <[email protected]> Signed-off-by: Jason Wang <[email protected]> Message-id: [email protected] Signed-off-by: Anthony Liguori <[email protected]>
d7108d90100d5bac5965abef5ed73f2602adae14
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/d7108d90100d5bac5965abef5ed73f2602adae14
2013-05-07 06:43:09-05:00
console: add dummy surface for guests without graphic card So users get a notification instead of a crash. Signed-off-by: Gerd Hoffmann <[email protected]>
d3002b0463727bf8110833b9d1a6efaa28990c28
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/d3002b0463727bf8110833b9d1a6efaa28990c28
2013-04-25 14:45:46-05:00
pseries: Fix some small errors in XICS logic Under certain circumstances the emulation for the pseries "XICS" interrupt controller was clearing a pending interrupt from the XISR register, without also clearing the corresponding priority variable. This will cause problems later when can trigger sanity checks in the under-development in-kernel XICS implementation. Signed-off-by: David Gibson <[email protected]> Signed-off-by: Alexander Graf <[email protected]>
e03c902cb617414dae49d77a810f6957ff7affac
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/e03c902cb617414dae49d77a810f6957ff7affac
2013-04-26 23:02:41+02:00
block: Fix build with tracing enabled filename was still uninitialised when it's used as a parameter to a tracing function, so let's move the initialisation. Also, commit c2ad1b0c forgot to add a NULL check, which this patch adds while we're at it. Signed-off-by: Kevin Wolf <[email protected]> Reviewed-by: Eric Blake <[email protected]> Tested-by: Andreas Färber <[email protected]> Message-id: [email protected] Signed-off-by: Anthony Liguori <[email protected]>
456736710df19c2275192269fe67a3f0b2583835
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/456736710df19c2275192269fe67a3f0b2583835
2013-04-22 11:31:41-05:00