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
pxa27x: Reduce size of keyboard matrix mapping The row and column values use only a very limited range (-1 ... 7), so a byte value is sufficient. Signed-off-by: Stefan Weil <[email protected]> Reviewed-by: Peter Maydell <[email protected]> Signed-off-by: Michael Tokarev <[email protected]>
f57d6693e1ad994374927d7ab7b151bb28f0cb37
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/f57d6693e1ad994374927d7ab7b151bb28f0cb37
2014-01-01 18:03:55+04:00
block: Generalise and optimise COR serialisation Change the API so that specific requests can be marked serialising. Only these requests are checked for overlaps then. This means that during a Copy on Read operation, not all requests overlapping other requests are serialised any more, but only those that actually overlap with the specific COR request. Also remove COR from function and variable names because this functionality can be useful in other contexts. Signed-off-by: Kevin Wolf <[email protected]> Reviewed-by: Max Reitz <[email protected]> Reviewed-by: Benoit Canet <[email protected]>
2dbafdc012d3ea81a97fec6226ca82d644539c9a
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/2dbafdc012d3ea81a97fec6226ca82d644539c9a
2014-01-24 17:40:02+01:00
hpet: fix build with CONFIG_HPET off make hpet_find inline so we don't need to build hpet.c to check if hpet is enabled. Fixes link error with CONFIG_HPET off. Cc: [email protected] Signed-off-by: Michael S. Tsirkin <[email protected]>
142e0950cfaf023a81112dc3cdfa799d769886a4
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/142e0950cfaf023a81112dc3cdfa799d769886a4
2013-12-11 20:11:10+02:00
s390x/kvm: Fix coding style in handle_sigp() To make scripts/checkpatch.pl happy for the following patches, the coding style in handle_sigp() has to be fixed first. Signed-off-by: Thomas Huth <[email protected]> Acked-by: Cornelia Huck <[email protected]> Signed-off-by: Jens Freimann <[email protected]> Signed-off-by: Alexander Graf <[email protected]>
0b9972a2483b27824f3ec71b7b8b4a5961614216
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/0b9972a2483b27824f3ec71b7b8b4a5961614216
2013-12-18 14:24:10+01:00
target-i386: Cleanup 'foo=val' feature handling Features family, model, stepping, level, hv_spinlocks are treated similarly when passed from command line, so it's not necessary to handle each of them individually. Collapse them to one catch-all branch which will treat any not explicitly handled feature in format 'foo=val'. Any unknown feature will be rejected by property setter so there is no need to check for unknown feature in cpu_x86_parse_featurestr(), therefore it's replaced by above mentioned catch-all handler. Signed-off-by: Igor Mammedov <[email protected]> Signed-off-by: Andreas Färber <[email protected]>
d024d209045b912eb6127861fab2af6c64880efd
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/d024d209045b912eb6127861fab2af6c64880efd
2013-12-24 13:47:25+01:00
target-arm: Allow secondary KVM CPUs to be booted via PSCI New ARM boards are generally expected to boot their secondary CPUs via the PSCI interface, rather than ad-hoc "loop around in holding pen code" as hw/arm/boot.c implements. In particular this is necessary for mach-virt kernels. For KVM we achieve this by creating the VCPUs with a feature flag marking them as starting in PSCI powered-down state; the guest kernel will then make a PSCI call (implemented in the host kernel) to start the secondaries at an address of its choosing once it has got the primary CPU up. Implement this setting of the feature flag, controlled by a qdev property for ARMCPU, which board code can set if it is a PSCI system. Signed-off-by: Peter Maydell <[email protected]> Reviewed-by: Christoffer Dall <[email protected]> Message-id: [email protected]
5de164304ad6473c812f24a29fda33a2d1b2bf45
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/5de164304ad6473c812f24a29fda33a2d1b2bf45
2013-12-10 13:28:30+00:00
acpi-build: fix build on glib < 2.14 g_array_get_element_size was only added in glib 2.14, there's no way to find element size in with an older glib. Fortunately we only use a single table (linker) where element size > 1. Switch element size to 1 everywhere, then we can just look at len field to get table size in bytes. Add an assert to make sure we catch any violations of this rule. Reviewed-by: Paolo Bonzini <[email protected]> Reported-by: Richard Henderson <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
fd8f5e37557596e14a859d8edf3dc24523bd4400
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/fd8f5e37557596e14a859d8edf3dc24523bd4400
2013-11-21 16:28:27+02:00
dump-guest-memory: Check for the correct return value We should check for error with s->note_size Signed-off-by: Aneesh Kumar K.V <[email protected]> Signed-off-by: Alexander Graf <[email protected]>
bb6b684363e83586c90d20127b0d0a79793ab1e2
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/bb6b684363e83586c90d20127b0d0a79793ab1e2
2013-10-25 23:25:48+02:00
mips jazz: do not raise data bus exception when accessing invalid addresses MIPS Jazz chipset doesn't seem to raise data bus exceptions on invalid accesses. However, there is no easy way to prevent them. Creating a big memory region for the whole address space doesn't prevent memory core to directly call unassigned_mem_read/write which in turn call cpu->do_unassigned_access, which (for MIPS CPU) raise an data bus exception. This fixes a MIPS Jazz regression introduced in c658b94f6e8c206c59d02aa6fbac285b86b53d2c. Signed-off-by: Hervé Poussineau <[email protected]> Reviewed-by: Paolo Bonzini <[email protected]> Signed-off-by: Hervé Poussineau <[email protected]> Message-id: [email protected] Signed-off-by: Anthony Liguori <[email protected]>
54e755588cf1e90f0b1460c4e8e6b6a54b6d3a32
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/54e755588cf1e90f0b1460c4e8e6b6a54b6d3a32
2013-11-21 07:55:54-08:00
qcow2: Array assigning options to OL check bits Add an array which assigns the option string to its corresponding overlap check bit. Signed-off-by: Max Reitz <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
4092e99d935fe26fd53631cc9e170f9a19e3ee4a
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/4092e99d935fe26fd53631cc9e170f9a19e3ee4a
2013-10-11 16:50:00+02:00
i386: add bios linker/loader This adds a dynamic bios linker/loader. This will be used by acpi table generation code to: - load each table in the appropriate memory segment - link tables to each other - fix up checksums after said linking Reviewed-by: Gerd Hoffmann <[email protected]> Tested-by: Gerd Hoffmann <[email protected]> Reviewed-by: Igor Mammedov <[email protected]> Tested-by: Igor Mammedov <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
bc70232918ad3fb45c2b5423455a5de6bc7efdef
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/bc70232918ad3fb45c2b5423455a5de6bc7efdef
2013-10-14 17:48:52+03:00
qcow2: CHECK_OFLAG_COPIED is obsolete CHECK_OFLAG_COPIED as a parameter to check_refcounts_l1 and check_refcounts_l2 is obselete now, since the OFLAG_COPIED consistency check is actually no longer performed by these functions (but by check_oflag_copied). Signed-off-by: Max Reitz <[email protected]> Reviewed-by: Kevin Wolf <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]>
db0749012b3d1cf655bddb3cc79052a0fd4dc97b
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/db0749012b3d1cf655bddb3cc79052a0fd4dc97b
2013-10-02 11:40:41+02:00
block/iscsi: reenable iscsi_co_get_block_status Commit f35c934a accidently disabled iscsi_co_get_block_status for all libiscsi versions. Its not possible to check for enumeration constants in the C preprocessor. This patch changes the check to the preprocessor constant LIBISCSI_FEATURE_IOVECTOR which was introduced shortly after get_lba_status support was added to libiscsi. Signed-off-by: Peter Lieven <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
24c7608a5d973e5d562715998e9887f74deac794
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/24c7608a5d973e5d562715998e9887f74deac794
2013-10-09 10:43:42+02:00
xics: split to xics and xics-common The upcoming XICS-KVM support will use bits of emulated XICS code. So this introduces new level of hierarchy - "xics-common" class. Both emulated XICS and XICS-KVM will inherit from it and override class callbacks when required. The new "xics-common" class implements: 1. replaces static "nr_irqs" and "nr_servers" properties with the dynamic ones and adds callbacks to be executed when properties are set. 2. xics_cpu_setup() callback renamed to xics_common_cpu_setup() as it is a common part for both XICS'es 3. xics_reset() renamed to xics_common_reset() for the same reason. The emulated XICS changes: 1. the part of xics_realize() which creates ICPs is moved to the "nr_servers" property callback as realize() is too late to create/initialize devices and instance_init() is too early to create devices as the number of child devices comes via the "nr_servers" property. 2. added ics_initfn() which does a little part of what xics_realize() did. Signed-off-by: Alexey Kardashevskiy <[email protected]> Reviewed-by: Alexander Graf <[email protected]> Signed-off-by: Alexander Graf <[email protected]>
5a3d7b23ba41b4884b43b6bc936ea18f999d5c6b
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/5a3d7b23ba41b4884b43b6bc936ea18f999d5c6b
2013-10-25 23:25:47+02:00
qcow2-cache: Empty cache Add a function for emptying a cache, i.e., flushing it and marking all elements invalid. Signed-off-by: Max Reitz <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
e7108feaace8e02b3a4bf010448fc2744f753381
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/e7108feaace8e02b3a4bf010448fc2744f753381
2013-09-12 10:12:46+02:00
block/get_block_status: set *pnum = 0 on error if the call is invoked through bdrv_is_allocated the caller might expect *pnum = 0 on error. however, a new implementation of bdrv_get_block_status might only return a negative exit value on error while keeping *pnum untouched. Reviewed-by: Eric Blake <[email protected]> Signed-off-by: Peter Lieven <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
3e0a233d869e74e78b516be34715b91528508cfc
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/3e0a233d869e74e78b516be34715b91528508cfc
2013-09-25 10:08:56+02:00
kvm-all.c: max_cpus should not exceed KVM vcpu limit maxcpus, which specifies the maximum number of hotpluggable CPUs, should not exceed KVM's vcpu limit. Signed-off-by: Marcelo Tosatti <[email protected]> [Reword message. - Paolo] Signed-off-by: Paolo Bonzini <[email protected]>
7dc52526850849e8e0fe56ced809d0798481a2f6
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/7dc52526850849e8e0fe56ced809d0798481a2f6
2013-08-20 18:38:35+02:00
vfio-pci: Implement PCI hot reset Now that VFIO has a PCI hot reset interface, take advantage of it. There are two modes that we need to consider. The first is when only one device within the set of devices affected is actually assigned to the guest. In this case the other devices are are just held by VFIO for isolation and we can pretend they're not there, doing an entire bus reset whenever the device reset callback is triggered. Supporting this case separately allows us to do the best reset we can do of the device even if the device is hotplugged. The second mode is when multiple affected devices are all exposed to the guest. In this case we can only do a hot reset when the entire system is being reset. However, this also allows us to track which individual devices are affected by a reset and only do them once. We split our reset function into pre- and post-reset helper functions prioritize the types of device resets available to us, and create separate _one vs _multi reset interfaces to handle the distinct cases above. Signed-off-by: Alex Williamson <[email protected]>
f16f39c3fc973c5d7cbc2224eefb4ef5eb1e64ff
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/f16f39c3fc973c5d7cbc2224eefb4ef5eb1e64ff
2013-10-02 13:51:00-06:00
qapi.py: Reject invalid characters in schema file Signed-off-by: Markus Armbruster <[email protected]> Reviewed-by: Eric Blake <[email protected]> Message-id: [email protected] Signed-off-by: Anthony Liguori <[email protected]>
9213aa5391f7c8d3766420d96888f1353af4c890
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/9213aa5391f7c8d3766420d96888f1353af4c890
2013-07-29 10:37:11-05:00
PPC: E500: Generate device tree on reset Today we generate the device tree once on machine initialization and then store the finalized blob in memory to reload it on reset. This is bad for 2 reasons. First we potentially waste a bunch of RAM for no good reason, as we have all information required to regenerate the device tree available anyways. The second reason is even more important. On machine init when we generate the device tree for the first time, we don't have all of the devices fully initialized yet. But the device tree needs to potentially walk devices to put information about them into the device tree. Move the generation into a reset function. That way we just generate it new every time we reset, solving both of the above issues. Signed-off-by: Alexander Graf <[email protected]>
28290f37e20cda27574f15be9e9499493e3d0fe8
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/28290f37e20cda27574f15be9e9499493e3d0fe8
2013-09-02 10:06:40+02:00
mips_malta: generate SMBUS EEPROM data The malta contains 2 EEPROMs, one containing SPD data for the SDRAM and another containing board information such as serial number and MAC address. These are both exposed via the PIIX4 SMBUS. Generating this data and providing it to smbus_eeprom_init will allow YAMON to read a serial number for the board and prevent it from warning that the EEPROM data is invalid. We already have the contents of the SPD EEPROM which are exposed via FPGA I2C accesses, this is provided as part of the SMBUS EEPROM data too for consistency. Signed-off-by: Paul Burton <[email protected]> Signed-off-by: Leon Alrae <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
35c648078aa493c3b976840eb7cf2e53ab5b7a2d
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/35c648078aa493c3b976840eb7cf2e53ab5b7a2d
2013-07-28 19:59:23+02:00
virtio-console: Check if chardev backends available before calling into them For the callback functions invoked by the virtio-serial-bus code, check if we have chardev backends registered before we call into the chardev functions. Signed-off-by: Amit Shah <[email protected]> Reported-by: Anthony Liguori <[email protected]> Signed-off-by: Amit Shah <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
6640422c172e01d0e191a754d3643a68abca83bc
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/6640422c172e01d0e191a754d3643a68abca83bc
2011-12-21 15:00:29-06:00
qemu-option: check_params() is now unused, drop it Signed-off-by: Markus Armbruster <[email protected]> Reviewed-by: Anthony Liguori <[email protected]> Message-id: [email protected] Signed-off-by: Anthony Liguori <[email protected]>
a86b35f992f107323e432c0a96107e11e1b699ad
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/a86b35f992f107323e432c0a96107e11e1b699ad
2013-06-19 14:10:42-05:00
virtio-net: add feature bit for any header s/g Old qemu versions required that 1st s/g entry is the header. Since QEMU 1.5, patchset titled "virtio-net: iovec handling cleanup" removed this limitation but a feature bit is needed so guests know it's safe to lay out header differently. This patch applies on top and adds such a feature bit to QEMU. It is set by default for virtio-net. virtio net header inline with the data is beneficial for latency and small packet bandwidth - guest driver code utilizing this feature has been acked but missed 3.11 by a narrow margin, it's pending for 3.12. This feature bit is cleared by default when compatibility with old machine types is requested. Other performance-sensitive devices (blk and scsi) don't yet support arbitrary s/g layouts, so we only set this bit for virtio-net for now. There are plans to allow arbitrary layouts there, but no code has been posted yet. Cc: Rusty Russell <[email protected]> Reviewed-by: Laszlo Ersek <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
488f069bd1f3aeb6ee748acb02b7581831bcb3f8
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/488f069bd1f3aeb6ee748acb02b7581831bcb3f8
2013-07-15 21:26:26+03:00
versatile_pci: Expose PCI memory space to system The VersatilePB's PCI controller exposes the PCI memory space to the system via three regions controlled by the mapping control registers. Implement this so that guests can actually use MMIO-BAR PCI cards. Signed-off-by: Peter Maydell <[email protected]> Acked-by: Paul Brook <[email protected]>
89a32d32fb573b32bbe129421602c2b3c3c247ec
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/89a32d32fb573b32bbe129421602c2b3c3c247ec
2013-04-19 11:15:20+01:00
target-i386: Use FeatureWord loop on filter_features_for_kvm() Instead of open-coding the filtering code for each feature word, change the existing code to use the feature_word_info array, that has exactly the same CPUID eax/ecx/register values for each feature word. Signed-off-by: Eduardo Habkost <[email protected]> Reviewed-by: Eric Blake <[email protected]> Signed-off-by: Andreas Färber <[email protected]>
bd87d2a2c05569a28768648b069cbc24c40f4fb8
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/bd87d2a2c05569a28768648b069cbc24c40f4fb8
2013-05-06 17:53:57+02:00
pflash_cfi01: Drop unused 'bypass' field For pflash_cfi01 the 'bypass' field is set to zero and never changes, so remove it (it is a leftover from pflash_cfi02, where bypass is implemented). Signed-off-by: Peter Maydell <[email protected]> Message-id: [email protected]
5d79b80b335c5f65f148d1bb1672d9d534ace73b
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/5d79b80b335c5f65f148d1bb1672d9d534ace73b
2013-04-05 16:18:00+01:00
usb-hub: limit chain length USB supports up to 5 hubs chained. Catch attempts to chain more. Signed-off-by: Gerd Hoffmann <[email protected]>
c24e4aac3bd7dd6591e26b77985e5d3915ecbe4b
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/c24e4aac3bd7dd6591e26b77985e5d3915ecbe4b
2013-04-03 11:39:43+02:00
migration: initialize RAM to zero Using qemu_memalign only leaves the RAM zero by chance, because libc will usually use mmap to satisfy our huge requests. But memory will not be zero when using MALLOC_PERTURB_ with a nonzero value. In the case of incoming migration, this breaks a recently-introduced invariant (commit f1c7279, migration: do not sent zero pages in bulk stage, 2013-03-26). To fix this, use mmap ourselves to get a well-aligned, always zero block for the RAM. Mmap-ed memory is easy to "trim" at the sides. This also removes the need to do something special on valgrind (see commit c2a8238a, Support running QEMU on Valgrind, 2011-10-31), thus effectively reverts that patch. Reviewed-by: Juan Quintela <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]> Reviewed-by: Markus Armbruster <[email protected]> Message-id: [email protected] Signed-off-by: Anthony Liguori <[email protected]>
7dda5dc82a776a39a7996020c188eb2a29187117
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/7dda5dc82a776a39a7996020c188eb2a29187117
2013-04-16 16:10:20-05:00
block: Add support for Secure Shell (ssh) block device. qemu-system-x86_64 -drive file=ssh://hostname/some/image QEMU will ssh into 'hostname' and open '/some/image' which is made available as a standard block device. You can specify a username (ssh://user@host/...) and/or a port number (ssh://host:port/...). You can also use an alternate syntax using properties (file.user, file.host, file.port, file.path). Current limitations: - Authentication must be done without passwords or passphrases, using ssh-agent. Other authentication methods are not supported. - Uses a single connection, instead of concurrent AIO with multiple SSH connections. This is implemented using libssh2 on the client side. The server just requires a regular ssh daemon with sftp-server support. Most ssh daemons on Unix/Linux systems will work out of the box. Signed-off-by: Richard W.M. Jones <[email protected]> Cc: Stefan Hajnoczi <[email protected]> Cc: Kevin Wolf <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]>
0a12ec87a513b31eb3b6e035d30649e483322270
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/0a12ec87a513b31eb3b6e035d30649e483322270
2013-04-15 10:18:05+02:00
arm_gic: Fix sizes of state fields in preparation for vmstate support In preparation for switching to vmstate for migration support, fix the sizes of various GIC state fields. In particular, we replace all the bitfields (which VMState can't deal with) with straightforward uint8_t values which we do bit operations on. (The bitfields made more sense when NCPU was set differently in different situations, but we now always model at the architectural limit of 8.) Signed-off-by: Peter Maydell <[email protected]> Reviewed-by: Igor Mitsyanko <[email protected]> Reviewed-by: Andreas Färber <[email protected]> Message-id: [email protected]
c3037774be5329e584d4d709b9df7e1799bba215
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/c3037774be5329e584d4d709b9df7e1799bba215
2013-04-05 16:17:59+01:00
target-i386: SSE4.2: fix pcmpXstrX instructions in "Equal ordered" mode The inner loop should only change the current bit of the result, instead of the whole result. Reviewed-by: Richard Henderson <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
75c9527e190231fbc2fd8470e132f360e70206be
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/75c9527e190231fbc2fd8470e132f360e70206be
2013-04-01 18:49:16+02:00
Checksum-related utility functions net_checksum_add_cont() checksum calculation for scattered data with odd chunk sizes net_raw_checksum() checksum calculation for a buffer Signed-off-by: Dmitry Fleytman <[email protected]> Signed-off-by: Yan Vugenfirer <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]>
5acf5ea4bc1535657692c509092caddec3d719ff
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/5acf5ea4bc1535657692c509092caddec3d719ff
2013-03-25 11:13:09+01:00
qcow2: Move cluster gathering to a non-looping loop This patch is mainly to separate the indentation change from the semantic changes. All that really changes here is that everything moves into a while loop, all 'goto done' become 'break' and at the end of the loop a new 'break is inserted. Signed-off-by: Kevin Wolf <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]>
2c3b32d25620c26e26fd590c198ec6d9cf91da57
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/2c3b32d25620c26e26fd590c198ec6d9cf91da57
2013-03-28 11:52:44+01:00
pci: refuse empty ROM files A zero size ROM file is invalid and should produce a warning. Attempting to use a zero size file ends up hitting an assertion qemu_ram_set_idstr() because RAMBlocks with duplicate addresses are allocated - due to zero size the allocator doesn't increment the next available RAMBlock offset. Also convert __FUNCTION__ to __func__ while we're touching this code. There are no other __FUNCTION__ instances in pci.c anymore. Reported-by: Milos Ivanovic <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
8c7f3dd05e4f1ee90000c89e428e69ae2e6bd691
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/8c7f3dd05e4f1ee90000c89e428e69ae2e6bd691
2013-03-26 21:02:17+02:00
block: complete all IOs before resizing a device this patch ensures that all pending IOs are completed before a device is resized. this is especially important if a device is shrinked as it the bdrv_check_request() result is invalidated. Signed-off-by: Peter Lieven <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
92b7a08d64e5e3129fa885f9d180e5bddcb76b42
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/92b7a08d64e5e3129fa885f9d180e5bddcb76b42
2013-03-22 17:51:31+01:00
cutils: add a function to find non-zero content in a buffer this adds buffer_find_nonzero_offset() which is a SSE2/Altivec optimized function that searches for non-zero content in a buffer. the function starts full unrolling only after the first few chunks have been checked one by one. analyzing real memory page data has revealed that non-zero pages are non-zero within the first 256-512 bits in most cases. as this function is also heavily used to check for zero memory pages this tweak has been made to avoid the high setup costs of the fully unrolled check for non-zero pages. due to the optimizations used in the function there are restrictions on buffer address and search length. the function can_use_buffer_find_nonzero_content() can be used to check if the function can be used safely. Signed-off-by: Peter Lieven <[email protected]> Signed-off-by: Juan Quintela <[email protected]>
41a259bd2b1796ddabdae600ee539269a7ddb6a5
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/41a259bd2b1796ddabdae600ee539269a7ddb6a5
2013-03-26 13:32:28+01:00
tcg: Fix occasional TCG broken problem when ldst optimization enabled is_tcg_gen_code() checks the upper limit of TCG generated code range wrong, so that TCG could get broken occasionally only when CONFIG_QEMU_LDST_OPTIMIZATION enabled. The reason is code_gen_buffer_max_size does not cover the upper range up to (TCG_MAX_OP_SIZE * OPC_BUF_SIZE), thus code_gen_buffer_max_size should be modified to code_gen_buffer_size. CC: [email protected] Signed-off-by: Yeongkyoon Lee <[email protected]> Reviewed-by: Peter Maydell <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
52ae646d4a3ebdcdcc973492c6a56f2c49b6578f
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/52ae646d4a3ebdcdcc973492c6a56f2c49b6578f
2013-03-22 21:38:21+01:00
char: Fix return type of qemu_chr_fe_add_watch() qemu_chr_fe_add_watch() can return negative errors, therefore it must not have an unsigned return type. For consistency with other qemu_chr_fe_* functions, this uses a standard C int instead of glib types. In situations where qemu_chr_fe_add_watch() is falsely assumed to have succeeded, the serial ports would go into a state where it never becomes ready for transmitting more data; this is fixed by this patch. Signed-off-by: Kevin Wolf <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
2c8a59422c06fe1e37c85502d92ccdfb5e2ac987
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/2c8a59422c06fe1e37c85502d92ccdfb5e2ac987
2013-03-19 07:56:07-05:00
ui/gtk: Use menu item from stock for full screen This reduces the required translations and gives a nicer menu with an icon. The full screen menu item is no longer a check menu item. A checked item is not visible in full screen mode, so it is not needed for this special menu item. Signed-off-by: Stefan Weil <[email protected]> Message-id: [email protected] Signed-off-by: Anthony Liguori <[email protected]>
104092825ac3274d16ffc35b7ef9ac8c636e1c48
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/104092825ac3274d16ffc35b7ef9ac8c636e1c48
2013-02-22 14:49:00-06:00
mmu-hash*: Don't use full ppc_hash{32, 64}_translate() path for get_phys_page_debug() Currently the hash mmu versionsof get_phys_page_debug() use the same ppc64_hash64_translate() function to do the translation logic as the normal mm fault handler code. That sounds like a good idea, but has some complications. The debug path doesn't need, or even want some parts of the full translation path, like permissions checking. Furthermore, the pte flags update included in the normal path means that the debug call is not quite side effect free. This patch, therefore, reimplements get_phys_page_debug as the minimal required subset of the full translation path. Signed-off-by: David Gibson <[email protected]>`z Signed-off-by: Alexander Graf <[email protected]>
5883d8b29691e15c72e338a586509abfc65c3106
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/5883d8b29691e15c72e338a586509abfc65c3106
2013-03-22 15:28:53+01:00
migration: simplify error handling Always use qemu_file_get_error to detect errors, since that is how QEMUFile itself drops I/O after an error occurs. There is no need to propagate and check return values all the time. Also remove the "complete" member, since we know that it is set (via migrate_fd_cleanup) only when the state changes. Reviewed-by: Orit Wasserman <[email protected]> Reviewed-by: Juan Quintela <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]> Signed-off-by: Juan Quintela <[email protected]>
dba433c03a0f5dc22a459435dd89557886298921
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/dba433c03a0f5dc22a459435dd89557886298921
2013-03-11 13:32:01+01:00
target-m68k: Move TCG initialization to M68kCPU initfn Add a tcg_enabled() check to suppress it for qtest. Signed-off-by: Andreas Färber <[email protected]>
1cc896195bae54d7a5f48f9032037d8f6f65abd5
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/1cc896195bae54d7a5f48f9032037d8f6f65abd5
2013-02-16 14:50:58+01:00
xen: Simplify halting of first CPU Use the global first_cpu variable to halt the CPU rather than using a local first_cpu initialized from qemu_get_cpu(0). This will allow to change qemu_get_cpu() return type to CPUState despite use of the CPU_COMMON halted field in the reset handler. Signed-off-by: Andreas Färber <[email protected]>
4a1e40b5091bcff5f8ea3fe9963eaa8e76b16389
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/4a1e40b5091bcff5f8ea3fe9963eaa8e76b16389
2013-01-15 04:09:14+01:00
Makefile: drop recursive libcacard clean Commit eb8eb53e5846a957cf333f2e1ec8cb6e0c04 ("libcacard: rewrite Makefile in non-recursive style") refactored libcacard/Makefile so it can be included by the top-level Makefile. The top-level clean target still loops over subdirectories, including libcacard/, to invoke recursive clean. Remove libcacard from the recursive clean since its files are already included at the top level. Signed-off-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
781c0c3321d2bda9a9d7ffe9bf51560f0987b5a0
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/781c0c3321d2bda9a9d7ffe9bf51560f0987b5a0
2013-01-17 07:32:54-06:00
openpic: fix CTPR and de-assertion of interrupts Properly implement level-triggered interrupts by withdrawing an interrupt from the raised queue if the interrupt source de-asserts. Also withdraw from the raised queue if the interrupt becomes masked. When CTPR is written, check whether we need to raise or lower the interrupt output. Signed-off-by: Scott Wood <[email protected]> Signed-off-by: Alexander Graf <[email protected]>
9f1d4b1d6939d39fe570d886f6a651f4764bcbcb
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/9f1d4b1d6939d39fe570d886f6a651f4764bcbcb
2013-01-07 17:37:11+01:00
pci: fix path for local includes Include dependencies from pci core using the correct path. This is required now that it's in the separate directory. Need to check whether they can be minimized, for now, keep the code as is. Signed-off-by: Michael S. Tsirkin <[email protected]>
c759b24fae08c6c333df03e1db48e13b7f5eda30
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/c759b24fae08c6c333df03e1db48e13b7f5eda30
2012-12-17 13:02:27+02:00
protect the ramlist with a separate mutex Add the new mutex that protects shared state between ram_save_live and the iothread. If the iothread mutex has to be taken together with the ramlist mutex, the iothread shall always be _outside_. Signed-off-by: Paolo Bonzini <[email protected]> Signed-off-by: Umesh Deshpande <[email protected]> Signed-off-by: Juan Quintela <[email protected]> Reviewed-by: Orit Wasserman <[email protected]>
b2a8658ef5dc57ea9e7a45091724a719dd4bdcd3
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/b2a8658ef5dc57ea9e7a45091724a719dd4bdcd3
2012-12-20 23:08:47+01:00
pixman: fix version check for PIXMAN_TYPE_BGRA Signed-off-by: Gerd Hoffmann <[email protected]> Signed-off-by: Blue Swirl <[email protected]>
fbddfc727bde692f009a269e8e628d8c152b537b
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/fbddfc727bde692f009a269e8e628d8c152b537b
2012-12-14 20:55:37+00:00
target-i386: cpu: make -cpu host/check/enforce code KVM-specific Rationale: * "-cpu host" is available only when using KVM * The current implementation of -cpu check/enforce (check_features_against_host()) makes sense only when using KVM. So this makes the functions check_features_against_host() and cpu_x86_fill_host() KVM-specific, document them as such, and rename them to kvm_check_features_against_host() and kvm_cpu_fill_host(). Signed-off-by: Eduardo Habkost <[email protected]> Signed-off-by: Marcelo Tosatti <[email protected]>
6e746f30558cb1331598575918c2a8808be2a75b
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/6e746f30558cb1331598575918c2a8808be2a75b
2012-10-30 23:39:53-02:00
Revert "serial: fix retry logic" This reverts commit 67c5322d7000fd105a926eec44bc1765b7d70bdd: I'm not sure if the retry logic has ever worked when not using FIFO mode. I found this while writing a test case although code inspection confirms it is definitely broken. The TSR retry logic will never actually happen because it is guarded by an 'if (s->tsr_rety > 0)' but this is the only place that can ever make the variable greater than zero. That effectively makes the retry logic an 'if (0) I believe this is a typo and the intention was >= 0. Once this is fixed thoug I see double transmits with my test case. This is because in the non FIFO case, serial_xmit may get invoked while LSR.THRE is still high because the character was processed but the retransmit timer was still active. We can handle this by simply checking for LSR.THRE and returning early. It's possible that the FIFO paths also need some attention. Cc: Stefano Stabellini <[email protected]> Signed-off-by: Anthony Liguori <[email protected]> Even if the previous logic was never worked, new logic breaks stuff - namely, qemu -enable-kvm -nographic -kernel /boot/vmlinuz-$(uname -r) -append console=ttyS0 -serial pty the above command will cause the virtual machine to stuck at startup using 100% CPU till one connects to the pty and sends any char to it. Note this is rather typical invocation for various headless virtual machines by libvirt. So revert this change for now, till a better solution will be found. Signed-off-by: Michael Tokarev <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
b37a2e4576530597dda880387e3f4da52c42b5b5
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/b37a2e4576530597dda880387e3f4da52c42b5b5
2013-01-24 09:45:03-06:00
vfio-pci: Add KVM INTx acceleration This makes use of the new level irqfd support enabling bypass of qemu userspace both on INTx injection and unmask. This significantly boosts the performance of devices making use of legacy interrupts (ex. ~60% better netperf TCP_RR scores for an e1000e assigned to a Linux guest and booted with pci=nomsi). This also avoids flipping mmaps on and off to simulate EOIs, so greatly improves performance of device access in addition to interrupt latency. Signed-off-by: Alex Williamson <[email protected]>
e1d1e5867d0bd54c4fc51ec2cddc701258314db0
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/e1d1e5867d0bd54c4fc51ec2cddc701258314db0
2012-11-13 12:27:40-07:00
i386: kvm: kvm_arch_get_supported_cpuid: clean up has_kvm_features check Instead of a function-specific has_kvm_features variable, simply use a "found" variable that will be checked in case we have to use the legacy get_para_features() interface. No behavior change, just code cleanup. Signed-off-by: Eduardo Habkost <[email protected]> Signed-off-by: Marcelo Tosatti <[email protected]>
8c723b7958127b8f204dd4b278ad3c8f6f48ae17
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/8c723b7958127b8f204dd4b278ad3c8f6f48ae17
2012-10-30 23:39:46-02:00
event_notifier: enable it to use pipes This takes the eventfd emulation code from the main loop. When the EventNotifier is used for the main loop too, we need this compatibility code. Without CONFIG_EVENTFD, event_notifier_get_fd is only usable for the "read" side of the notifier, for example to set a select() handler. The return value of event_notifier_set changes to the cleaner 0/-errno. No caller is actually checking the return value. Reviewed-by: Anthony Liguori <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
d0cc2fbfa607678866475383c508be84818ceb64
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/d0cc2fbfa607678866475383c508be84818ceb64
2012-10-30 09:30:52+01:00
configure: use -Wwombat to test whether gcc recognizes -Wno-wombat gcc will silently accept unrecognized -Wno-wombat warning suppression options (it only mentions them if it has to print a compiler warning for some other reason). Since we already run a check for whether gcc recognizes the warning options we use, we can easily make this use the positive sense of the option when checking for support for the suppression option. This doesn't have any effect except that it avoids gcc emitting extra messages about unrecognized command line options when it is printing other warning messages. Signed-off-by: Peter Maydell <[email protected]> Reviewed-by: Stefan Weil <[email protected]> Reviewed-by: Igor Mitsyanko <[email protected]> Signed-off-by: Blue Swirl <[email protected]>
a1d29d6c1d4002a5c7b19eda61d794f4c22538dd
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/a1d29d6c1d4002a5c7b19eda61d794f4c22538dd
2012-10-30 18:52:57+00:00
Separate migration bitmap This patch creates a migration bitmap, which is periodically kept in sync with the qemu bitmap. A separate copy of the dirty bitmap for the migration limits the amount of concurrent access to the qemu bitmap from iothread and migration thread (which requires taking the big lock). We use the qemu bitmap type. We have to "undo" the dirty_pages counting optimization on the general dirty bitmap and do the counting optimization with the migration local bitmap. Signed-off-by: Umesh Deshpande <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]> Signed-off-by: Juan Quintela <[email protected]>
c6bf8e0e0cf04b40a8a22426e00ebbd727331d8b
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/c6bf8e0e0cf04b40a8a22426e00ebbd727331d8b
2012-10-17 18:34:58+02:00
linux-user: fix multi-threaded /proc/self/maps When reading our faked /proc/self/maps from a secondary thread, we get an invalid stack entry. This is because ts->stack_base is not initialized in non-primary threads. However, ts->info is, and the stack layout information we're looking for is there too. So let's use that one instead! Signed-off-by: Alexander Graf <[email protected]> Signed-off-by: Riku Voipio <[email protected]>
1bdd7c7ea8a711efcb5141663865cc1f7e4e824d
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/1bdd7c7ea8a711efcb5141663865cc1f7e4e824d
2012-10-12 13:58:13+03:00
qemu-ga: ga_open_pidfile(): add new line to pidfile FHS requires that pid files should end with a new line. Also change to snprintf() while there. Signed-off-by: Luiz Capitulino <[email protected]> Reviewed-by: Michael Roth <[email protected]> Signed-off-by: Michael Roth <[email protected]>
9d6f1b73f83a02fb28438fa9a487f5c7d245e4af
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/9d6f1b73f83a02fb28438fa9a487f5c7d245e4af
2012-10-09 03:42:42-05:00
Rename target_phys_addr_t to hwaddr target_phys_addr_t is unwieldly, violates the C standard (_t suffixes are reserved) and its purpose doesn't match the name (most target_phys_addr_t addresses are not target specific). Replace it with a finger-friendly, standards conformant hwaddr. Outstanding patchsets can be fixed up with the command git rebase -i --exec 'find -name "*.[ch]" | xargs s/target_phys_addr_t/hwaddr/g' origin Signed-off-by: Avi Kivity <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/a8170e5e97ad17ca169c64ba87ae2f53850dab4c
2012-10-23 08:58:25-05:00
qemu-barrier: Fix compiler version check for future gcc versions The current check will give a wrong result for gcc-5.x with x < 4. Using QEMU_GNUC_PREREQ is simpler and fixes that issue. Signed-off-by: Stefan Weil <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]>
8e7e2b14e7c86cdceb337cf7f5c4c351ab350775
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/8e7e2b14e7c86cdceb337cf7f5c4c351ab350775
2012-10-05 15:48:33+02:00
target-mips: Always evaluate debugging macro arguments this will prevent some of the compilation errors with debugging enabled from creeping back in. Signed-off-by: Richard Henderson <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
fb7729e2d03e1ffb4306f2411c18aa20f737dba8
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/fb7729e2d03e1ffb4306f2411c18aa20f737dba8
2012-09-19 21:40:47+02:00
kvm: Clean up irqfd API No need to expose the fd-based interface, everyone will already be fine with the more handy EventNotifier variant. Rename the latter to clarify that we are still talking about irqfds here. Signed-off-by: Jan Kiszka <[email protected]> Acked-by: Alex Williamson <[email protected]> Signed-off-by: Avi Kivity <[email protected]>
b131c74a0e485b084ddaffc8214c8a19af492be7
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/b131c74a0e485b084ddaffc8214c8a19af492be7
2012-09-09 17:03:09+03:00
monitor: don't try to initialize json parser when monitor is HMP Reported-by: Michael Roth <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
26efaca377e004b79ff50a6e936d029a0c095b8b
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/26efaca377e004b79ff50a6e936d029a0c095b8b
2012-08-23 20:19:59-05:00
ehci: simplify ehci_state_executing ehci_state_executing does not need to check for p->usb_status == USB_RET_ASYNC or USB_RET_PROCERR, since ehci_execute_complete already does a similar check and will trigger an assert if either value is encountered. USB_RET_ASYNC should never be the packet status when execute_complete runs for obvious reasons, and USB_RET_PROCERR is only used by ehci_state_execute / ehci_execute not by ehci_state_executing / ehci_execute_complete. Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Gerd Hoffmann <[email protected]>
574ef17191f5ec5a3cc4782c1f59dc5eb8279654
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/574ef17191f5ec5a3cc4782c1f59dc5eb8279654
2012-08-31 12:02:15+02:00
target-xtensa: fix missing errno codes for mingw32 Put the following errno value mappings under #ifdef: xtensa-semi.c: In function 'errno_h2g': xtensa-semi.c:113: error: 'ENOTBLK' undeclared (first use in this function) xtensa-semi.c:113: error: (Each undeclared identifier is reported only once xtensa-semi.c:113: error: for each function it appears in.) xtensa-semi.c:113: error: array index in initializer not of integer type xtensa-semi.c:113: error: (near initialization for 'guest_errno') xtensa-semi.c:124: error: 'ETXTBSY' undeclared (first use in this function) xtensa-semi.c:124: error: array index in initializer not of integer type xtensa-semi.c:124: error: (near initialization for 'guest_errno') xtensa-semi.c:134: error: 'ELOOP' undeclared (first use in this function) xtensa-semi.c:134: error: array index in initializer not of integer type xtensa-semi.c:134: error: (near initialization for 'guest_errno') Signed-off-by: Max Filippov <[email protected]> Signed-off-by: Blue Swirl <[email protected]>
c29b1bee4b025f51f02cc9f521ca19cb5f3eb432
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/c29b1bee4b025f51f02cc9f521ca19cb5f3eb432
2012-09-08 08:46:29+00:00
hw/sd.c: convert wp_groups in SDState to bitfield Representing each group write protection flag with only one bit instead of int variable significantly reduces memory consumption. Signed-off-by: Igor Mitsyanko <[email protected]> Signed-off-by: Peter Maydell <[email protected]>
a9c0183059d6a4e4d940cd86ac0f9402b0655d24
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/a9c0183059d6a4e4d940cd86ac0f9402b0655d24
2012-08-13 11:04:06+01:00
scsi: establish precedence levels for unit attention When a device is resized, we will report a unit attention condition for CAPACITY DATA HAS CHANGED. However, we should ensure that this condition does not override a more important unit attention condition. Signed-off-by: Paolo Bonzini <[email protected]>
e48e84ea80cb2e7fe6e48196ce187cfba6e3eb2c
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/e48e84ea80cb2e7fe6e48196ce187cfba6e3eb2c
2012-07-27 08:25:25+02:00
ivshmem: wrap ivshmem_del_eventfd loops with transaction Signed-off-by: Paolo Bonzini <[email protected]> Signed-off-by: Avi Kivity <[email protected]>
b6a1f3a56921c80cd04d8130e713028c7c91edc1
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/b6a1f3a56921c80cd04d8130e713028c7c91edc1
2012-07-12 14:08:10+03:00
usb: fix interface initialization zero is a valid interface number, so don't use it when resetting the endpoints. Signed-off-by: Gerd Hoffmann <[email protected]>
7c37e6a4c4972ad3cdb2478a0249757ee3a1bf70
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/7c37e6a4c4972ad3cdb2478a0249757ee3a1bf70
2012-07-09 11:59:55+02:00
msi/msix: added API to set MSI message address and data Added (msi|msix)_set_message() function for whoever might want to use them. Currently msi_notify()/msix_notify() write to these vectors to signal the guest about an interrupt so the correct values have to written there by the guest or QEMU. For example, POWER guest never initializes MSI/MSIX vectors, instead it uses RTAS hypercalls. So in order to support MSIX for virtio-pci on POWER we have to initialize MSI/MSIX message from QEMU. Signed-off-by: Alexey Kardashevskiy <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
932d4a42afa28829fadf3cbfbb0507cc09aafd8b
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/932d4a42afa28829fadf3cbfbb0507cc09aafd8b
2012-07-19 17:56:42+03:00
scsi: Ensure command and transfer lengths are set for all SCSI devices scsi-generic relies on those values to be correct, so it is important that those values are initialized properly for all device types. Reported-by: Christian Hoff <[email protected]> Reported-by: Christian Borntraeger <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
28b70c9dbdce0d517ade9c04c7d7ae05c8b76d2f
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/28b70c9dbdce0d517ade9c04c7d7ae05c8b76d2f
2012-07-02 11:27:00+02:00
checkpatch: Add QEMU specific rule The new rule detects two wrong variants of QEMU. It was tested with commit b5a8fe5e. Signed-off-by: Stefan Weil <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]>
9964d8f9422e72fc6026049b966544c8e40a7b67
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/9964d8f9422e72fc6026049b966544c8e40a7b67
2012-06-22 09:41:31+01:00
target-arm: Convert MPIDR Convert the MPIDR to the new cp15 register scheme. This includes giving it its own feature bit rather than doing a CPUID value check. Signed-off-by: Peter Maydell <[email protected]>
81bdde9dcdba5bbc358b2c6b8f776a05a751cc72
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/81bdde9dcdba5bbc358b2c6b8f776a05a751cc72
2012-06-20 12:10:54+00:00
virtio-blk: hide VIRTIO_BLK_F_CONFIG_WCE from old machine types QEMU has a policy of keeping a stable guest device ABI. When new guest device features are introduced they must not change hardware info seen by existing guests. This is important because operating systems or applications may "fingerprint" the hardware and refuse to run when the hardware changes. To always get the latest guest device ABI, run with x86 machine type "pc". This patch hides the new VIRTIO_BLK_F_CONFIG_WCE virtio feature bit from existing machine types. Only pc-1.2 and later will expose this feature by default. For more info on the VIRTIO_BLK_F_CONFIG_WCE feature bit, see: commit 13e3dce068773c971ff2f19d986378c55897c4a3 Author: Paolo Bonzini <[email protected]> Date: Thu Aug 9 16:07:19 2012 +0200 virtio-blk: support VIRTIO_BLK_F_CONFIG_WCE Also rename VIRTIO_BLK_F_WCACHE to VIRTIO_BLK_F_WCE for consistency with the spec. Signed-off-by: Paolo Bonzini <[email protected]> Signed-off-by: Kevin Wolf <[email protected]> Anthony Liguori <[email protected]> reported: This broke qemu-test because it changed the pc-1.0 machine type: Setting guest RANDOM seed to 47167 *** Running tests *** Running test /tests/finger-print.sh... OK --- fingerprints/pc-1.0.x86_64 2011-12-18 13:08:40.000000000 -0600 +++ fingerprint.txt 2012-08-12 13:30:48.000000000 -0500 @@ -55,7 +55,7 @@ /sys/bus/pci/devices/0000:00:06.0/subsystem_device=0x0002 /sys/bus/pci/devices/0000:00:06.0/class=0x010000 /sys/bus/pci/devices/0000:00:06.0/revision=0x00 -/sys/bus/pci/devices/0000:00:06.0/virtio/host-features=0x710006d4 +/sys/bus/pci/devices/0000:00:06.0/virtio/host-features=0x71000ed4 /sys/class/dmi/id/bios_vendor=Bochs /sys/class/dmi/id/bios_date=01/01/2007 /sys/class/dmi/id/bios_version=Bochs Guest fingerprint changed for pc-1.0! Reported-by: Anthony Liguori <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
ea776abca628d855e03c4929da3864985afd8aae
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/ea776abca628d855e03c4929da3864985afd8aae
2012-08-22 10:47:14-05:00
fdc: fix implied seek while there is no media in drive The Windows uses 'READ' command at the start of an instalation without checking the 'dir' register. We have to abort the transfer with an abnormal termination if there is no media in the drive. Signed-off-by: Pavel Hrdina <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
c52acf60b6c12ff5eb58eb6ac568c159ae0c8737
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/c52acf60b6c12ff5eb58eb6ac568c159ae0c8737
2012-06-15 14:03:43+02:00
usb-host: fix zero-length packets usb-host optimizes away zero-length packets by not entering the processing loop at all. Which isn't correct, we should submit a zero-length urb to the host devicein that case. This patch makes sure we run the processing loop at least once. Signed-off-by: Gerd Hoffmann <[email protected]>
0b377169b18d702d980d526578d8515900ca6eb1
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/0b377169b18d702d980d526578d8515900ca6eb1
2012-04-26 12:21:16+02:00
scripts/qemu-binfmt-conf.sh: Fix shell syntax The script is organized as a sequence of binfmt registrations, with a check whether the to be registered architecture matches the host. Add a missing fi for the SuperH section. Reported-by: Alexander Graf <[email protected]> Reviewed-by: Paolo Bonzini <[email protected]> Signed-off-by: Andreas Färber <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
90f2cefb17f3e25272143f43cd00f6347e65987b
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/90f2cefb17f3e25272143f43cd00f6347e65987b
2012-05-08 11:15:18-05:00
qapi: Unit tests for visitor-based serialization Currently we test our visitors individually, and seperately for input vs. output. This is useful for validating internal representations against the native C types and vice-versa, and other visitor-specific testing, but it doesn't cover the potential use-case of using visitor pairs for serialization/deserialization very well, and makes it hard to easily extend the coverage for different C types / boundary conditions. To cover that we add a set of unit tests that takes a number of native C values, passes them into an output visitor, extracts the values with an input visitor, then compares the result to the original. Plugging in new visitors to the test harness only requires a user to implement the SerializeOps interface and add it to a list. Signed-off-by: Michael Roth <[email protected]> Signed-off-by: Andreas Färber <[email protected]>
2d496105397b8eca905f9a53c40e2faaac7bfa6b
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/2d496105397b8eca905f9a53c40e2faaac7bfa6b
2012-06-08 16:11:14+02:00
rewrite iov_* functions This changes implementations of all iov_* functions, completing the previous step. All iov_* functions now ensure that this offset argument is within the iovec (using assertion), but lets to specify `bytes' value larger than actual length of the iovec - in this case they stops at the actual end of iovec. It is also suggested to use convinient `-1' value as `bytes' to mean just this -- "up to the end". There's one very minor semantic change here: new requiriment is that `offset' points to inside of iovec. This is checked just at the end of functions (assert()), it does not actually need to be enforced, but using any of these functions with offset pointing past the end of iovec is wrong anyway. Note: the new code in iov.c uses arithmetic with void pointers. I thought this is not supported everywhere and is a GCC extension (indeed, the C standard does not define void arithmetic). However, the original code already use void arith in iov_from_buf() function: (memcpy(..., buf + buf_off,...) which apparently works well so far (it is this way in qemu 1.0). So I left it this way and used it in other places. While at it, add a unit-test file test-iov.c, to check various corner cases with iov_from_buf(), iov_to_buf() and iov_memset(). Signed-off-by: Michael Tokarev <[email protected]>
2278a69e7020d86a8c73a28474e7709d3e7d5081
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/2278a69e7020d86a8c73a28474e7709d3e7d5081
2012-06-07 21:09:46+04:00
qemu-iotests: Test bdrv_close while AIO is in flight If the BlockDriverState is closed/freed without draining the AIO requests first, the request coroutines may work on invalid data and file descriptors or have some dangling pointers that cause segfaults. Signed-off-by: Kevin Wolf <[email protected]> Reviewed-by: Paolo Bonzini <[email protected]>
aafcdcc9ebd72b24bf8686f624ff98bb919de5fd
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/aafcdcc9ebd72b24bf8686f624ff98bb919de5fd
2012-04-19 15:48:52+02:00
target-i386: Fix x86_cpuid_set_model_id() Don't assume zeroed cpuid_model[] fields. This didn't break anything yet but QOM properties should be able to set the value to something else without setting an intermediate zero string. Reviewed-by: Eduardo Habhost <[email protected]> Reviewed-by: Igor Mammedov <[email protected]> [AF: Use memset() instead of for loop, suggested by Igor] Signed-off-by: Andreas Färber <[email protected]>
d0a6acf456a2497ce9f70f8366a5b405745ba279
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/d0a6acf456a2497ce9f70f8366a5b405745ba279
2012-04-25 10:45:46+02:00
pci_regs: Fix value of PCI_EXP_TYPE_RC_EC. Value check in PCI Express Base Specification rev 1.1 Signed-off-by: Anthony PERARD <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
15a7a7780675eb99c093e29deefc5d6cc371bd87
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/15a7a7780675eb99c093e29deefc5d6cc371bd87
2012-03-15 17:04:58+02:00
linux-user: Fix exit syscall with QOM CPU For QOM'ified CPUs we cannot g_free() CPUArchState, we must object_delete() the object it is embedded into. Fixes LP#982321 (invalid free() while executing pacman with qemu-arm). Reported-by: Serge Schneider <[email protected]> Reported-by: Russell Keith Davis <[email protected]> Signed-off-by: Andreas Färber <[email protected]> Reviewed-by: Peter Maydell <[email protected]> Tested-by: Serge Schneider <[email protected]> Tested-by: Russell Keith Davis <[email protected]> Signed-off-by: Blue Swirl <[email protected]>
11ea40905259f29e448af816ff00d9d9f0951818
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/11ea40905259f29e448af816ff00d9d9f0951818
2012-04-15 16:54:46+00:00
qed: honor BDRV_O_INCOMING for incoming live migration From original commit with Patchwork-id: 31108 by Stefan Hajnoczi <[email protected]> "The QED image format includes a file header bit to mark images dirty. QED normally checks dirty images on open and fixes inconsistent metadata. This is undesirable during live migration since the dirty bit may be set if the source host is modifying the image file. The check should be postponed until migration completes. Skip operations that modify the image file if the BDRV_O_INCOMING flag is set." Signed-off-by: Benoit Canet <[email protected]> Reviewed-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
2d1f3c2360053dec7dacc0292f52cff17104feff
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/2d1f3c2360053dec7dacc0292f52cff17104feff
2012-04-05 16:29:04+02:00
target-xtensa: define TLB_TEMPLATE for MMU-less cores TLB_TEMPLATE macro specifies TLB geometry in the core configuration. Make TLB_TEMPLATE available for region protection core variants, defining 1 way ITLB and DTLB with 8 entries each. Signed-off-by: Max Filippov <[email protected]>
b96ac3e4cccf0ed92ffad4803d8558ebb6cdbad5
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/b96ac3e4cccf0ed92ffad4803d8558ebb6cdbad5
2012-02-18 01:25:27+04:00
PPC: 440: Default to 440EP CPU Today we're exposing a Virtex 440 CPU to the guest despite the fact that we're telling the guest that we're running on a 440EP one in the device tree. So let's better default to a real 440EP to make things synced again. Signed-off-by: Alexander Graf <[email protected]>
e5ba83c53add51796e8ea787d2b7cb1f9c3cb72d
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/e5ba83c53add51796e8ea787d2b7cb1f9c3cb72d
2012-01-21 05:17:00+01:00
usb: Set USBEndpoint in usb_packet_setup(). With the separation of the device lookup (via usb_find_device) and packet processing we can lookup device and endpoint before setting up the usb packet. So we can initialize USBPacket->ep early and keep it valid for the whole lifecycle of the USBPacket. Also the devaddr and devep fields are not needed any more. Signed-off-by: Gerd Hoffmann <[email protected]>
079d0b7f1eedcc634c371fe05b617fdc55c8b762
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/079d0b7f1eedcc634c371fe05b617fdc55c8b762
2012-02-10 11:31:57+01:00
qapi: Convert migrate The migrate command is one of those commands where HMP and QMP completely mix up together. This made the conversion to the QAPI (which separates the command into QMP and HMP parts) a bit difficult. The first important change to be noticed is that this commit completes the removal of the Monitor object from migration code, started by the previous commit. Another important and tricky change is about supporting the non-detached mode. That is, if the user doesn't pass '-d' the migrate command will lock the monitor and will only release it when migration is finished. To support this in the new HMP command (hmp_migrate()), it is necessary to create a timer which runs every second and checks if the migration is still active. If it is, the timer callback will re-schedule itself to run one second in the future. If the migration has already finished, the monitor lock is released and the user can use it normally. All these changes should be transparent to the user. Signed-off-by: Anthony Liguori <[email protected]> Signed-off-by: Luiz Capitulino <[email protected]>
e1c37d0e94048502f9874e6356ce7136d4b05bdb
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/e1c37d0e94048502f9874e6356ce7136d4b05bdb
2012-03-15 10:39:52-03:00
cutils: extract buffer_is_zero() from qemu-img.c The qemu-img.c:is_not_zero() function checks if a buffer contains all zeroes. This function will come in handy for zero-detection in the block layer, so clean it up and move it to cutils.c. Note that the function now returns true if the buffer is all zeroes. This avoids the double-negatives (i.e. !is_not_zero()) that the old function can cause in callers. Signed-off-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
1a6d39fd71ddf90c5b76026cac4d5ff51fbaf8d8
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/1a6d39fd71ddf90c5b76026cac4d5ff51fbaf8d8
2012-02-09 16:17:50+01:00
qemu-nbd: use common main loop Using a single main loop for sockets will help yielding from the socket coroutine back to the main loop, and later reentering it. Signed-off-by: Paolo Bonzini <[email protected]>
a61c67828dea7c64edaf226cadb45b4ffcc1d411
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/a61c67828dea7c64edaf226cadb45b4ffcc1d411
2011-12-22 11:53:59+01:00
sh_pci: remove sysbus_init_mmio_cb2 usage The isa region is not exposed as a sysbus region because the iobr register contains its address and use it to remap dynamically the region. (Peter Maydell's idea) Reviewed-by: Peter Maydell <[email protected]> Signed-off-by: Benoît Canet <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
8c106233ab179deb6faa8914b6103d3e68431b4b
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/8c106233ab179deb6faa8914b6103d3e68431b4b
2011-12-19 13:36:27-06:00
hw/9pfs: Add new security model mapped-file. This enable us to do passthrough equivalent security model on NFS directory. NFS server mostly do root squashing and don't support xattr. Hence we cannot use 'passthrough' or 'mapped' security model Also added "mapped-xattr" security to indicate earlier "mapped" security model Older name is still supported. POSIX rules regarding ctime update on chmod are not followed by this security model. Signed-off-by: Aneesh Kumar K.V <[email protected]>
2c30dd744aa02d31a8a3b87daaba0b2cb774f346
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/2c30dd744aa02d31a8a3b87daaba0b2cb774f346
2012-01-19 12:21:11+05:30
HACKING: clarify allocation/free recommendations Clarify the allocation/free recommendations; this is mostly just tidying up following the global-search-and-replace done with the conversion to the GLib g_malloc and friends. Reviewed-by: Stefan Hajnoczi <[email protected]> Signed-off-by: Peter Maydell <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
f603a687ff722e9df3e6e4730ca4e267aa2b124e
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/f603a687ff722e9df3e6e4730ca4e267aa2b124e
2011-12-15 09:27:23-06:00
Probe for libcheck by default. Probe for libcheck and build checks (if found) by default. Can be explicitly disabled using --disable-check-utests. Signed-off-by: Gerd Hoffmann <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
25b651bedb917866ef8808f06896fdaed2c189cb
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/25b651bedb917866ef8808f06896fdaed2c189cb
2011-11-01 11:50:12-05:00
exec_close(): accept any negative value as qemu_fclose() error Note that we don't return the unchanged return value back yet, because we need to change all qemu_fclose() callers to accept any positive value as success. Signed-off-by: Eduardo Habkost <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
ce812673dc11de6c067e87a13f5ac0341df7772d
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/ce812673dc11de6c067e87a13f5ac0341df7772d
2011-12-12 11:47:19-06:00
qom: register legacy properties as new style properties (v2) Expose all legacy properties through the new QOM property mechanism. The qdev property types are exposed through the 'legacy<>' namespace. They are always visited as strings since they do their own string parsing. Signed-off-by: Anthony Liguori <[email protected]>
a5296ca9df745d8af319282ab5d85439c211bb10
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/a5296ca9df745d8af319282ab5d85439c211bb10
2011-12-15 09:20:47-06:00
x86/cpuid: Convert remaining strdup() to g_strdup() Fixes missing error checking. Signed-off-by: Markus Armbruster <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]>
d3c481b357ee6f78d3df10ee30407fa05d85b76c
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/d3c481b357ee6f78d3df10ee30407fa05d85b76c
2011-11-10 12:29:50+00:00
checkpatch: remove rule on non-indented labels There are 508 non-indented (non-default) labels, and 511 that are indented. So the rule is debatable at least. Actually, in the common case of labels at the outermost scope, there is really just one place where to put the label, so the rule is just wrong IMHO. Signed-off-by: Paolo Bonzini <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
e589728b6fffaa74f8d535dab5ad65700dc606bb
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/e589728b6fffaa74f8d535dab5ad65700dc606bb
2011-11-01 16:52:05-05:00
Error check find_ram_offset Spotted via code review, we initialize offset to 0 to avoid a compiler warning, but in the unlikely case that offset is never set to something else, we should abort instead of return a value that will almost certainly cause problems. Signed-off-by: Alex Williamson <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
3e837b2c05bc63fe2226baf3c29923d5a688593f
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/3e837b2c05bc63fe2226baf3c29923d5a688593f
2011-11-01 10:58:08-05:00
main-loop: create main-loop.h Signed-off-by: Paolo Bonzini <[email protected]>
44a9b356ad12e63acc1198d1fc356870050a214d
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/44a9b356ad12e63acc1198d1fc356870050a214d
2011-10-21 18:14:30+02:00