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
qemu-iotests: ignore fragmentation information for qed We added image fragmentation statistics functions to qemu-img several days ago, those patches will cause "./check -qed" failed. This patch will ignore fragmentation statistics information of qed format, and then "./check -qed" will work. Signed-off-by: Dong Xu Wang <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
a5126c759d12afe3011eab74fef9cea19dbd729f
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/a5126c759d12afe3011eab74fef9cea19dbd729f
2012-05-02 18:39:39+02:00
virtio: add missing mb() on notification During normal operation, virtio first writes a used index and then checks whether it should interrupt the guest by reading guest avail index/flag values. Guest does the reverse: writes the index/flag, then checks the used ring. The ordering is important: if host avail flag read bypasses the used index write, we could in effect get this timing: host avail flag read guest enable interrupts: avail flag write guest check used ring: ring is empty host used index write which results in a lost interrupt: guest will never be notified about the used ring update. This actually can happen when using kvm with an io thread, such that the guest vcpu and qemu run on different host cpus, and this has actually been observed in the field (but only seems to trigger on very specific processor types) with userspace virtio: vhost has the necessary smp_mb() in place to prevent the regordering, so the same workload stalls forever waiting for an interrupt with vhost=off but works fine with vhost=on. Insert an smp_mb barrier operation in userspace virtio to ensure the correct ordering. Applying this patch fixed the race condition we have observed. Tested on x86_64. I checked the code generated by the new macro for i386 and ppc but didn't run virtio. Note: mb could in theory be implemented by __sync_synchronize, but this would make us hit old GCC bugs. Besides old GCC not implementing __sync_synchronize at all, there were bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36793 in this functionality as recently as in 4.3. As we need asm for rmb,wmb anyway, it's just as well to use it for mb. Signed-off-by: Michael S. Tsirkin <[email protected]>
a281ebc11a6917fbc27e1a93bb5772cd14e241fc
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/a281ebc11a6917fbc27e1a93bb5772cd14e241fc
2012-04-25 10:53:46+03:00
S390: fix error handling on kernel and initrd failures If the user specifies a non-existing or non-accessable kernel or initrd qemu does not fail, instead it ipls into the system, which then falls into a program check loop due to the zeroed memory with no kernel. Lets add some sanity checks. Signed-off-by: Christian Borntraeger <[email protected]> Signed-off-by: Alexander Graf <[email protected]>
118a89774346e6a406cd44f403cb043a417066c9
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/118a89774346e6a406cd44f403cb043a417066c9
2012-05-01 21:04:06+02:00
iotests: Resolve test failures caused by hostname `hostname -s` may output an errror: hostname: Name or service not known This causes all tests to fail for `make check-block`. Suppress such error messages, letting the tests succeed. Signed-off-by: Andreas Färber <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
29926112a2fd619abedd8e21002f5d50c476b402
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/29926112a2fd619abedd8e21002f5d50c476b402
2012-04-20 12:58:50+02:00
qtest: add register fuzzing to RTC test Reviewed-by: Anthony Liguori <[email protected]> Signed-off-by: Blue Swirl <[email protected]>
85215d419b17aeedbfe93ff8d739b27937f72739
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/85215d419b17aeedbfe93ff8d739b27937f72739
2012-04-19 18:14:55+00:00
PPC: Fix TLB invalidation bug within the PPC interrupt handler. Commit 41557447d30eeb944e42069513df13585f5e6c7f also introduced a subtle TLB flush bug. By applying a mask to the interrupt MSR which cleared the IR/DR bits at the start of the interrupt handler, the logic towards the end of the handler to force a TLB flush if either one of these bits were set would never be triggered. This patch simply changes the IR/DR bit check in the TLB flush logic to use the original MSR value (albeit with some interrupt-specific bits cleared) so that the IR/DR bits are preserved at the point where the check takes place. Signed-off-by: Mark Cave-Ayland <[email protected]> Acked-by: David Gibson <[email protected]> Signed-off-by: Andreas Färber <[email protected]>
52d631dcc70144b6ce8293db78cd6de635331c83
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/52d631dcc70144b6ce8293db78cd6de635331c83
2012-04-15 17:07:19+02:00
block stream: close unused files and update ->backing_hd Close the now unused images that were part of the previous backing file chain and adjust ->backing_hd, backing_filename and backing_format properly. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=801449 Signed-off-by: Marcelo Tosatti <[email protected]> Reviewed-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
5a67a1048e1294b35940e7432d57d8cd801e6571
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/5a67a1048e1294b35940e7432d57d8cd801e6571
2012-04-05 15:11:37+02:00
qapi: add struct-errors test case to test-qmp-output-visitor This test case verifies that invalid native enums are caught, and causes qapi to tear down the QObject tree under construction, exercising the previous patch. Signed-off-by: Paolo Bonzini <[email protected]> Signed-off-by: Laszlo Ersek <[email protected]> Signed-off-by: Luiz Capitulino <[email protected]>
9e9eace89e2a8180f0a5fd312bb87e53e6f2004b
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/9e9eace89e2a8180f0a5fd312bb87e53e6f2004b
2012-03-27 09:11:00-03:00
uhci: alloc can't fail, drop check. Signed-off-by: Gerd Hoffmann <[email protected]>
6c60134091cb2754d810b012773754967d8bbf92
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/6c60134091cb2754d810b012773754967d8bbf92
2012-03-13 10:15:32+01:00
block: handle -EBUSY in bdrv_commit_all() Monitor operations that manipulate image files must not execute while a background job (like image streaming) is in progress. This prevents corruptions from happening when two pieces of code are manipulating the image file without knowledge of each other. The monitor "commit" command raises QERR_DEVICE_IN_USE when bdrv_commit() returns -EBUSY but "commit all" has no error handling. This is easy to fix, although note that we do not deliver a detailed error about which device was busy in the "commit all" case. Suggested-by: Kevin Wolf <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
e88774971c33671477c9eb4a4cf1e65a047c9838
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/e88774971c33671477c9eb4a4cf1e65a047c9838
2012-03-12 15:14:06+01:00
qemu-char: Use qemu_open() to avoid leaking fds to children Fixed silently in commit aad04cd0, but that just got reverted. Re-apply the fixes, plus one missed instance: parport on Linux. Reviewed-by: Anthony Liguori <[email protected]> Signed-off-by: Markus Armbruster <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
b181e04777da67acbc7448f87e4ae9f1518e08b2
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/b181e04777da67acbc7448f87e4ae9f1518e08b2
2012-02-24 09:06:57-06:00
qdev: drop unnecessary parse/print methods More qdev printers could have been removed in the previous series, and object_property_parse also made several parsers unnecessary. In fact, the new code is even more robust with respect to overflows, so clean them up! Signed-off-by: Paolo Bonzini <[email protected]>
5cb9b56acfc0b50acf7ccd2d044ab4991c47fdde
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/5cb9b56acfc0b50acf7ccd2d044ab4991c47fdde
2012-02-22 08:31:25+01:00
usb-redir: Limit return values returned by iso packets The usbredir protocol uses a status of usb_redir_stall to indicate that an iso data stream has stopped (ie because the urbs failed on resubmit), but iso packets should never return a result of USB_RET_STALL, since iso endpoints cannot stall. So instead simply always return USB_RET_NAK on iso stream errors. Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Gerd Hoffmann <[email protected]>
d86b8853e1f0c7ffb917a7a48f2e44bc3d8e9f8a
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/d86b8853e1f0c7ffb917a7a48f2e44bc3d8e9f8a
2012-02-27 13:37:37+01:00
AHCI: Fix port reset race bdrv_aio_cancel() can trigger bdrv_aio_flush() which makes all aio that is currently in flight finish. So what we do is: port reset detect ncq in flight cancel ncq delete ncq sg list at which point we have double freed the sg list. Instead, with this patch we do: port reset detect ncq in flight cancel ncq check if we are really still in flight delete ncq sg list which makes things work and gets rid of the race. Signed-off-by: Alexander Graf <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
c9b308d20b642c106048f088ccc31f2aa7cf59ba
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/c9b308d20b642c106048f088ccc31f2aa7cf59ba
2012-02-09 16:17:51+01:00
scsi: Guard against buflen exceeding req->cmd.xfer in scsi_disk_emulate_command Limit the return value (corresponding to the length of the buffer to be DMAed back to the intiator) to the value in req->cmd.xfer, which is the amount of data that the initiator expects. Eliminate now-duplicate code that does this guarding in the functions for individual commands. Without this, the SCRIPTS code in the emulated LSI device eventually raises a DMA interrupt for a data overrun when an INQUIRY command whose buflen exceeds req->cmd.xfer is processed. It's the responsibility of the client to provide a request buffer and allocation length that are large enough for the result of the command. Signed-off-by: Thomas Higdon <[email protected]> Reviewed-by: Paolo Bonzini <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
e2f0c49ffae8d3a00272c3cbc68850cc5aafbffa
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/e2f0c49ffae8d3a00272c3cbc68850cc5aafbffa
2012-01-26 14:49:18+01:00
hw/9pfs: replace iovec manipulation with QEMUIOVector The v9fs_read() and v9fs_write() functions rely on iovec[] manipulation code should be replaced with QEMUIOVector to avoid duplicating code. In the future it may be possible to make the code even more concise by using QEMUIOVector consistently across virtio and 9pfs. The "v" format specifier for pdu_marshal() and pdu_unmarshal() is dropped since it does not actually pack/unpack anything. The specifier was also not implemented to update the offset variable and could only be used at the end of a format string, another sign that this shouldn't really be a format specifier. Instead, see the new v9fs_init_qiov_from_pdu() function. This change avoids a possible iovec[] buffer overflow when indirect vrings are used since the number of vectors is now limited by the underlying VirtQueueElement and cannot be out-of-bounds. Signed-off-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Aneesh Kumar K.V <[email protected]>
302a0d3ed721e4c30c6a2a37f64c60b50ffd33b9
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/302a0d3ed721e4c30c6a2a37f64c60b50ffd33b9
2011-12-21 12:37:22+05:30
qapi: fix guardname generation Fix a bug in handling dotted paths, and exclude directory prefixes from generated guardnames to avoid odd/pseudo-random guardnames in generated headers. Signed-off-by: Anthony Liguori <[email protected]>
d8e1f214a0046b85f5297b0396f3678531b8982d
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/d8e1f214a0046b85f5297b0396f3678531b8982d
2011-11-30 09:28:32-06:00
vdi: Fix memory leak The block map is allocated in vdi_open, but was never freed. Signed-off-by: Kevin Wolf <[email protected]>
6ac5f3881fd9880f55e30c5f5bd9984d9d47fd62
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/6ac5f3881fd9880f55e30c5f5bd9984d9d47fd62
2011-11-23 17:04:05+01:00
slirp: Clean up net_slirp_hostfwd_remove()'s use of get_str_sep() get_str_sep() can fail, but net_slirp_hostfwd_remove() doesn't check. Works, because it initializes buf[] to "", which get_str_sep() doesn't touch when it fails. Coverity doesn't like it, and neither do I. Change it to work exactly like slirp_hostfwd(). Acked-by: Jan Kiszka <[email protected]> Signed-off-by: Markus Armbruster <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]>
e30e5eb6136aa3311dad4ca90f6546e05ae98f92
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/e30e5eb6136aa3311dad4ca90f6546e05ae98f92
2011-11-22 11:11:23+00:00
x86: fix pcmpestrm and pcmpistrm Fix obvious typos (decrement and off-by-one error) in pcmpestrm and pcmpistrm which resulted in infinite loop. Reported by Frank Mehnert, spotted also by Coverity (bug 84752853). Reported-by: Frank Mehnert <[email protected]> Signed-off-by: Blue Swirl <[email protected]>
bc4268998d154b9b3cc86a7b6bd932cc974591c9
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/bc4268998d154b9b3cc86a7b6bd932cc974591c9
2011-11-19 13:51:27+00:00
hw/usb-net.c: Fix precedence bug when checking rndis_state "!X == 2" is always false (spotted by Coverity), so the checks for whether rndis is in the correct state would never fire. Signed-off-by: Peter Maydell <[email protected]> Signed-off-by: Andrzej Zaborowski <[email protected]>
e7852674d5013bffd0bb8e822a7521f76677a60b
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/e7852674d5013bffd0bb8e822a7521f76677a60b
2011-11-14 02:19:24+01:00
os-posix: Plug fd leak in qemu_create_pidfile() Spotted by Coverity. Signed-off-by: Markus Armbruster <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
1bbd1592c89a433e1a0501d582652d54d367ca53
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/1bbd1592c89a433e1a0501d582652d54d367ca53
2011-11-11 12:49:52-06:00
console: Properly switch consoles for screen dumps Do not mess with active_console, use console_select instead. This fixes corrupt virtual monitor consoles after issuing the screendump command. Signed-off-by: Jan Kiszka <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
f81bdefb63243e82d16ce49332f7cf74d10b8f27
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/f81bdefb63243e82d16ce49332f7cf74d10b8f27
2011-09-16 08:25:57-05:00
w32: Fix qemu_ftruncate64 SetFilePointer returns INVALID_SET_FILE_POINTER when it fails. In addition, GetLastError must be checked. The first call of SetFilePointer did not use INVALID_SET_FILE_POINTER, the second call used wrong error handling. Signed-off-by: Stefan Weil <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
2c993ec294893af31deed27e5d79610ce71642e1
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/2c993ec294893af31deed27e5d79610ce71642e1
2011-08-22 10:19:00-05:00
spice: add sanity check for spice ports Make sure at least one port (port=.. or tls-port=...) is specified. Also apply range checks to the port numbers. Signed-off-by: Gerd Hoffmann <[email protected]>
df9cb669425051f4f4364cffb19c9b8089e04297
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/df9cb669425051f4f4364cffb19c9b8089e04297
2011-07-20 10:08:53+02:00
ide: Initialise buffers with zeros Just in case there's still a way how a guest can read out buffers when it's not supposed to, let's zero the buffers during initialisation so that we don't leak information to the guest. Signed-off-by: Kevin Wolf <[email protected]> Reviewed-by: Markus Armbruster <[email protected]>
c925400ba83bd57bf560e071f400012248f1644a
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/c925400ba83bd57bf560e071f400012248f1644a
2011-07-05 11:23:43+02:00
fix cpu_cc_src and cpu_cc_src2 corruption in udivx and sdivx udivx and sdvix don't modify condition flags, so they shall not overwrite cpu_cc_* Signed-off-by: Artyom Tarasenko <[email protected]> Signed-off-by: Blue Swirl <[email protected]>
8e91ed308062e742610e4cfdfd4a09bc045ead45
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/8e91ed308062e742610e4cfdfd4a09bc045ead45
2011-07-01 21:28:00+00:00
Introduce a 'client_add' monitor command accepting an open FD Allow client connections for VNC and socket based character devices to be passed in over the monitor using SCM_RIGHTS. One intended usage scenario is to start QEMU with VNC on a UNIX domain socket. An unprivileged user which cannot access the UNIX domain socket, can then connect to QEMU's VNC server by passing an open FD to libvirt, which passes it onto QEMU. { "execute": "get_fd", "arguments": { "fdname": "myclient" } } { "return": {} } { "execute": "add_client", "arguments": { "protocol": "vnc", "fdname": "myclient", "skipauth": true } } { "return": {} } In this case 'protocol' can be 'vnc' or 'spice', or the name of a character device (eg from -chardev id=XXXX) The 'skipauth' parameter can be used to skip any configured VNC authentication scheme, which is useful if the mgmt layer talking to the monitor has already authenticated the client in another way. * console.h: Define 'vnc_display_add_client' method * monitor.c: Implement 'client_add' command * qemu-char.c, qemu-char.h: Add 'qemu_char_add_client' method * qerror.c, qerror.h: Add QERR_ADD_CLIENT_FAILED * qmp-commands.hx: Declare 'client_add' command * ui/vnc.c: Implement 'vnc_display_add_client' method Signed-off-by: Anthony Liguori <[email protected]>
13661089810d3e59931f3e80d7cb541b99af7071
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/13661089810d3e59931f3e80d7cb541b99af7071
2011-07-23 11:19:02-05:00
virtio-serial: Plug memory leak on qdev exit() virtio_serial_init() allocates the VirtIOSerialBus dynamically, but virtio_serial_exit() doesn't free it. Fix by getting rid of the allocation. Signed-off-by: Markus Armbruster <[email protected]> Signed-off-by: Amit Shah <[email protected]>
5e52e5f903b2648c59030637e1610b32e965d615
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/5e52e5f903b2648c59030637e1610b32e965d615
2011-05-27 15:50:55+05:30
scsi: Use 'SCSIRequest' directly Currently the SCSIRequest structure is abstracted away and cannot accessed directly from the driver. This requires the handler to do a lookup on an abstract 'tag' which identifies the SCSIRequest structure. With this patch the SCSIRequest structure is exposed to the driver. This allows use to use it directly as an argument to the SCSIDeviceInfo callback functions and remove the lookup. A new callback function 'alloc_req' is introduced matching 'free req'; unref'ing to free up resources after use is moved into the scsi_command_complete callbacks. This temporarily introduces a leak of requests that are cancelled, when they are removed from the queue and not from the driver. This is fixed later by introducing scsi_req_cancel. That patch in turn depends on this one, because the argument to scsi_req_cancel is a SCSIRequest. Signed-off-by: Hannes Reinecke <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
5c6c0e513600ba57c3e73b7151d3c0664438f7b5
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/5c6c0e513600ba57c3e73b7151d3c0664438f7b5
2011-05-26 12:14:15+02:00
softfloat: Add new flag for when denormal result is flushed to zero Add a new float_flag_output_denormal which is set when the result of a floating point operation would be denormal but is flushed to zero because we are in flush_to_zero mode. This is necessary because some architectures signal this condition as an underflow and others signal it as an inexact result. Signed-off-by: Peter Maydell <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
e6afc87f804abee7d0479be5e8e31c56d885fafb
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/e6afc87f804abee7d0479be5e8e31c56d885fafb
2011-05-23 22:39:35+02:00
Fix integer overflow in block migration bandwidth calculation block_mig_state.reads is an int, and multiplying by BLOCK_SIZE yielded a negative number, resulting in a negative bandwidth (running on a 32-bit machine). Change order to avoid. Signed-off-by: Avishay Traeger <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
155eb9aa09249874b4ff49e94c58595ad82d3abb
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/155eb9aa09249874b4ff49e94c58595ad82d3abb
2011-04-07 13:51:48+02:00
hw/sd.c: Don't complain about SDIO commands CMD52/CMD53 The SDIO specification introduces new commands 52 and 53. Handle as illegal command but do not complain on stderr, as SDIO-aware OSes (including Linux) may legitimately use these in their probing for presence of an SDIO card. Signed-off-by: Peter Maydell <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]>
39e594dbcd897849f2ca95b3310ea00fff29ea99
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/39e594dbcd897849f2ca95b3310ea00fff29ea99
2011-05-22 22:31:45+01:00
KVM, MCE, unpoison memory address across reboot In Linux kernel HWPoison processing implementation, the virtual address in processes mapping the error physical memory page is marked as HWPoison. So that, the further accessing to the virtual address will kill corresponding processes with SIGBUS. If the error physical memory page is used by a KVM guest, the SIGBUS will be sent to QEMU, and QEMU will simulate a MCE to report that memory error to the guest OS. If the guest OS can not recover from the error (for example, the page is accessed by kernel code), guest OS will reboot the system. But because the underlying host virtual address backing the guest physical memory is still poisoned, if the guest system accesses the corresponding guest physical memory even after rebooting, the SIGBUS will still be sent to QEMU and MCE will be simulated. That is, guest system can not recover via rebooting. In fact, across rebooting, the contents of guest physical memory page need not to be kept. We can allocate a new host physical page to back the corresponding guest physical address. This patch fixes this issue in QEMU-KVM via calling qemu_ram_remap() to clear the corresponding page table entry, so that make it possible to allocate a new page to recover the issue. [ Jan: rebasing and tiny cleanups] Signed-off-by: Huang Ying <[email protected]> Signed-off-by: Jan Kiszka <[email protected]> Signed-off-by: Marcelo Tosatti <[email protected]>
3c85e74fbf9e5a39d8d13ef91a5f3dd91f0bc8a8
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/3c85e74fbf9e5a39d8d13ef91a5f3dd91f0bc8a8
2011-03-15 01:19:06-03:00
exit if -drive specified is invalid instead of ignoring the "wrong" -drive This fixes the problem when qemu continues even if -drive specification is somehow invalid, resulting in a mess. Applicable for both current master and for stable-0.14 (and the same issue exist 0.13 and 0.12 too). The prob can actually be seriuos: when you start guest with two drives and make an error in the specification of one of them, and the guest has something like a raid array on the two drives, guest may start failing that array or kick "missing" drives which may result in a mess - this is what actually happened to me, I did't want a resync at all, and a resync resulted in re-writing (and allocating) a 4TB virtual drive I used for testing, which in turn resulted in my filesystem filling up and whole thing failing badly. Yes it was just testing VM, I experimented with larger raid arrays, but the end result was quite, well, unexpected. Signed-off-by: Michael Tokarev <[email protected]> Acked-by: Jes Sorensen <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
e2982c3a27ab4c0879e61de3c9c57b838f7d0966
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/e2982c3a27ab4c0879e61de3c9c57b838f7d0966
2011-04-07 13:51:48+02:00
vnc: Fix fatal crash with vnc reverse mode Reverse mode is unusable: qemu -vnc localhost:5500,reverse crashes in vnc_refresh_server_surface because some pointers are NULL. Fix this by calling vnc_dpy_resize (which initializes these pointers) before calling vnc_refresh. Cc: Anthony Liguori <[email protected]> Signed-off-by: Stefan Weil <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
5db8378a7710df7899544004967597eb395418c2
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/5db8378a7710df7899544004967597eb395418c2
2011-02-23 16:28:29-06:00
s390: Fix memory leak Signed-off-by: Stefan Weil <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
9f953ca0b8ae71f4ea8112a3aac36454a2c4b907
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/9f953ca0b8ae71f4ea8112a3aac36454a2c4b907
2011-02-20 18:23:07+01:00
pci: Fix memory leak Signed-off-by: Stefan Weil <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
386bbf45720b00496d5b9f9137359801c4e7ac0e
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/386bbf45720b00496d5b9f9137359801c4e7ac0e
2011-02-20 18:23:00+01:00
Prevent abortion on multiple VCPU kicks If we call qemu_cpu_kick more than once before the target was able to process the signal, pthread_kill will fail, and qemu will abort. Prevent this by avoiding the redundant signal. This logic can be found in qemu-kvm as well. Signed-off-by: Jan Kiszka <[email protected]> Signed-off-by: Marcelo Tosatti <[email protected]>
aa2c364b4cf2fae4d9c8acf53ee4436ed533902d
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/aa2c364b4cf2fae4d9c8acf53ee4436ed533902d
2011-02-14 12:39:44-02:00
blockdev: Fix drive_del not to crash when drive is not in use Watch this: (qemu) drive_add 0 if=none,file=tmp.img OK (qemu) info block none0: type=hd removable=0 file=tmp.img ro=0 drv=raw encrypted=0 (qemu) drive_del none0 Segmentation fault (core dumped) do_drive_del()'s code to clean up the pointer from a qdev using the drive back to the drive needs to check whether such a device exists. Signed-off-by: Markus Armbruster <[email protected]> Reviewed-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
850ec1133bf0f78ff19402cfd5d77eea376599a9
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/850ec1133bf0f78ff19402cfd5d77eea376599a9
2011-01-24 16:49:50+01:00
kvm: Consolidate must-have capability checks Instead of splattering the code with #ifdefs and runtime checks for capabilities we cannot work without anyway, provide central test infrastructure for verifying their availability both at build and runtime. Signed-off-by: Jan Kiszka <[email protected]> Signed-off-by: Marcelo Tosatti <[email protected]>
94a8d39afd8ccfdbf578af04c3385fdb5f545af1
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/94a8d39afd8ccfdbf578af04c3385fdb5f545af1
2011-01-23 02:27:22-02:00
target-arm: Restore IT bits when resuming after an exception We were not correctly restoring the IT bits when resuming execution after taking an unexpected exception in the middle of an IT block. Fix this by tracking them along with PC changes and restoring in gen_pc_load(). This fixes bug https://bugs.launchpad.net/qemu/+bug/581335 Signed-off-by: Peter Maydell <[email protected]> Reviewed-by: Aurelien Jarno <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
e12ce78d4aa05ccf80d6a843a9227042647db39d
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/e12ce78d4aa05ccf80d6a843a9227042647db39d
2011-01-14 20:39:19+01:00
target-mips: fix translation of MT instructions The translation of dmt/emt/dvpe/evpe was doing the moral equivalent of: int x; ... /* no initialization of x */ x = f (x); which confused later bits of TCG rather badly, leading to crashes. Fix the helpers to only return results (those instructions have no inputs), and fix the translation code accordingly. Signed-off-by: Nathan Froyd <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
9ed5726c043958359b0f1fa44ab3e4f25f9d9a47
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/9ed5726c043958359b0f1fa44ab3e4f25f9d9a47
2010-12-22 11:14:10+01:00
Add support for generating a systemtap tapset static probes This introduces generation of a qemu.stp/qemu-system-XXX.stp files which provides tapsets with friendly names for static probes & their arguments. Instead of probe process("qemu").mark("qemu_malloc") { printf("Malloc %d %p\n", $arg1, $arg2); } It is now possible todo probe qemu.system.i386.qemu_malloc { printf("Malloc %d %p\n", size, ptr); } There is one tapset defined per target arch, for both user and system emulators. * Makefile.target: Generate stp files for each target * tracetool: Support for generating systemtap tapsets * configure: Check for whether systemtap is available with the DTrace backend Reviewed-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Daniel P. Berrange <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
c276b17da65b7ff01627722a1abf2b7a684c8fd8
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/c276b17da65b7ff01627722a1abf2b7a684c8fd8
2010-11-21 09:16:56-06:00
intel-hda: fix codec addressing. The HDA bus supports up to 15 codecs, with addresses 0 ... 14. We get that wrong in two places: * When handing out addresses we accept address 15 as valid. * The bitmasks for two registers (WAKEEN and STATESTS) don't have bit 14 set. This patch fixes it. [ v2: codestyle: add braces ] Signed-off-by: Gerd Hoffmann <[email protected]> Signed-off-by: malc <[email protected]>
df0db2212d86e98c41774600c44cc960ddc2b68c
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/df0db2212d86e98c41774600c44cc960ddc2b68c
2010-11-09 19:32:59+03:00
seabios: Update to 0.6.1 - 0ff9051 Update version to 0.6.1 - 9c000e6 Support Samsung SE-S084 USB DVD drive (and probably many others) - eebe949 pciinit: remove unused variable, old_addr, in pci_set_io_region_addr(). - 06644f4 Minor - indentation change to jpeg.c. - 2dcd9fa Enhance tools/readserial.py to support reading from a pipe. - 7ce09ae Make tools/transdump.py more resilient to unknown input. - 6039fc5 Update qemu_cfg_read to use "rep insb". - 9a01a9c Only show bootsplash during boot menu. - 5feb83c add write support to virtio-blk - 22f6378 Don't try to talk to APIC on 486 - e2074bf Add ACPI SSDT/DSDT support for CPU hotplug. - eb6dc78 Add additional debug status messages to bootsplash code. - c8e4e88 Allow qemu to use bootsplash code via fwcfg interface. - 597040d Add tools/trandump.py tool for converting hexdump() output. - 48f5f8b Default bootsplash on (for coreboot users). - 8d85eb1 Autodetect video mode based on bootsplash jpeg dimensions. - b2b9d4a Rename "decdata" to "jpeg" in bootsplash - to be consistent with jpeg.c. - bbc4722 Breakup jpeg_decode into parsing and displaying phases. - 2976dd4 Avoid using BSS variables in jpeg.c. - cc9e1bf Add FUNC16() helper macro for converting a 16bit func to a segoff_s. - b4525a0 Handle unaligned sizes in iomemcpy(). - 0e27e19 Cleanup bootsplash vesa signature detection. - cadaf0e Be sure to disable bootsplash on all BIOS boot cases. - 2641186 Add call16_int10 helper to bootsplash.c. - 6dc76f4 Don't do "double buffering" in bootsplash code. - 227dc3e Check that malloc succeeds in bootsplash code. - a576c9c Bootsplash fixes and cleanups. - 9fd4851 Minor - clarify bit logic in mptable.c. - abf31d3 Fix integer truncating bug in calc_future_timer(). - 1d5c333 seabios: pciinit: fix 64bit bar initilization. - ae6924d Minor - introduce GDT_GRANLIMIT macro. - 0f78889 Avoid code addresses >64K in big real mode. - aec19c9 seabios: smm: move out piix4 specific smram logic to dev-i440fx.c - 08328e7 seabios: shadow: make device finding more generic. - 4c67f90 seabios: acpi: clean up of finding pm device. - fe54a53 seabios: acpi: split out piix4 pm logic. - d06afb4 seabios: acpi: move acpi definitions to acpi.h from acpi.c - 2f54bb4 seabios: acpi: move out endian conversion helper function. - 23173ac seabios: pci: introduce helper function to find device from table and initialize it. Signed-off-by: Anthony Liguori <[email protected]>
758c309f0a5cb52441a1ee015566cf9cd96fa933
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/758c309f0a5cb52441a1ee015566cf9cd96fa933
2010-10-25 16:43:41-05:00
trace: Don't strip lines containing '#' arbitrarily Although comment lines must be skipped, the '#' character can occur in valid format strings. Be more careful when checking for comments. Leave comments at the end of the line where they will not interfere with other processing. Signed-off-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Blue Swirl <[email protected]>
5eb5527b1eaec0955a91f8532424bb45611b7b0c
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/5eb5527b1eaec0955a91f8532424bb45611b7b0c
2010-10-09 08:16:50+00:00
isapc: fix segfault. https://bugs.launchpad.net/bugs/611646 reports that ./i386-softmmu/qemu -M isapc segfaults. This patch fixes the segfault introduced by f885f1eaa8711c06033ceb1599e3750fb37c306f It's because i440fx_state in pc_init1() isn't initialized. > Core was generated by `./i386-softmmu/qemu -M isapc'. > Program terminated with signal 11, Segmentation fault. > [New process 19686] > at qemu/hw/piix_pci.c:136 > (gdb) where > at qemu/hw/piix_pci.c:136 > boot_device=0x7fffe1f5b040 "cad", kernel_filename=0x0, > kernel_cmdline=0x6469bf "", initrd_filename=0x0, > cpu_model=0x654d10 "486", pci_enabled=0) > at qemu/hw/pc_piix.c:178 > boot_device=0x7fffe1f5b040 "cad", kernel_filename=0x0, > kernel_cmdline=0x6469bf "", initrd_filename=0x0, cpu_model=0x654d10 "486") > at qemu/hw/pc_piix.c:207 > envp=0x7fffe1f5b188) > at qemu/vl.c:2871 Signed-off-by: Markus Armbruster <[email protected]> Signed-off-by: Isaku Yamahata <[email protected]> Signed-off-by: Blue Swirl <[email protected]>
02a89b219039621c940863aa5a9da4fec81a1546
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/02a89b219039621c940863aa5a9da4fec81a1546
2010-08-28 08:50:40+00:00
migration: Accept 'cont' only after successful incoming migration When a 'cont' is issued on a VM that's just waiting for an incoming migration, the VM reboots and boots into the guest, possibly corrupting its storage since it could be shared with another VM running elsewhere. Ensure that a VM started with '-incoming' is only run when an incoming migration successfully completes. A new qerror, QERR_MIGRATION_EXPECTED, is added to signal that 'cont' failed due to no incoming migration has been attempted yet. Reported-by: Laine Stump <[email protected]> Signed-off-by: Amit Shah <[email protected]> Reviewed-by: Luiz Capitulino <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
8e84865e54cb66fd7b57bb18c312ad3d56b6e276
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/8e84865e54cb66fd7b57bb18c312ad3d56b6e276
2010-07-30 23:14:08+02:00
qcow2/vdi: Change check to distinguish error cases This distinguishes between harmless leaks and real corruption. Hopefully users better understand what qemu-img check wants to tell them. Signed-off-by: Kevin Wolf <[email protected]>
9ac228e02cf16202547e7025ef300369e0db7781
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/9ac228e02cf16202547e7025ef300369e0db7781
2010-07-06 17:05:49+02:00
lsi: Fix value overflow in request tag processing This fixes a mismerge of 64d564094cac5f72eeaeb950c442b773a00d3586 (wrong patch version): We need to mask the tag value properly to obtain its device ID. Signed-off-by: Jan Kiszka <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
259d5577ae546de27e25a40710f81aa031660de8
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/259d5577ae546de27e25a40710f81aa031660de8
2010-05-22 15:32:32+02:00
tcp/mips: Change TCG_AREG0 (fp -> s0) Register fp (frame pointer) is a bad choice for compilations without optimisation, because the compiler makes heavy use of this register (so the resulting code crashes). Register s0 had been used for TCG_AREG1 in earlier releases, but was no longer used and is now free for TCG_AREG0. The resulting code works for compilations without optimisation (tested with qemu mips in qemu mips on x86 host). Signed-off-by: Stefan Weil <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
60bf84cf4ce277e1212929f35674796888a681ce
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/60bf84cf4ce277e1212929f35674796888a681ce
2010-04-14 00:59:42+02:00
qcow2: Remove request from in-flight list after error If we complete a request with a failure we need to remove it from the list of requests that are in flight. If we don't do it, the next time the same AIOCB is used for a cluster allocation it will create a loop in the list and qemu will hang in an endless loop. Signed-off-by: Kevin Wolf <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
c644db3d53c90ef569ff5a90e9f821b88e7123bb
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/c644db3d53c90ef569ff5a90e9f821b88e7123bb
2010-04-10 01:25:30+02:00
Fix warning on OpenBSD /src/qemu/net.c: In function `net_check_clients': /src/qemu/net.c:1287: warning: `has_nic' might be used uninitialized in this function /src/qemu/net.c:1287: warning: `has_host_dev' might be used uninitialized in this function Signed-off-by: Blue Swirl <[email protected]>
64e69d50a394a48de7607f178d53c192443f9066
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/64e69d50a394a48de7607f178d53c192443f9066
2010-02-20 08:20:18+00:00
QMP: Don't leak on connection close QMP's chardev event callback doesn't call json_message_parser_destroy() on CHR_EVENT_CLOSED. As the call to json_message_parser_init() on CHR_EVENT_OPENED allocates memory, we'are leaking on close. Fix that by just calling json_message_parser_destroy() on CHR_EVENT_CLOSED. Signed-off-by: Luiz Capitulino <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
47116d1c90cdac94cb9da270320dcf0d5ce1cfe2
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/47116d1c90cdac94cb9da270320dcf0d5ce1cfe2
2010-02-10 13:46:17-06:00
scsi-disk: restruct emulation: VERIFY Move VERIFY emulation from scsi_send_command() to scsi_disk_emulate_command(). Signed-off-by: Gerd Hoffmann <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
88f8a5ed0f4f1454ba53661fed0f676180e9be32
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/88f8a5ed0f4f1454ba53661fed0f676180e9be32
2009-12-03 09:41:40-06:00
Properly escape QDECREF macro arguments QDECREF does not properly escape the macro arguments which can lead to unexpected syntax errors. Signed-off-by: Anthony Liguori <[email protected]>
c99ca93142391a2461afbe07926fa50f1c8f4d9a
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/c99ca93142391a2461afbe07926fa50f1c8f4d9a
2009-11-17 08:49:38-06:00
target-arm: fix TANDC and TORC instructions Uninitialized register was used instead of proper TCG variable. Signed-off-by: Filip Navara <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
15bb4eac129931329e3b4d1493331b780d2a92f4
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/15bb4eac129931329e3b4d1493331b780d2a92f4
2009-10-17 23:52:17+02:00
Check return value of qdev_init() But do so only where it may actually fail. Leave the rest for the next commit. Patchworks-ID: 35167 Signed-off-by: Markus Armbruster <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
33e66b86d89040f0a9e99aa53deb74ce8936a649
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/33e66b86d89040f0a9e99aa53deb74ce8936a649
2009-10-07 08:54:54-05:00
fix use after free We are using the vs structure when it was just freed. Classic use after free, fix it. Signed-off-by: Glauber Costa <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
5d95ac5b6475c3b6b0e36b5f04de49bba88b3e59
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/5d95ac5b6475c3b6b0e36b5f04de49bba88b3e59
2009-09-25 18:26:59+02:00
target-arm: allow modifying vfp fpexc en bit only All other bits except for the EN in the VFP FPEXC register are defined as subarchitecture specific and real functionality for any of the other bits has not been implemented in QEMU. However, current code allows modifying all bits in the VFP FPEXC register leading to problems when guest code is writing 1's to the subarchitecture specific bits and checking whether the bits stay up to verify the existence of functionality which in fact does not exist in QEMU. This patch has been revised to include the same behavior change in the gdb register write function. Signed-off-by: Juha Riihimäki <[email protected]> Acked-by: Laurent Desnogues <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
71b3c3dea21a310c5df7406cdc1cffc64cf14c18
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/71b3c3dea21a310c5df7406cdc1cffc64cf14c18
2009-10-27 09:46:26+01:00
microblaze: Trap if QEMU finds an unknown insns. If PVR settings enable illegal insn trap, trap when QEMU finds an insn it knows nothing about. Signed-off-by: Edgar E. Iglesias <[email protected]>
02b33596d09bafed5d58366403a2d369f0d1047e
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/02b33596d09bafed5d58366403a2d369f0d1047e
2009-09-11 10:38:31+02:00
gdb-xml: fix hacks in powerpc register numbering The powerpc xml files contained a hack--an empty, non-existent register--for getting the register numbers to line up for newer (XML-aware) and older (non-XML-aware) GDB. While this hack worked in some cases, it didn't work in all cases, notably when the user used `finish' or `continue': GDB would attempt to read the non-existent register and QEMU would complain. This patch fixes things up properly. Instead of inserting a fake register, we explicitly declare the floating-point and SPE registers to start at 71. This action accomplishes the same thing as the nasty hack, except that now GDB never tries to fetch the non-existant register 70. Signed-off-by: Nathan Froyd <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
22555301adabad6ef2401a7f02bfc2337044ddbd
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/22555301adabad6ef2401a7f02bfc2337044ddbd
2009-07-12 23:42:05+02:00
sparc64: trap handling corrections On Sun, Jul 12, 2009 at 12:09 PM, Blue Swirl<[email protected]> wrote: > On 7/12/09, Igor Kovalenko <[email protected]> wrote: >> Good trap handling is required to process interrupts. >>  This patch fixes the following: >> >>  - sparc64 has no wim register >>  - sparc64 has no psret register, use IE bit of pstate >>   extract IE checking code to cpu_interrupts_enabled >>  - alternate globals are not available if cpu has GL feature >>   in this case bit AG of pstate is constant zero >>  - write to pstate must actually write pstate >>   even if cpu has GL feature >> >>  Also timer interrupt is handled using do_interrupt. > > A bit too much for one patch. Please also remove the code instead of > commenting out. I now excluded timer interrupt related part. To my mind other changes are essentially tied together. > PUT_PSR for Sparc64 needs CC_OP = CC_OP_FLAGS; like Sparc32. Fixed, please find attached the updated version. -- Kind regards, Igor V. Kovalenko
5210977a8511fc0c4a8a1a68c01fa3b65e29edc0
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/5210977a8511fc0c4a8a1a68c01fa3b65e29edc0
2009-07-12 08:46:54+00:00
qemu-io: use BDRV_O_FILE to implement the growable open option Instead of doing our own check for protocols which fails because raw isn't formally a protocol but special cased in find_protocol specify the BDRV_O_FILE option to use the same code as bdrv_file_open does. While we're at it also add the missing documentation for -g to the main qemu-io help string. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
1db6947dafa7f33a309130ccbf461748adac6da0
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/1db6947dafa7f33a309130ccbf461748adac6da0
2009-07-16 17:28:50-05:00
Avoid gcc 4.4 warning about uninitialized field Signed-off-by: Blue Swirl <[email protected]>
c7085da7266120a8594f8fddcbf3b6839a8eda58
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/c7085da7266120a8594f8fddcbf3b6839a8eda58
2009-06-13 13:20:25+00:00
Change RTC time drift IRQ re-injection (Gleb Natapov) Currently IRQ are reinjected as soon as they are acknowledged to the RTC, but Windows sometimes do acknowledgement in a loop with global interrupt disabled waiting for interrupt to be cleared and it does not mask RTC vector in PIC/APIC while doing this. In such situation interrupt injection always fails and RTC interrupt is never cleared. Instead of reinjecting coalesced IRQs on acknowledgement the patch below reinjects them by accelerating RTC clock a bit. This way RTC interrupt is not constantly raced after coalesced interrupt. Signed-off-by: Gleb Natapov <[email protected]> Signed-off-by: Anthony Liguori <[email protected]> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7231 c046a42c-6fe2-441c-8c8c-71466251a162
93b665693dd4afd32c89b0d5ee2b407b26a7a3bc
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/93b665693dd4afd32c89b0d5ee2b407b26a7a3bc
2009-04-22 20:20:22+00:00
kvm: add error message for when SMP is requested Right now, if you try e.g. '-smp 2' you just get 'failed to initialize KVM'. Signed-off-by: Mark McLoughlin <[email protected]>
9f8fd69460b30bc3817deabd1d76455248b76da2
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/9f8fd69460b30bc3817deabd1d76455248b76da2
2009-05-20 09:24:23-05:00
Fix race condition on access to env->interrupt_request env->interrupt_request is accessed as the bit level from both main code and signal handler, making a race condition possible even on CISC CPU. This causes freeze of QEMU under high load when running the dyntick clock. The patch below move the bit corresponding to CPU_INTERRUPT_EXIT in a separate variable, declared as volatile sig_atomic_t, so it should be work even on RISC CPU. We may want to move the cpu_interrupt(env, CPU_INTERRUPT_EXIT) case in its own function and get rid of CPU_INTERRUPT_EXIT. That can be done later, I wanted to keep the patch short for easier review. Signed-off-by: Aurelien Jarno <[email protected]> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6728 c046a42c-6fe2-441c-8c8c-71466251a162
be214e6c0557139ffa5551f77e339c07495bfec3
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/be214e6c0557139ffa5551f77e339c07495bfec3
2009-03-06 21:48:00+00:00
Fix invalid #if in vnc.c when debugging is enabled (Alexander Graf) While running with debugging enabled, I found an #if testing for an undefined value, not defined(value). This patch fixes that. Signed-off-by: Alexander Graf <[email protected]> Signed-off-by: Anthony Liguori <[email protected]> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6495 c046a42c-6fe2-441c-8c8c-71466251a162
26f8b9cc87de6646344fa4e2670eb14c9ceb73f9
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/26f8b9cc87de6646344fa4e2670eb14c9ceb73f9
2009-02-02 15:58:38+00:00
cuda: fix crash on Windows Signed-off-by: Aurelien Jarno <[email protected]> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6364 c046a42c-6fe2-441c-8c8c-71466251a162
9c554c1c0b01642c39232489cef8301a7858824d
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/9c554c1c0b01642c39232489cef8301a7858824d
2009-01-18 12:16:26+00:00
target-i386: Fix jmp im on x86_64 when executing 32-bit code When running grub-install (32-bit) on an x86_64 Linux system in qemu, it hangs on a pagefault forever, because an integer overflow occurs on the IP on "jmp im". This patch masks overflows for 32 bit IPs on a 64 bit system, just like it is done for 16 bit IPs already. Using this patch, x86_64 openSUSE installation works again. Signed-off-by: Alexander Graf <[email protected]> Signed-off-by: Kevin Wolf <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5963 c046a42c-6fe2-441c-8c8c-71466251a162
32938e127f50a40844a0fb9c5abb8691aeeccf7e
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/32938e127f50a40844a0fb9c5abb8691aeeccf7e
2008-12-10 15:02:16+00:00
Use libgcc __clear_cache to clean icache, when available. Calling the clear cache syscall directly generates an illegal instruction on some (armv4) kernels. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5843 c046a42c-6fe2-441c-8c8c-71466251a162
3233f0d463d299be89e2672928fc215dc99c2c71
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/3233f0d463d299be89e2672928fc215dc99c2c71
2008-12-01 02:02:37+00:00
SH4: Privilege check for instructions This patch adds check for all SH4 instructions which are executed only in privileged mode. (Shin-ichiro KAWASAKI) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5224 c046a42c-6fe2-441c-8c8c-71466251a162
fe25591e7b98386cce2c9ec8a8878947b50e3741
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/fe25591e7b98386cce2c9ec8a8878947b50e3741
2008-09-15 08:49:15+00:00
Fix TCG relocation bug (exposed by fault after brcond op). Add FIXME for annother potential bug. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3968 c046a42c-6fe2-441c-8c8c-71466251a162
2ba1eeb62c29d23238b95dc7e9ade3444b49f0a1
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/2ba1eeb62c29d23238b95dc7e9ade3444b49f0a1
2008-02-10 02:41:15+00:00
Fix memory corruption: bdrv_read/write API has been changed to take nb_sectors instead of len in bytes but the fdc driver has never been fixed. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3532 c046a42c-6fe2-441c-8c8c-71466251a162
d6c1a327a94437f0ed74ba970b97fd962462bc77
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/d6c1a327a94437f0ed74ba970b97fd962462bc77
2007-11-04 17:17:08+00:00
Several corrections in the spitzkbd keymap (patch by Juergen Lock). Don't abort on illegal GPSR reads, instead only warn. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3324 c046a42c-6fe2-441c-8c8c-71466251a162
2b76bdc965ba7b4f27133cb345101d9535ddaa79
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/2b76bdc965ba7b4f27133cb345101d9535ddaa79
2007-10-04 19:41:17+00:00
Fix the bug introduced by subpage code preventing PC boot git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2898 c046a42c-6fe2-441c-8c8c-71466251a162
49e9fba27138adb4ca52385f6ecc63b0ff0d3546
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/49e9fba27138adb4ca52385f6ecc63b0ff0d3546
2007-05-30 17:25:06+00:00
Fix Qemu division by zero triggered by NetBSD git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2825 c046a42c-6fe2-441c-8c8c-71466251a162
31ade715088fa40976cdaf7bd4c01345ea8fda26
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/31ade715088fa40976cdaf7bd4c01345ea8fda26
2007-05-17 19:32:20+00:00
Fix Sparc lda/ldda/sta/stda asi handling, fault on misaligned register ldd/std and illegal cwp on wrpsr (Aurelien Jarno) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2568 c046a42c-6fe2-441c-8c8c-71466251a162
d4218d996d2274f4136b8bd22e946bf56f050c9e
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/d4218d996d2274f4136b8bd22e946bf56f050c9e
2007-04-01 15:15:36+00:00
Avoid buffer overflow when sending slirp packets. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1744 c046a42c-6fe2-441c-8c8c-71466251a162
d861b05ea30e6ac177de9b679da96194ebe21afc
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/d861b05ea30e6ac177de9b679da96194ebe21afc
2006-02-04 22:15:28+00:00
crypto: fix stack-buffer-overflow error ASAN complains about: ==8856==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffd8a1fe168 at pc 0x561136cb4451 bp 0x7ffd8a1fe130 sp 0x7ffd8a1fd8e0 READ of size 16 at 0x7ffd8a1fe168 thread T0 #0 0x561136cb4450 in __asan_memcpy (/home/elmarco/src/qq/build/tests/test-crypto-ivgen+0x110450) #1 0x561136d2a6a7 in qcrypto_ivgen_essiv_calculate /home/elmarco/src/qq/crypto/ivgen-essiv.c:83:5 #2 0x561136d29af8 in qcrypto_ivgen_calculate /home/elmarco/src/qq/crypto/ivgen.c:72:12 #3 0x561136d07c8e in test_ivgen /home/elmarco/src/qq/tests/test-crypto-ivgen.c:148:5 #4 0x7f77772c3b04 in test_case_run /home/elmarco/src/gnome/glib/builddir/../glib/gtestutils.c:2237 #5 0x7f77772c3ec4 in g_test_run_suite_internal /home/elmarco/src/gnome/glib/builddir/../glib/gtestutils.c:2321 #6 0x7f77772c3f6d in g_test_run_suite_internal /home/elmarco/src/gnome/glib/builddir/../glib/gtestutils.c:2333 #7 0x7f77772c3f6d in g_test_run_suite_internal /home/elmarco/src/gnome/glib/builddir/../glib/gtestutils.c:2333 #8 0x7f77772c3f6d in g_test_run_suite_internal /home/elmarco/src/gnome/glib/builddir/../glib/gtestutils.c:2333 #9 0x7f77772c4184 in g_test_run_suite /home/elmarco/src/gnome/glib/builddir/../glib/gtestutils.c:2408 #10 0x7f77772c2e0d in g_test_run /home/elmarco/src/gnome/glib/builddir/../glib/gtestutils.c:1674 #11 0x561136d0799b in main /home/elmarco/src/qq/tests/test-crypto-ivgen.c:173:12 #12 0x7f77756e6039 in __libc_start_main (/lib64/libc.so.6+0x21039) #13 0x561136c13d89 in _start (/home/elmarco/src/qq/build/tests/test-crypto-ivgen+0x6fd89) Address 0x7ffd8a1fe168 is located in stack of thread T0 at offset 40 in frame #0 0x561136d2a40f in qcrypto_ivgen_essiv_calculate /home/elmarco/src/qq/crypto/ivgen-essiv.c:76 This frame has 1 object(s): [32, 40) 'sector.addr' <== Memory access at offset 40 overflows this variable HINT: this may be a false positive if your program uses some custom stack unwind mechanism or swapcontext (longjmp and C++ exceptions *are* supported) SUMMARY: AddressSanitizer: stack-buffer-overflow (/home/elmarco/src/qq/build/tests/test-crypto-ivgen+0x110450) in __asan_memcpy Shadow bytes around the buggy address: 0x100031437bd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100031437be0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100031437bf0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100031437c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100031437c10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x100031437c20: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00[f3]f3 f3 0x100031437c30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100031437c40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100031437c50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100031437c60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100031437c70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb It looks like the rest of the code copes with ndata being larger than sizeof(sector), so limit the memcpy() range. Signed-off-by: Marc-André Lureau <[email protected]> Reviewed-by: Daniel P. Berrange <[email protected]> Message-Id: <[email protected]> Tested-by: Thomas Huth <[email protected]> Reviewed-by: Thomas Huth <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
83e33300a2342c5d0bf48474fdf8da22c22b4973
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/83e33300a2342c5d0bf48474fdf8da22c22b4973
2018-01-16 14:54:50+01:00
tests: fix check-qobject leak /public/qobject_is_equal_conversion: OK ================================================================= ==14396==ERROR: LeakSanitizer: detected memory leaks Direct leak of 56 byte(s) in 1 object(s) allocated from: #0 0x7f07682c5850 in malloc (/lib64/libasan.so.4+0xde850) #1 0x7f0767d12f0c in g_malloc ../glib/gmem.c:94 #2 0x7f0767d131cf in g_malloc_n ../glib/gmem.c:331 #3 0x562bd767371f in do_test_equality /home/elmarco/src/qq/tests/check-qobject.c:49 #4 0x562bd7674a35 in qobject_is_equal_dict_test /home/elmarco/src/qq/tests/check-qobject.c:267 #5 0x7f0767d37b04 in test_case_run ../glib/gtestutils.c:2237 #6 0x7f0767d37ec4 in g_test_run_suite_internal ../glib/gtestutils.c:2321 #7 0x7f0767d37f6d in g_test_run_suite_internal ../glib/gtestutils.c:2333 #8 0x7f0767d38184 in g_test_run_suite ../glib/gtestutils.c:2408 #9 0x7f0767d36e0d in g_test_run ../glib/gtestutils.c:1674 #10 0x562bd7674e75 in main /home/elmarco/src/qq/tests/check-qobject.c:327 #11 0x7f0766009039 in __libc_start_main (/lib64/libc.so.6+0x21039) Signed-off-by: Marc-André Lureau <[email protected]> Reviewed-by: Markus Armbruster <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
87c258cd1e1c10faaeee8016ab6c67de97d6b996
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/87c258cd1e1c10faaeee8016ab6c67de97d6b996
2018-01-16 14:54:49+01:00
nbd: Minimal structured read for client Minimal implementation: for structured error only error_report error message. Note that test 83 is now more verbose, because the implementation prints more warnings about unexpected communication errors; perhaps future patches should tone things down by using trace messages instead of traces, but the common case of successful communication is no noisier than before. Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]> Signed-off-by: Eric Blake <[email protected]> Message-Id: <[email protected]>
f140e3000371e67ff4e00df3213e2d576d9c91be
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/f140e3000371e67ff4e00df3213e2d576d9c91be
2017-10-30 21:48:41+01:00
tcg: Dynamically allocate TCGOps With no fixed array allocation, we can't overflow a buffer. This will be important as optimizations related to host vectors may expand the number of ops used. Use QTAILQ to link the ops together. Signed-off-by: Richard Henderson <[email protected]>
15fa08f8451babc88d733bd411d4c94976f9d0f8
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/15fa08f8451babc88d733bd411d4c94976f9d0f8
2017-12-29 12:43:39-08:00
qcow2: get rid of qcow2_backing_read1 routine Since bdrv_co_preadv does all neccessary checks including reading after the end of the backing file, avoid duplication of verification before bdrv_co_preadv call. Signed-off-by: Edgar Kaziakhmedov <[email protected]> Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]> Reviewed-by: Eric Blake <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
546a7dc40e8b8b6440a052e2b5cdfe9aadcaccf6
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/546a7dc40e8b8b6440a052e2b5cdfe9aadcaccf6
2017-12-22 15:03:41+01:00
acpi: change TPM TIS data conditions The device should be exposed if present. It shouldn't have an undefined version (or else backend init failed, and device should fail too). Finally, make the fields specific to TIS device model. Signed-off-by: Marc-André Lureau <[email protected]> Reviewed-by: Stefan Berger <[email protected]> Signed-off-by: Stefan Berger <[email protected]>
ff5ce21e1b959206f257967d6de2efa6f4e3d188
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/ff5ce21e1b959206f257967d6de2efa6f4e3d188
2017-12-14 23:39:15-05:00
e1000: Separate TSO and non-TSO contexts, fixing UDP TX corruption The device is supposed to maintain two distinct contexts for transmit offloads: one has parameters for both segmentation and checksum offload, the other only for checksum offload. The guest driver can send two context descriptors, one for each context (the TSE flag specifies which). Then the guest can refer to one or the other context in subsequent transmit data descriptors, depending on what offloads it wants applied to each packet. Currently the e1000 device stores just one context, and misinterprets the TSE flags in the context and data descriptors. This is often okay: Linux happens to send a fresh context descriptor before every data descriptor, so forgetting the other context doesn't matter. Windows does rely on separate contexts for TSO vs. non-TSO packets, but for mostly-TCP traffic the two contexts have identical TCP-specific offload parameters so confusing them doesn't matter. One case where this confusion matters is when a Windows guest sets up a TSO context for TCP and a non-TSO context for UDP, and then transmits both TCP and UDP traffic in parallel. The e1000 device sometimes ends up using TCP-specific parameters while doing checksum offload on a UDP datagram: it writes the checksum to offset 16 (the correct location for a TCP checksum), stomping on two bytes of UDP data, and leaving the wrong value in the actual UDP checksum field at offset 6. (Even worse, the host network stack may then recompute the UDP checksum, "correcting" it to match the corrupt data before sending it out a physical interface.) Correct this by tracking the TSO context independently of the non-TSO context, and selecting the appropriate context based on the TSE flag in each transmit data descriptor. Signed-off-by: Ed Swierk <[email protected]> Signed-off-by: Jason Wang <[email protected]>
d62644b46a86bce2c069af7122501e3ffd349d3c
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/d62644b46a86bce2c069af7122501e3ffd349d3c
2017-12-22 09:53:50+08:00
s390x/tcg: ASI/ASGI/ALSI/ALSGI are atomic with Interlocked-acccess facility 1 The semantics of ASI/ASGI/ALSI/ALSGI changed. Let's implement them just like LOAD AND ADD, so they are atomic. Emulate old behavior. This fixes random crashes when booting a Linux kernel compiled for z196+ with SMP + MTTCG. Signed-off-by: David Hildenbrand <[email protected]> Message-Id: <[email protected]> Signed-off-by: Cornelia Huck <[email protected]>
0e9383bca8b92c4b457a46af0e351b7712984622
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/0e9383bca8b92c4b457a46af0e351b7712984622
2017-12-14 17:56:54+01:00
qga: replace GetIfEntry with GetIfEntry2 for interface stats The data obtained by GetIfEntry is 32 bits, and it may overflow. Thus using GetIfEntry2 instead of GetIfEntry. Signed-off-by: ZhiPeng Lu <[email protected]> *avoid CamelCase variable names *update field names for MIB_IFROW -> MIB_IF_ROW2 *dynamically probe for GetIfIndex2 to deal with older OSs *check return value from get_interface_index Signed-off-by: Michael Roth <[email protected]>
df83eabd5245828cbca32060aa191d8b03bc5d50
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/df83eabd5245828cbca32060aa191d8b03bc5d50
2017-11-20 14:45:31-06:00
s390x/tcg: fix DIAG 308 with > 1 VCPU (MTTCG) Currently, multi threaded TCG with > 1 VCPU gets stuck during IPL, when the bios tries to switch to the loaded kernel via DIAG 308. As run_on_cpu() is used, we run into a deadlock after handling the reset. We need the iolock (just like KVM). Signed-off-by: David Hildenbrand <[email protected]> Message-Id: <[email protected]> Reviewed-by: Thomas Huth <[email protected]> Signed-off-by: Cornelia Huck <[email protected]>
7337c6eb98786372cdbfe7ebe7affbd166fdc7ca
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/7337c6eb98786372cdbfe7ebe7affbd166fdc7ca
2017-11-20 09:31:46+01:00
tpm_tis: Return TPM_VERSION_UNSPEC in case of BE failure In case the backend has a failure, such as the tpm_emulator's CMD_INIT failing, the TIS goes into failure mode and does not respond to reads or writes to MMIO registers. In this case we need to prevent the ACPI table from being added and the straight-forward way is to indicate that there's no known TPM version being used. Signed-off-by: Stefan Berger <[email protected]> Reviewed-by: Marc-André Lureau <[email protected]>
ad4aca69bbd40663ca93a3eb1d8042c023b9b407
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/ad4aca69bbd40663ca93a3eb1d8042c023b9b407
2017-11-15 06:47:35-05:00
exec: Do not resolve subpage in mru_section This fixes a crash caused by picking the wrong memory region in address_space_lookup_region seen with client code accessing a device model that uses alias memory regions. The expensive part of address_space_lookup_region anyway is phys_page_find; performance-wise it is okay to repeat the subsequent subpage lookup. Signed-off-by: BALATON Zoltan <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
07c114bbf389c09c99fd451b0b0fddf88962f512
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/07c114bbf389c09c99fd451b0b0fddf88962f512
2017-11-15 15:11:16+01:00
nbd-client: Stricter enforcing of structured reply spec Ensure that the server is not sending unexpected chunk lengths for either the NONE or the OFFSET_DATA chunk, nor unexpected hole length for OFFSET_HOLE. This will flag any server as broken that responds to a zero-length read with an OFFSET_DATA (what our server currently does, but that's about to be fixed) or with OFFSET_HOLE, even though we previously fixed our client to never be able to send such a request over the wire. Signed-off-by: Eric Blake <[email protected]> Message-Id: <[email protected]> Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]>
b4176cb314995ad225d6c2b531568801feb04f3f
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/b4176cb314995ad225d6c2b531568801feb04f3f
2017-11-09 10:22:26-06:00
block: Align block status requests Any device that has request_alignment greater than 512 should be unable to report status at a finer granularity; it may also be simpler for such devices to be guaranteed that the block layer has rounded things out to the granularity boundary (the way the block layer already rounds all other I/O out). Besides, getting the code correct for super-sector alignment also benefits us for the fact that our public interface now has byte granularity, even though none of our drivers have byte-level callbacks. Add an assertion in blkdebug that proves that the block layer never requests status of unaligned sections, similar to what it does on other requests (while still keeping the generic helper in place for when future patches add a throttle driver). Note that iotest 177 already covers this (it would fail if you use just the blkdebug.c hunk without the io.c changes). Meanwhile, we can drop assertions in callers that no longer have to pass in sector-aligned addresses. There is a mid-function scope added for 'count' and 'longret', for a couple of reasons: first, an upcoming patch will add an 'if' statement that checks whether a driver has an old- or new-style callback, and can conveniently use the same scope for less indentation churn at that time. Second, since we are trying to get rid of sector-based computations, wrapping things in a scope makes it easier to group and see what will be deleted in a final cleanup patch once all drivers have been converted to the new-style callback. Signed-off-by: Eric Blake <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
efa6e2ed643c770153eeacace410c06f15360cd9
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/efa6e2ed643c770153eeacace410c06f15360cd9
2017-10-26 14:45:57+02:00
spapr_cpu_core: rewrite machine type sanity check This makes the code easier to understand and it is consistent with what we already do for PHBs. Signed-off-by: Greg Kurz <[email protected]> Signed-off-by: David Gibson <[email protected]>
e7cca3e94f7595b7b5a493a87146e782831611d7
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/e7cca3e94f7595b7b5a493a87146e782831611d7
2017-10-17 10:34:01+11:00
pc: make sure that plugged CPUs are of the same type heterogeneous cpus are not supported and hotplugging different cpu model crashes QEMU: qemu-system-x86_64 -cpu qemu64 -smp 1,maxcpus=2 (qemu) device_add host-x86_64-cpu,socket-id=1,core-id=0,thread-id=0,id=foo (qemu) info cpus error: failed to get MSR 0x38d qemu-system-x86_64: target/i386/kvm.c:2121: kvm_get_msrs: Assertion `ret == cpu->kvm_msr_buf->nmsrs' failed. Aborted (core dumped) Gracefully fail hotplug process in case of user mistake. Reported-by: Greg Kurz <[email protected]> Signed-off-by: Igor Mammedov <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
6970c5ff13a47df7ce41b901a4459c587a03d16b
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/6970c5ff13a47df7ce41b901a4459c587a03d16b
2017-10-12 12:10:38+02:00
qom: update doc comment for type_register[_static]() type_register()/type_register_static() functions in current impl. can't fail returning 0, also none of the users check for error so update doc comment to reflect current behaviour. Suggested-by: Eduardo Habkost <[email protected]> Signed-off-by: Igor Mammedov <[email protected]> Message-Id: <[email protected]> Reviewed-by: Eduardo Habkost <[email protected]> Signed-off-by: Eduardo Habkost <[email protected]>
31b93521924dddb22621f8dba27cdce802406eb3
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/31b93521924dddb22621f8dba27cdce802406eb3
2017-10-09 23:21:52-03:00
qemu-iotests: get rid of $iam The variable is almost unused, and one of the two uses is actually uninitialized. Signed-off-by: Paolo Bonzini <[email protected]> Reviewed-by: Eric Blake <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
4e670492efe29b809f5b1d88eee2adcdf70d8d13
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/4e670492efe29b809f5b1d88eee2adcdf70d8d13
2017-10-06 16:28:58+02:00
hw/s390x: Mark the "sclpquiesce" device with user_creatable = false The "sclpquiesce" device is just an internal device that should not be created by the user directly. Though it currently does not seem to cause any obvious trouble when the user instantiates an additional device, let's better mark it with user_creatable = false to avoid unexpected behavior, e.g. because the quiesce notifier gets registered multiple times. Signed-off-by: Thomas Huth <[email protected]> Message-Id: <[email protected]> Reviewed-by: Halil Pasic <[email protected]> Reviewed-by: Claudio Imbrenda <[email protected]> Signed-off-by: Cornelia Huck <[email protected]>
b923ab3112ed5ab47c2ff35776f17ab54c60d651
qemu
devign
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/b923ab3112ed5ab47c2ff35776f17ab54c60d651
2017-10-06 10:53:02+02:00