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
Copy snapshots out of QCOW2 disk In order to backup snapshots, created from QCOW2 iamge, we want to copy snapshots out of QCOW2 disk to a seperate storage. The following patch adds a new option in "qemu-img": qemu-img convert -f qcow2 -O qcow2 -s snapshot_name src_img bck_img. Right now, it only supports to copy the full snapshot, delta snapshot is on the way. Changes from V1: all the comments from Kevin are addressed: Add read-only checking Fix coding style Change the name from bdrv_snapshot_load to bdrv_snapshot_load_tmp Signed-off-by: Disheng Su <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
51ef67270b1d10e1fcf3de7368dccad1ba0bf9d1
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/51ef67270b1d10e1fcf3de7368dccad1ba0bf9d1
2010-10-22 14:49:35+02:00
add some tests for invalid JSON Signed-off-by: Paolo Bonzini <[email protected]> Signed-off-by: Luiz Capitulino <[email protected]>
7f8fca7c8add770d6533c44d2d001c0442ed0371
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/7f8fca7c8add770d6533c44d2d001c0442ed0371
2010-06-11 15:25:14-03:00
virtio-blk: fix the list operation in virtio_blk_load(). Although it is really rare to get in to the while loop, the list operation in the loop is obviously wrong. Signed-off-by: Yoshiaki Tamura <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
20a81e4d178379381fbd522eda5f664ba2ecdaaa
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/20a81e4d178379381fbd522eda5f664ba2ecdaaa
2010-06-22 14:38:02+02:00
Fix uint8_t comparison with negative value Commit 7bccf57383cca60a778d5c543ac80c9f62d89ef2 missed this one: /src/qemu/ui/vnc-enc-tight.c: In function 'send_sub_rect': /src/qemu/ui/vnc-enc-tight.c:1527: warning: comparison is always true due to limited range of data type Signed-off-by: Blue Swirl <[email protected]>
aee474ebc62686ae8827747b0b1aed85b8122979
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/aee474ebc62686ae8827747b0b1aed85b8122979
2010-07-31 19:40:17+00:00
ppc4xx: correct SDRAM controller warning message condition The message "Truncating memory to %d MiB to fit SDRAM controller limits" should be displayed only when a user chooses an amount of RAM which can't be represented by the PPC 4xx SDRAM controller (e.g. 129MB, which would only be valid if the controller supports a bank size of 1MB). Signed-off-by: Hollis Blanchard <[email protected]>
d23ab92064dd40c668b55544b9b654591e8b963c
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/d23ab92064dd40c668b55544b9b654591e8b963c
2010-08-26 18:18:26+02:00
json-lexer: Handle missing escapes The JSON escape sequence "\/" and "\\" are valid and should be handled. Signed-off-by: Luiz Capitulino <[email protected]>
1041ba7a14260b490f3062f428b014b415a23f38
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/1041ba7a14260b490f3062f428b014b415a23f38
2010-06-11 15:25:14-03:00
target-mips: refactor c{, abs}.cond.fmt insns Move all knowledge about coprocessor-checking and register numbering into the gen_cmp* helper functions. Signed-off-by: Nathan Froyd <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
8153667c718e359368f306e1b2c144596dec5f80
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/8153667c718e359368f306e1b2c144596dec5f80
2010-06-09 16:10:50+02:00
tcg: protect div2 in tcg/tcg-opc.h Signed-off-by: Aurelien Jarno <[email protected]>
30138f2814a3d2748937a32620eb4e68a3c58041
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/30138f2814a3d2748937a32620eb4e68a3c58041
2010-03-20 11:17:03+01:00
alpha-linux-user: Fix sigprocmask. Alpha passes oldset by value in a register, and returns the newset as the return value; as compared to the standard implementation in which both are passed by reference. This requires being able to distinguish negative return values that are not errors. Do this in the same way as the Alpha Linux kernel, by storing a zero in V0 in the implementation of the syscall. At the same time, fix a think-o in the regular sigprocmask path in which we passed the target, rather than the host, HOW value. Signed-off-by: Richard Henderson <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
a5b3b13bedc545b5e571480b9cf47d2d378ad193
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/a5b3b13bedc545b5e571480b9cf47d2d378ad193
2010-05-21 16:22:21+00:00
more alarm timer cleanup The timer_alarm_pending variable is related to the alarm timer but not placed in the struct. Also, in qemu_mod_timer the wrong flag was being tested: the timer is rearmed in the alarm timer "bottom half", so the right flag to test there is the "pending" flag. Finally, I hoisted the NULL checks from alarm_has_dynticks to host_alarm_handler. Signed-off-by: Paolo Bonzini <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
1828be316f6637d43dd4c4f5f32925b17fb8107f
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/1828be316f6637d43dd4c4f5f32925b17fb8107f
2010-03-17 11:14:53-05:00
powerpc/booke: move fdt loading to rom infrastructure It's convinent to use rom to checking overlap, to reset etc. And uImage and ramdisk loading has already moved to it. Also, after we add fdt to rom, free it. Signed-off-by: Liu Yu <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
04088adbe0c5adca66adb6022723362ad90ed0fc
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/04088adbe0c5adca66adb6022723362ad90ed0fc
2010-02-27 16:30:21+01:00
QMP: Introduce commands documentation One of the most important missing feature in QMP today is its supported commands documentation. The plan is to make it part of self-description support, however self-description is a big task we have been postponing for a long time now and still don't know when it's going to be done. In order not to compromise QMP adoption and make users' life easier, this commit adds a simple text documentation which fully describes all QMP supported commands. This is not ideal for a number of reasons (harder to maintain, text-only, etc) but does improve the current situation. To avoid at least divering from the user monitor help and texi snippets, QMP bits are also maintained inside qemu-monitor.hx, and hxtool is extended to generate a single text file from them. Signed-off-by: Jan Kiszka <[email protected]> Signed-off-by: Luiz Capitulino <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
b40292e7115da8814da3d8acd33267202d27d678
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/b40292e7115da8814da3d8acd33267202d27d678
2010-06-01 13:48:43-05:00
PL181 write fix The PL181 data transfer loop incorrectly terminates after the last FIFO word is popped, discarding the last 3 bytes of data on a write transfer. Signed-off-by: Paul Brook <[email protected]>
bc3b26f5356c6de13f887c865c98dcdfac143514
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/bc3b26f5356c6de13f887c865c98dcdfac143514
2010-02-22 15:33:59+00:00
bsd/darwin-user: mmap_frag() users only check for -1 error See also ee636500d6eab44b83f09cb730b67226b70423b1. Signed-off-by: Blue Swirl <[email protected]>
059bca46bbfd7f16cd2ccca631b91334e08d9abb
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/059bca46bbfd7f16cd2ccca631b91334e08d9abb
2010-01-31 13:41:07+00:00
Fix regression in option parsing Commit ec229bbe7 broke invocation without a specific -hda. IOW, qemu foo.img. The lack of an optind update caused an infinite loop. Reported-by: Amit Shah <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
28e68d68b0c88cb5eb0d9fa6c30914a3cdddebfc
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/28e68d68b0c88cb5eb0d9fa6c30914a3cdddebfc
2010-01-27 10:50:14-06:00
block: clean up bdrv_open2 structure a bit Check the whitelist as early as possible instead of continuing the setup, and move all the error handling code to the end of the function. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
6987307ca30aead67e8545934186c92f942710f6
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/6987307ca30aead67e8545934186c92f942710f6
2010-01-26 15:42:02-06:00
target-sh4: MMU: optimize UTLB accesses With the current code, the QEMU TLB is setup to match the read/write mode of the MMU fault. This means when read access is done, the page is setup in read-only mode. When the page is later accessed in write mode, an MMU fault happened, and the page is switch in write-only mode. This flip-flop causes a lot of calls to the MMU code and slow down the emulation. This patch changes the MMU emulation, so that the QEMU TLB is setup to match the UTLB protection key. This impressively increase the speed of the emulation. Signed-off-by: Aurelien Jarno <[email protected]>
628b61a0727e240be911ba9d01b41c58841b2c43
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/628b61a0727e240be911ba9d01b41c58841b2c43
2010-02-09 21:08:05+01:00
QMP: Drop wrong assert() Some commands return a QList of QDicts, which is valid, but will trig the assert(). Just drop it. Reported-by: Nathan Baum <[email protected]> Signed-off-by: Luiz Capitulino <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
810f49b56a5d0cd6848856af51d3093ae9adc7b1
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/810f49b56a5d0cd6848856af51d3093ae9adc7b1
2010-01-08 09:58:40-06:00
virtio-serial-bus: Add a port 'name' property for port discovery in guests The port 'id' or number is internal state between the guest kernel and our bus implementation. This is invocation-dependent and isn't part of the guest-host ABI. To correcly enumerate and map ports between the host and the guest, the 'name' property is used. Example: -device virtserialport,name=org.qemu.port.0 This invocation will get us a char device in the guest at: /dev/virtio-ports/org.qemu.port.0 which can be a symlink to /dev/vport0p3 This 'name' property is exposed by the guest kernel in a sysfs attribute: /sys/kernel/virtio-ports/vport0p3/name A simple udev script can pick up this name and create the symlink mentioned above. Signed-off-by: Amit Shah <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
160600fd137a3a6f0d6a09579cf2282152f842ab
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/160600fd137a3a6f0d6a09579cf2282152f842ab
2010-01-20 08:25:23-06:00
VNC: Cache client info at connection time When a disconnection happens the client's socket on QEMU side may become invalid, this way it won't be possible to query it to get client information, which is going to be needed by the future QMP VNC_DISCONNECTED event. To always have this information available we query the socket at connection time and cache the client info in struct VncState. Two function are introduced to perform this job. vnc_client_cache_addr() is called right when the connection is made, however the authentication information is not available at that moment so vnc_client_cache_auth() is called from protocol_client_init() to get auth info. Signed-off-by: Luiz Capitulino <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
4a80dba3920cf8e0829b9ce4769842ce94748bf4
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/4a80dba3920cf8e0829b9ce4769842ce94748bf4
2010-01-19 16:31:03-06:00
MAC DBDMA: store register values in native endianness Store the register values in native endianness, by dropping all the endianness conversion functions, and converting the endianness in dbdma_readl/dbdma_writel instead. Also guard the endianness conversion with TARGET_WORDS_BIGENDIAN to simulate the backward connection of the bus. Signed-off-by: Aurelien Jarno <[email protected]>
ad674e53b5cce265fadafbde2c6a4f190345cd00
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/ad674e53b5cce265fadafbde2c6a4f190345cd00
2009-12-24 19:40:29+01:00
vnc: hextile: do not generate ForegroundSpecified and SubrectsColoured tiles This violates the RFB specification (section 6.6.4). It happens to work with most clients but it's still wrong. Reported-by: Yaniv Kaul <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
02c2b87fff97e77a1f6033fb09f53afa267c0c1e
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/02c2b87fff97e77a1f6033fb09f53afa267c0c1e
2009-12-18 11:26:25-06:00
target-i386: Update CPUID feature set for TCG The CPUID features QEMU presented to the guest were not up-to-date with QEMU's emulated feature set. Add the missing bits of recent (and not so recent) additions to QEMU's emulation engine. For stability reasons only the user mode usable bits are exposed for now, features like Monitor or CR8LEG are left out. Signed-off-by: Andre Przywara <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
f1e00a9cf326acc1f2386a72525af8859852e1df
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/f1e00a9cf326acc1f2386a72525af8859852e1df
2009-12-13 20:48:20+01:00
Update SeaBIOS - 7d09d0e Fix virtio compile errors on various gcc versions. - 89acfa3 Support for booting from virtio disks - 6d66316 smbios: avoid counting io hole as ram - e5cd945 Fix error causing USB HID "boot" protocol to not be enabled. - 0e88576 Add support for USB mice. - dd5a8a6 When USB keyboard active, don't send keyboard commands to ps2 port. - 5718d56 Document usb-hid.c functions. - e438b0c Further parallelize init when using CONFIG_THREAD_OPTIONROMS. - f59b5ac Handle unknown function addresses in tools/checkstack.py. - 9ba1dea Simplify build by manually resolving external symbols in layoutrom.py. - 698d3f9 USB EHCI should yield() whil waiting for controller to ack reset. - f9a774c Add __attribute__((__malloc__)) declaration to internal malloc funcs. - b7045ce Minor - remove redundant check from ata_try_dma. - 67f6d37 Fix possible unitialized variable issue in usb msc. - a7eb8fc Some improvements to optionrom preemption support. - d28b0fe Refactor USB hub code. - ba28541 Prep version for next release. - 12bffd5 Update version to 0.6.0. - 87ab2fb Improve USB EHCI timing. - d705e5a Disable inlining on old compilers. - bca0736 Force use of indirect function calls in inline assembler. - d7eb27e Don't move EBDA while an optionrom is running (CONFIG_THREAD_OPTIONROMS). - 7415270 Call to int1552 (from int1346) should set regs->dl. - 9dc243e Adjust debug levels of device discovery. - d9c9361 Default CONFIG_COREBOOT_FLASH on; make depend on CONFIG_COREBOOT. - c35e1e5 Restore segment limits in handle_1589 code. - 11cc662 Extend time for rtc to be ready. - 4ed378a Backup and restore registers when calling out to user funcs. - 68c5139 Enable irqs in kbd/clock calls that caller might "spin" on. - f628244 Process event on ps2 keyboard irq even if event already read. - a5d8458 Revert "Unify ps2 port data processing." - b9ed5e2 Handle variable length return of ps2 port GETID command. - 67a9eec Prevent ps2 irqs from messing up ps2 init. - 6704cf9 Revert "Rework disabling of ps2 port irqs." - 808939c Fix smp cpu detect on gcc 4.5. - a979c1c Improvements to tools/checkstack.py. - 190cc62 Add USB EHCI controller support. - 0770d67 Some USB UHCI and OHCI fixes and cleanups. - bfe7ca7 Minor - USB OHCI interrupt queue should be one larger. - 09e2f7c Reduce size of USB 'struct uhci_td'. - 406fad6 Dynamically allocate USB controller structures. - 4547eb9 Replace USB encoded 'u32 endp' scheme with explicit struct fields. - 8ebcac0 Further parallelize USB init by launching a thread per usb port. - e908665 Introduce simple "mutex" locking code. - 3b79f8b Only compile usb-hub.c and paravirt.c with 32bit code. - 357bdfa Prefer passing a USB "pipe" structure over a USB endp encoding. - 7fb8ba8 Add a generic "internal error" warning function. Signed-off-by: Anthony Liguori <[email protected]>
14ac15d3ac8e0ef1c91204e2ac772b6412a6b99e
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/14ac15d3ac8e0ef1c91204e2ac772b6412a6b99e
2010-05-14 10:55:58-05:00
pci: clean up of pci_init_wmask(). This patch replaces for loop by memset in pci_init_wmask(). Signed-off-by: Isaku Yamahata <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
3e21ffc954c09e90b25a446813ff1c0b26817aef
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/3e21ffc954c09e90b25a446813ff1c0b26817aef
2009-12-01 17:52:01+02:00
Add a JSON parser This is the third and final stage of the JSON parser. It parses lexical tokens performing grammar validation and creating the final QObject representation. It uses a recursive decent parser. Signed-off-by: Anthony Liguori <[email protected]>
4a5fcab7acc55495d0a617eeebbbeaebc1872dbf
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/4a5fcab7acc55495d0a617eeebbbeaebc1872dbf
2009-11-17 08:49:39-06:00
default devices: core code & serial lines. Qemu creates a default serial line for you in case you didn't specify one on the command line. Right now this is tied to the '-serial <chardev>' command line switch, which in turn causes trouble if you are creating your serial line via '-device isa-serial,<props>'. This patch adds a variable default_serial which says whenever a default serial line should be added. It is enabled by default. It is cleared when qemu finds '-serial' or '-device isa-serial' on the command line. Part of the patch is some infrastructure for the '-device $driver' checking (default_driver_check function) which will also be used by the other patches of this series. Signed-off-by: Gerd Hoffmann <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
998bbd74b9d813b14a3a3b5009a5d5a48c7dce51
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/998bbd74b9d813b14a3a3b5009a5d5a48c7dce51
2009-12-12 07:59:42-06:00
Rename QEMU_TIMER_* to QEMU_CLOCK_* These constants select clocks, not timers. And init_timers initializes clocks. Signed-off-by: Jan Kiszka <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
0fdddf80a88ac2efe068990d1878f472bb6b95d9
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/0fdddf80a88ac2efe068990d1878f472bb6b95d9
2009-10-05 09:32:44-05:00
target-i386: add lock mov cr0 = cr8 AMD CPUs featuring a shortcut to access CR8 even from 32-bit mode. If you use the LOCK prefix with "mov CR0", it accesses CR8 instead. This behavior is guarded by the CR8_LEGACY CPUID bit (Fn8000_0001:ECX[1]). Signed-off-by: Andre Przywara <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
ccd59d09a9d0c75b86185b89d8246e40b5f01168
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/ccd59d09a9d0c75b86185b89d8246e40b5f01168
2009-10-04 14:04:40+02:00
microblaze: Compute masks for alignment checks at translation time. Thanks to Blue Swirl for reporting. Signed-off-by: Edgar E. Iglesias <[email protected]>
3aa80988430f41847e1b78d165440ac03503b6d0
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/3aa80988430f41847e1b78d165440ac03503b6d0
2009-09-03 22:28:21+02:00
target-ppc: retain l{w,d}arx loaded value We do this so we can check on the corresponding stc{w,d}x. whether the value has changed. It's a poor man's form of implementing atomic operations and is valid only for NPTL usermode Linux emulation. Signed-off-by: Nathan Froyd <[email protected]> Signed-off-by: malc <[email protected]>
18b21a2f83a26c3d6a9e7f0bdc4e8eb2b177e8f6
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/18b21a2f83a26c3d6a9e7f0bdc4e8eb2b177e8f6
2009-08-03 20:33:41+04:00
Introduce QEMU_CLOCK_HOST Despite its name QEMU_CLOCK_REALTIME is (normally) not using CLOCK_REALTIME / the host system time as base. In order to allow also non-trivial RTC emulations (MC146818) to follow the host time instead of the virtual guest time, introduce the new clock type QEMU_CLOCK_HOST. It is unconditionally based on CLOCK_REALTIME, thus will follow system time changes of the host. The only limitation of its current implementation is that pending host_clock timers may not fire early if the host time is pushed forward beyond their expiry. So far no urgent need to overcome this limitation was identified, so it's left as simple as it is (expiry on next alarm timer tick). Signed-off-by: Jan Kiszka <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
21d5d12bb0ad4de7cc92a7a2d018e7ec0f9fd148
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/21d5d12bb0ad4de7cc92a7a2d018e7ec0f9fd148
2009-10-05 09:32:45-05:00
Ignore -Waddress for alsaaudio.c /usr/include/alsa/pcm.h contains: #define snd_pcm_sw_params_alloca(ptr) do { assert(ptr); *ptr = (snd_pcm_sw_params_t *) alloca(snd_pcm_sw_params_sizeof()); memset(*ptr, 0, snd_pcm_sw_params_sizeof()); } while (0) The assert generates: "error: the address of 'sw_params' will always evaluate as 'true'" which combined with -Werror prevents alsaaudio.o from being built with certain versions of GCC.
2637872ba82baf9730ba0653129027a64e4f81e3
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/2637872ba82baf9730ba0653129027a64e4f81e3
2009-07-17 05:57:04+04:00
net: Avoid gcc'ism in net_host_device_add >> + if (net_client_init(device, opts ? : "") < 0) { > > Is this a gcc extension? Do we want to introduce this construct to the > code base. Valid remark, fix below. Thanks, Jan --------> Signed-off-by: Jan Kiszka <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
206ab6e090eeddce71372041454d50d93a63017d
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/206ab6e090eeddce71372041454d50d93a63017d
2009-05-01 09:44:10-05:00
Add named initializers. Signed-off-by: Paul Brook <[email protected]> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7091 c046a42c-6fe2-441c-8c8c-71466251a162
b2ee0ce237ea9eeaa2629ce27ead9321cf929b2a
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/b2ee0ce237ea9eeaa2629ce27ead9321cf929b2a
2009-04-11 17:41:32+00:00
Sparc32: fix fdc io_base On some Sparc32 machines, fdc is located above 4G limit, so uint32_t is not appropriate type for io_base. Signed-off-by: Blue Swirl <[email protected]>
e81337624e00e9115c82c5b98e288a5942319605
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/e81337624e00e9115c82c5b98e288a5942319605
2009-07-17 11:01:48+00:00
kvm: Apply SMM-already-initialized workaround on reset (Jan Kiszka) Signed-off-by: Jan Kiszka <[email protected]> Signed-off-by: Anthony Liguori <[email protected]> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7136 c046a42c-6fe2-441c-8c8c-71466251a162
3c892168a02b4ff9ef8c398599940b8f16a32437
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/3c892168a02b4ff9ef8c398599940b8f16a32437
2009-04-17 14:26:21+00:00
target-mips: get rid of tests on env->user_mode_only Replace runtime checks on env->user_mode_only by compile time checks on CONFIG_USER_ONLY. Signed-off-by: Aurelien Jarno <[email protected]> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6276 c046a42c-6fe2-441c-8c8c-71466251a162
932e71cd57bab4e6206e1355c6425290721bbe34
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/932e71cd57bab4e6206e1355c6425290721bbe34
2009-01-12 21:33:13+00:00
Fix PXA2xx framebuffer dirty checking. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6019 c046a42c-6fe2-441c-8c8c-71466251a162
92fb73b9b0c0ba40d1dbef61dc798bf9499d084a
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/92fb73b9b0c0ba40d1dbef61dc798bf9499d084a
2008-12-13 23:57:01+00:00
raw-posix: refactor AIO support Currently the raw-posix.c code contains a lot of knowledge about the asynchronous I/O scheme that is mostly implemented in posix-aio-compat.c. All this code does not really belong here and is getting a bit in the way of implementing native AIO on Linux. So instead move all the guts of the AIO implementation into posix-aio-compat.c (which might need a better name, btw). There's now a very small interface between the AIO providers and raw-posix.c: - an init routine is called from raw_open_common to return an AIO context for this drive. An AIO implementation may either re-use one context for all drives, or use a different one for each as the Linux native AIO support will do. - an submit routine is called from the aio_reav/writev methods to submit an AIO request There are no indirect calls involved in this interface as we need to decide which one to call manually. We will only call the Linux AIO native init function if we were requested to by vl.c, and we will only call the native submit function if we are asked to and the request is properly aligned. That's also the reason why the alignment check actually does the inverse move and now goes into raw-posix.c. The old posix-aio-compat.h headers is removed now that most of it's content is private to posix-aio-compat.c, and instead we add a new block/raw-posix-aio.h headers is created containing only the tiny interface between raw-posix.c and the AIO implementation. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
9ef91a677110ec200d7b2904fc4bcae5a77329ad
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/9ef91a677110ec200d7b2904fc4bcae5a77329ad
2009-08-27 20:30:22-05:00
target-ppc: initialize MSR appropriately in user-mode Mask the initial MSR with the mask from the PowerPC CPU definition. Noticed by Nathan Froyd. Signed-off-by: Aurelien Jarno <[email protected]> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5964 c046a42c-6fe2-441c-8c8c-71466251a162
fe463b7dbc16cc66f3b9a8b7be197fb340378fa3
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/fe463b7dbc16cc66f3b9a8b7be197fb340378fa3
2008-12-10 15:02:24+00:00
Run timers from host alarm timer callback This further cleans up the main loop getting it a lot closer to what a main loop should be. Signed-off-by: Anthony Liguori <[email protected]> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5636 c046a42c-6fe2-441c-8c8c-71466251a162
5bec1d1deac8826de21081a4157e14fa48b12805
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/5bec1d1deac8826de21081a4157e14fa48b12805
2008-11-05 21:04:35+00:00
target-i386: SVM: acknowledge interrupt only after it is taken SVM specifies that the V_IRQ mask is only to be removed, if the interrupt that is to be delivered actually is delivered. As of the SVM rewrite, this mask is always unmasked when the main cpu loop is processed, leaving a corner case where calling the interrupt handler causes a #PF. In that case (booting Linux / starting gfxboot) the current implementation tells the VMM the interrupt is taken, even though it is not. This patch modifies the VIRQ unmasking to occur after do_interrupt, making gfxboot work again. Signed-off-by: Alexander Graf <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6008 c046a42c-6fe2-441c-8c8c-71466251a162
d40c54d641148b29457c2cb2abf6038bcea889c1
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/d40c54d641148b29457c2cb2abf6038bcea889c1
2008-12-13 12:33:02+00:00
alpha: improve testsuite misc tiny patches: * add a 'check' target to the Makefile * split code in crt.s to create the _exit syscall; also use the value of main() as exit status Signed-off-by: Tristan Gingold <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5244 c046a42c-6fe2-441c-8c8c-71466251a162
a986fcc469cd63d56d7cc52df132c010c1f23a21
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/a986fcc469cd63d56d7cc52df132c010c1f23a21
2008-09-17 22:04:37+00:00
Fix tswap size p in this case is uint32_t * e1/e2 are unsigned ints initialized from arithmetics performed on unsigned longs The mistake was, probably, never noticed due to the absence of any big endian linux-user host. The types e1/e2 and p begs the quesiton why this function takes longs at all. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5036 c046a42c-6fe2-441c-8c8c-71466251a162
d538e8f50d89a66ae14a2cf351d2e0e5365d463b
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/d538e8f50d89a66ae14a2cf351d2e0e5365d463b
2008-08-20 22:39:26+00:00
Make MAXTL dynamic, bounds check tl when indexing git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4942 c046a42c-6fe2-441c-8c8c-71466251a162
c19148bd8f5c2800265372d3554035efde1c5517
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/c19148bd8f5c2800265372d3554035efde1c5517
2008-07-25 07:42:14+00:00
Allow to register a callback with fw_cfg_add_callback() fw_cfg_add_callback() checks if key has FW_CFG_WRITE_CHANNEL bit set after masking the key with FW_CFG_ENTRY_MASK. But as FW_CFG_ENTRY_MASK is ~(FW_CFG_WRITE_CHANNEL | FW_CFG_ARCH_LOCAL), the bit is never set and function exits. This patch corrects this by checking the bit before masking the value. Signed-by-off: Laurent Vivier <[email protected]> Acked-by: Gleb Natapov <[email protected]> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5978 c046a42c-6fe2-441c-8c8c-71466251a162
85df0de4cfe54fd64df7e37448cd152d0c9199a4
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/85df0de4cfe54fd64df7e37448cd152d0c9199a4
2008-12-11 17:30:50+00:00
No write-protect detect diode on Mainstone II. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3790 c046a42c-6fe2-441c-8c8c-71466251a162
8543243c29a60f102d7a3d98027b46bc8cdac421
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/8543243c29a60f102d7a3d98027b46bc8cdac421
2007-12-09 23:29:34+00:00
Robustify source directory check. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3960 c046a42c-6fe2-441c-8c8c-71466251a162
724db11840576deb3504aad7cfca06bf1e997799
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/724db11840576deb3504aad7cfca06bf1e997799
2008-02-03 19:20:13+00:00
temporary hack to handle register shortage with dyngen for qemu_st64() git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4438 c046a42c-6fe2-441c-8c8c-71466251a162
6a8d7b763772691053d1971f29e64b1e296962cf
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/6a8d7b763772691053d1971f29e64b1e296962cf
2008-05-12 13:49:14+00:00
suppressed invalid test git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1767 c046a42c-6fe2-441c-8c8c-71466251a162
023e9351d0b8d2643058caff595ea4bc8d6003fa
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/023e9351d0b8d2643058caff595ea4bc8d6003fa
2006-03-02 21:52:18+00:00
Prevent SEGV in VNC server for old clients (Anthony Liguori). If the client does not support the DesktopResize pseudo-encoding, then vs->{width,height} may be smaller than ds->{width,height}. dirty_row is sized according to vs->{width,height}, not ds->{width,height}. This patch makes sure to bound the update region to vs->{width,height} to avoid a possible SEGV. Signed-off-by: Anthony Liguori <[email protected]> Reported-by: Marcelo Tosatti <[email protected]> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4502 c046a42c-6fe2-441c-8c8c-71466251a162
788abf8e41e5fa33bfcd2245c3e3eb47d60ceef7
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/788abf8e41e5fa33bfcd2245c3e3eb47d60ceef7
2008-05-20 00:07:58+00:00
added -cpu option for x86 - fixed glibc hack in case the global variables are moved git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3548 c046a42c-6fe2-441c-8c8c-71466251a162
46027c07de45d84441b40cc2db675efd29588af0
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/46027c07de45d84441b40cc2db675efd29588af0
2007-11-08 13:56:19+00:00
loop insn fix for non x86 hosts git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1305 c046a42c-6fe2-441c-8c8c-71466251a162
0b9dc5e4c3b96a1e41ab7d660ba2ee2a83380e09
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/0b9dc5e4c3b96a1e41ab7d660ba2ee2a83380e09
2005-02-21 20:23:59+00:00
Handle invalid accesses as SIGILL for mips/mipsel userland emulation. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2235 c046a42c-6fe2-441c-8c8c-71466251a162
ca7c2b1b9f984f622c7495004483016fee61e489
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/ca7c2b1b9f984f622c7495004483016fee61e489
2006-12-10 22:08:10+00:00
fixed invalid signal masking git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@170 c046a42c-6fe2-441c-8c8c-71466251a162
03d843ddf271e96b6f8b2cd8a58f7a2004fcfaf9
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/03d843ddf271e96b6f8b2cd8a58f7a2004fcfaf9
2003-05-14 22:41:55+00:00
avoid segfault if transient invalid text resolution git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@727 c046a42c-6fe2-441c-8c8c-71466251a162
3294b949eb97f41e29432830370eba62a6d5f28d
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/3294b949eb97f41e29432830370eba62a6d5f28d
2004-04-15 22:35:16+00:00
target/xtensa: disas/xtensa: fix coverity warnings Coverity warnings CID 1385146, 1385148 1385149 and 1385150 point that xtensa_opcode_num_operands and xtensa_format_num_slots may return -1 even when xtensa_opcode_decode and xtensa_format_decode succeed. In that case unsigned counters used to iterate through operands/slots will not do the right thing. Make counters and loop bounds signed to fix the warnings. Signed-off-by: Max Filippov <[email protected]>
847a6473206607bc6c84f6c537a0fe603ff7aaa6
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/847a6473206607bc6c84f6c537a0fe603ff7aaa6
2018-01-22 11:54:58-08:00
hw/isa: Replace fprintf(stderr, "*\n" with error_report() Replace a large number of the fprintf(stderr, "*\n" calls with error_report(). The functions were renamed with these commands and then compiler issues where manually fixed. find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N;N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N;N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N;N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N;N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N;N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N;N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \ {} + find ./* -type f -exec sed -i \ 'N; {s|fprintf(stderr, "\(.*\)\\n"\(.*\));|error_report("\1"\2);|Ig}' \ {} + Some lines where then manually tweaked to pass checkpatch. Signed-off-by: Alistair Francis <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Signed-off-by: Thomas Huth <[email protected]>
1081ed2c4b71b5fe8bd31f6de8cdaa630c8acfd3
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/1081ed2c4b71b5fe8bd31f6de8cdaa630c8acfd3
2018-01-22 09:51:00+01:00
hw/intc/arm_gic: Prevent the GIC from signaling an IRQ when it's "active and pending" In the GIC, when an IRQ is acknowledged, its state goes from "pending" to: - "active" if the corresponding IRQ pin has been de-asserted - "active and pending" otherwise. The GICv2 manual states that when a IRQ becomes active (or active and pending), the GIC should either signal another (higher priority) IRQ to the CPU if there is one, or de-assert the CPU IRQ pin. The current implementation of the GIC in QEMU does not check if the IRQ is already active when looking for pending interrupts with sufficient priority in gic_update(). This can lead to signaling an interrupt that is already active. This usually happens when splitting priority drop and interrupt deactivation. On priority drop, the IRQ stays active until deactivation. If it becomes pending again, chances are that it will be incorrectly selected as best_irq in gic_update(). This commit fixes this by checking if the IRQ is not already active when looking for best_irq in gic_update(). Note that regarding the ARM11MPCore GIC version, the corresponding manual is not clear on that point, but it has has no priority drop/interrupt deactivation separation, so this case should not happen. Signed-off-by: Luc MICHEL <[email protected]> Message-id: [email protected] Reviewed-by: Peter Maydell <[email protected]> Signed-off-by: Peter Maydell <[email protected]>
91f4e18d9550a19ccb33fdac37ab0caf084549c0
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/91f4e18d9550a19ccb33fdac37ab0caf084549c0
2018-01-25 11:45:29+00:00
qapi: Implement boxed types for commands/events Turn on the ability to pass command and event arguments in a single boxed parameter, which must name a non-empty type (although the type can be a struct with all optional members). For structs, it makes it possible to pass a single qapi type instead of a breakout of all struct members (useful if the arguments are already in a struct or if the number of members is large); for other complex types, it is now possible to use a union or alternate as the data for a command or event. The empty type may be technically feasible if needed down the road, but it's easier to forbid it now and relax things to allow it later, than it is to allow it now and have to special case how the generated 'q_empty' type is handled (see commit 7ce106a9 for reasons why nothing is generated for the empty type). An alternate type is never considered empty, but now that a boxed type can be either an object or an alternate, we have to provide a trivial QAPISchemaAlternateType.is_empty(). The new call to arg_type.is_empty() during QAPISchemaCommand.check() requires that we first check the type in question; but there is no chance of introducing a cycle since objects do not refer back to commands. We still have a split in syntax checking between ad-hoc parsing up front (merely validates that 'boxed' has a sane value) and during .check() methods (if 'boxed' is set, then 'data' must name a non-empty user-defined type). Generated code is unchanged, as long as no client uses the new feature. Signed-off-by: Eric Blake <[email protected]> Message-Id: <[email protected]> Reviewed-by: Markus Armbruster <[email protected]> [Test files renamed to *-boxed-*] Signed-off-by: Markus Armbruster <[email protected]>
c818408e449ea55371253bd4def1c1dc87b7bb03
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/c818408e449ea55371253bd4def1c1dc87b7bb03
2016-07-19 13:21:08+02:00
i386: hvf: refactor event injection code for hvf This patch refactors the event-injection code for hvf by using the appropriate fields already provided by CPUX86State. At vmexit, it fills these fields so that hvf_inject_interrupts can just retrieve them without calling into hvf. Signed-off-by: Sergio Andres Gomez Del Real <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
b7394c8394d38cb38b6db14eb431cac7a91e7140
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/b7394c8394d38cb38b6db14eb431cac7a91e7140
2017-12-22 15:01:48+01:00
spapr: Treat Hardware Transactional Memory (HTM) as an optional capability This adds an spapr capability bit for Hardware Transactional Memory. It is enabled by default for pseries-2.11 and earlier machine types. with POWER8 or later CPUs (as it must be, since earlier qemu versions would implicitly allow it). However it is disabled by default for the latest pseries-2.12 machine type. This means that with the latest machine type, HTM will not be available, regardless of CPU, unless it is explicitly enabled on the command line. That change is made on the basis that: * This way running with -M pseries,accel=tcg will start with whatever cpu and will provide the same guest visible model as with accel=kvm. - More specifically, this means existing make check tests don't have to be modified to use cap-htm=off in order to run with TCG * We hope to add a new "HTM without suspend" feature in the not too distant future which could work on both POWER8 and POWER9 cpus, and could be enabled by default. * Best guesses suggest that future POWER cpus may well only support the HTM-without-suspend model, not the (frankly, horribly overcomplicated) POWER8 style HTM with suspend. * Anecdotal evidence suggests problems with HTM being enabled when it wasn't wanted are more common than being missing when it was. Signed-off-by: David Gibson <[email protected]> Reviewed-by: Greg Kurz <[email protected]>
ee76a09fc72cfbfab2bb5529320ef7e460adffd8
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/ee76a09fc72cfbfab2bb5529320ef7e460adffd8
2018-01-17 09:35:24+11:00
ui: remove unreachable code in vnc_update_client A previous commit: commit 5a8be0f73d6f60ff08746377eb09ca459f39deab Author: Gerd Hoffmann <[email protected]> Date: Wed Jul 13 12:21:20 2016 +0200 vnc: make sure we finish disconnect Added a check for vs->disconnecting at the very start of the vnc_update_client method. This means that the very next "if" statement check for !vs->disconnecting always evaluates true, and is thus redundant. This in turn means the vs->disconnecting check at the very end of the method never evaluates true, and is thus unreachable code. Signed-off-by: Daniel P. Berrange <[email protected]> Reviewed-by: Darren Kenny <[email protected]> Reviewed-by: Marc-André Lureau <[email protected]> Message-id: [email protected] Signed-off-by: Gerd Hoffmann <[email protected]>
c53df961617736f94731d94b62c2954c261d2bae
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/c53df961617736f94731d94b62c2954c261d2bae
2018-01-12 13:48:53+01:00
s390x/kvm: factor out build_channel_report_mcic() into cpu.h We'll need it later on in two places. Refactor it to just indicate the validity bits. While at it, introduce a define for the used CR14 bit (we'll also need later on). Signed-off-by: David Hildenbrand <[email protected]> Message-Id: <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Signed-off-by: Cornelia Huck <[email protected]>
b700d75eda81c371c575b759de8e260d9f147494
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/b700d75eda81c371c575b759de8e260d9f147494
2017-12-14 17:56:54+01:00
nvic: Make systick banked For the v8M security extension, there should be two systick devices, which use separate banked systick exceptions. The register interface is banked in the same way as for other banked registers, including the existence of an NS alias region for secure code to access the nonsecure timer. Signed-off-by: Peter Maydell <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Message-id: [email protected]
27f26bfed923e4c68a1acb61fdafcd0bc63abf71
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/27f26bfed923e4c68a1acb61fdafcd0bc63abf71
2017-12-13 17:59:26+00:00
Use HTTPS for qemu.org and other domains qemu.org enabled HTTPS in 2017 and it should be used instead of HTTP. There are also URLs to json.org, openvpn.net, and other domains that support HTTPS. This patch updates the qemu.org domains everywhere and also third-party domains that I have checked. Signed-off-by: Stefan Hajnoczi <[email protected]> Message-id: [email protected] Signed-off-by: Peter Maydell <[email protected]>
70b7fba9871fb282b4806a2445a1e82a7a51da10
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/70b7fba9871fb282b4806a2445a1e82a7a51da10
2017-11-21 13:34:13+00:00
qcow2: Unaligned zero cluster in handle_alloc() We should check whether the cluster offset we are about to use is actually valid; that is, whether it is aligned to cluster boundaries. Reported-by: R. Nageswara Sastry <[email protected]> Buglink: https://bugs.launchpad.net/qemu/+bug/1728643 Buglink: https://bugs.launchpad.net/qemu/+bug/1728657 Signed-off-by: Max Reitz <[email protected]> Message-id: [email protected] Reviewed-by: Eric Blake <[email protected]> Reviewed-by: Alberto Garcia <[email protected]> Signed-off-by: Max Reitz <[email protected]>
93bbaf03ff7fd490e823814b8f5d6849a7b71a64
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/93bbaf03ff7fd490e823814b8f5d6849a7b71a64
2017-11-17 18:21:30+01:00
hw/arm: Silence xlnx-ep108 deprecation warning during tests The new deprecation warning for the xlnx-ep108 machine also pops up during "make check" which is kind of confusing. Silence it if testing mode is enabled. Signed-off-by: Thomas Huth <[email protected]> Reviewed-by: Alistair Francis <[email protected]> Acked-by: Wei Huang <[email protected]> Message-id: [email protected] Reviewed-by: Peter Maydell <[email protected]> Signed-off-by: Peter Maydell <[email protected]>
b350ae138fcb062f49904f5115cc5fe188a02906
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/b350ae138fcb062f49904f5115cc5fe188a02906
2017-11-20 13:48:27+00:00
tests: Add check-qobject for equality tests Add a new test file (check-qobject.c) for unit tests that concern QObjects as a whole. Its only purpose for now is to test the qobject_is_equal() function. Signed-off-by: Max Reitz <[email protected]> Message-id: [email protected] Reviewed-by: Eric Blake <[email protected]> Signed-off-by: Max Reitz <[email protected]>
1b76e8389b2cba75e158488f0f6fb72a04f36b1d
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/1b76e8389b2cba75e158488f0f6fb72a04f36b1d
2017-11-17 18:21:30+01:00
qcow2: don't permit changing encryption parameters Currently if trying to change encryption parameters on a qcow2 image, qemu-img will abort. We already explicitly check for attempt to change encrypt.format but missed other parameters like encrypt.key-secret. Rather than list each parameter, just blacklist changing of all parameters with a 'encrypt.' prefix. Signed-off-by: Daniel P. Berrange <[email protected]> Reviewed-by: Alberto Garcia <[email protected]> Reviewed-by: Eric Blake <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
f66afbe26f0c093d639610d70d16d7cc3183b652
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/f66afbe26f0c093d639610d70d16d7cc3183b652
2017-11-17 13:35:59+01:00
qemu-img: Add find_nonzero() During 'qemu-img compare', when we are checking that an allocated portion of one file is all zeros, we don't need to waste time computing how many additional sectors after the first non-zero byte are also non-zero. Create a new helper find_nonzero() to do the check for a first non-zero sector, and rebase check_empty_sectors() to use it. The new interface intentionally uses bytes in its interface, even though it still crawls the buffer a sector at a time; it is robust to a partial sector at the end of the buffer. Signed-off-by: Eric Blake <[email protected]> Reviewed-by: John Snow <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
debb38a4cec34709604a00e23368e6cd8932fe3d
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/debb38a4cec34709604a00e23368e6cd8932fe3d
2017-10-26 14:45:57+02:00
target/i386: check CF_PARALLEL instead of parallel_cpus Thereby decoupling the resulting translated code from the current state of the system. Reviewed-by: Richard Henderson <[email protected]> Signed-off-by: Emilio G. Cota <[email protected]> Signed-off-by: Richard Henderson <[email protected]>
b5e3b4c2aca8eb5a9cfeedfb273af623f17c3731
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/b5e3b4c2aca8eb5a9cfeedfb273af623f17c3731
2017-10-24 13:53:41-07:00
s390x/kvm: factor out SIGP code into sigp.c We want to use the same code base for TCG, so let's cleanly factor it out. The sigp mutex is currently not really needed, as everything is protected by the iothread mutex. But this could change later, so leave it in place and initialize it properly from common code. Reviewed-by: Richard Henderson <[email protected]> Signed-off-by: David Hildenbrand <[email protected]> Message-Id: <[email protected]> Signed-off-by: Cornelia Huck <[email protected]>
74b4c74d5efb0a489bdf0acc5b5d0197167e7649
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/74b4c74d5efb0a489bdf0acc5b5d0197167e7649
2017-10-20 13:32:10+02:00
block: Allow NULL file for bdrv_get_block_status() Not all callers care about which BDS owns the mapping for a given range of the file. This patch merely simplifies the callers by consolidating the logic in the common call point, while guaranteeing a non-NULL file to all the driver callbacks, for no semantic change. The only caller that does not care about pnum is bdrv_is_allocated, as invoked by vvfat; we can likewise add assertions that the rest of the stack does not have to worry about a NULL pnum. Furthermore, this will also set the stage for a future cleanup: when a caller does not care about which BDS owns an offset, it would be nice to allow the driver to optimize things to not have to return BDRV_BLOCK_OFFSET_VALID in the first place. In the case of fragmented allocation (for example, it's fairly easy to create a qcow2 image where consecutive guest addresses are not at consecutive host addresses), the current contract requires bdrv_get_block_status() to clamp *pnum to the limit where host addresses are no longer consecutive, but allowing a NULL file means that *pnum could be set to the full length of known-allocated data. Signed-off-by: Eric Blake <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
298a1665a2800f7264e483c2dd1f551574243a2f
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/298a1665a2800f7264e483c2dd1f551574243a2f
2017-10-26 14:45:57+02:00
gitignore: ignore check-qlit test test introduced in 382176b4d78e070d119af8e0dcd00884c11bbec2 Signed-off-by: Carlo Marcelo Arenas Belón <[email protected]> Reviewed-by: Eric Blake <[email protected]> Signed-off-by: Michael Tokarev <[email protected]>
439e91af8f24c308e753b9417d6c599d6007595a
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/439e91af8f24c308e753b9417d6c599d6007595a
2017-10-16 20:57:06+03:00
sockets: factor out create_fast_reuse_socket Another refactoring step to prepare for fixing the problem exposed with the test-listen test in the previous commit Signed-off-by: Knut Omang <[email protected]> Reviewed-by: Daniel P. Berrange <[email protected]> Signed-off-by: Daniel P. Berrange <[email protected]>
39f80521df1e7f1252960d1ada2bd1a41d4d2cd3
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/39f80521df1e7f1252960d1ada2bd1a41d4d2cd3
2017-10-16 16:55:08+01:00
block: Convert bdrv_get_block_status_above() to bytes We are gradually moving away from sector-based interfaces, towards byte-based. In the common case, allocation is unlikely to ever use values that are not naturally sector-aligned, but it is possible that byte-based values will let us be more precise about allocation at the end of an unaligned file that can do byte-based access. Changing the name of the function from bdrv_get_block_status_above() to bdrv_block_status_above() ensures that the compiler enforces that all callers are updated. Likewise, since it a byte interface allows an offset mapping that might not be sector aligned, split the mapping out of the return value and into a pass-by-reference parameter. For now, the io.c layer still assert()s that all uses are sector-aligned, but that can be relaxed when a later patch implements byte-based block status in the drivers. For the most part this patch is just the addition of scaling at the callers followed by inverse scaling at bdrv_block_status(), plus updates for the new split return interface. But some code, particularly bdrv_block_status(), gets a lot simpler because it no longer has to mess with sectors. Likewise, mirror code no longer computes s->granularity >> BDRV_SECTOR_BITS, and can therefore drop an assertion about alignment because the loop no longer depends on alignment (never mind that we don't really have a driver that reports sub-sector alignments, so it's not really possible to test the effect of sub-sector mirroring). Fix a neighboring assertion to use is_power_of_2 while there. For ease of review, bdrv_get_block_status() was tackled separately. Signed-off-by: Eric Blake <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
3182664220571d11d4fe03ecdc10fcc1e842ed32
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/3182664220571d11d4fe03ecdc10fcc1e842ed32
2017-10-26 14:45:57+02:00
ppc: pnv: use generic cpu_model parsing use common cpu_model prasing in vl.c and set default cpu_model using generic MachineClass::default_cpu_type. Beside of switching to generic infrastructure it solves several issues. * ppc_cpu_class_by_name() is used to deal with lower/upper case and alias translations into actual cpu type, which fixes '-M powernv -cpu power8' and '-M powernv -cpu power9_v1.0' usecases which error out with: 'invalid CPU model 'FOO' for powernv machine' * allows to switch to lower-case typenames in pnv chip/core name (by convention typnames should be lower-case) * replace aliased names /power8, power9, .../ with exact cpu model names (i.e. typenames should be stable but aliases might decide to point to other cpu model withi family or changed by kvm). It will also help to simplify pnv_chip/core code and get rid of dependency on cpu_model parsing. Signed-off-by: Igor Mammedov <[email protected]> Reviewed-by: Cédric Le Goater <[email protected]> [dwg: Updated to make DD2.0 as default POWER9 chip] Signed-off-by: David Gibson <[email protected]>
4a12c699d3fe08087381bd633284abae689b3999
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/4a12c699d3fe08087381bd633284abae689b3999
2017-10-17 10:34:01+11:00
pci: Validate interfaces on base_class_init Make sure we don't forget to add the Conventional PCI or PCI Express interface names on PCI device classes in the future. Signed-off-by: Eduardo Habkost <[email protected]> Revieed-by: David Gibson <[email protected]> Reviewed-by: Marcel Apfelbaum <[email protected]> Reviewed-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
2fefa16cec5a719f5cbc26c0672dd2099cd2ed9b
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/2fefa16cec5a719f5cbc26c0672dd2099cd2ed9b
2017-10-15 05:54:43+03:00
tpm-backend: Made few interface methods optional This allows backend implementations left optional interface methods. For mandatory methods assertion checks added. Took the opportunity to remove unused methods: - tpm_backend_get_desc() - TPMDriverOps->handle_startup_error Signed-off-by: Amarnath Valluri <[email protected]> Reviewed-by: Marc-André Lureau <[email protected]> Reviewed-by: Stefan Berger<[email protected]> Signed-off-by: Stefan Berger <[email protected]>
93330cf542b920b6ea5fea8120a08b76bb353113
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/93330cf542b920b6ea5fea8120a08b76bb353113
2017-10-13 07:34:33-04:00
qemu-iotests: limit non-_PROG-suffixed variables to common.rc These are never used by "check", with one exception that does not need $QEMU_OPTIONS. Keep them in common.rc, which will be soon included only by the tests. Signed-off-by: Paolo Bonzini <[email protected]> Reviewed-by: Eric Blake <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
d1f2447a3e8d0804838e2445f955996c925395ef
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/d1f2447a3e8d0804838e2445f955996c925395ef
2017-10-06 16:28:58+02:00
dirty-bitmap: Change bdrv_dirty_bitmap_*serialize*() to take bytes Right now, the dirty-bitmap code exposes the fact that we use a scale of sector granularity in the underlying hbitmap to anything that wants to serialize a dirty bitmap. It's nicer to uniformly expose bytes as our dirty-bitmap interface, matching the previous change to bitmap size. The only caller to serialization is currently qcow2-cluster.c, which becomes a bit more verbose because it is still tracking sectors for other reasons, but a later patch will fix that to more uniformly use byte offsets everywhere. Likewise, within dirty-bitmap, we have to add more assertions that we are not truncating incorrectly, which can go away once the internal hbitmap is byte-based rather than sector-based. Signed-off-by: Eric Blake <[email protected]> Reviewed-by: John Snow <[email protected]> Reviewed-by: Kevin Wolf <[email protected]> Reviewed-by: Fam Zheng <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
86f6ae67e157362f3b141649874213ce01dcc622
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/86f6ae67e157362f3b141649874213ce01dcc622
2017-10-06 16:28:58+02:00
qcow2: Switch store_bitmap_data() to byte-based iteration Now that we have adjusted the majority of the calls this function makes to be byte-based, it is easier to read the code if it makes passes over the image using bytes rather than sectors. iotests 165 was rather weak - on a default 64k-cluster image, where bitmap granularity also defaults to 64k bytes, a single cluster of the bitmap table thus covers (64*1024*8) bits which each cover 64k bytes, or 32G of image space. But the test only uses a 1G image, so it cannot trigger any more than one loop of the code in store_bitmap_data(); and it was writing to the first cluster. In order to test that we are properly aligning which portions of the bitmap are being written to the file, we really want to test a case where the first dirty bit returned by bdrv_dirty_iter_next() is not aligned to the start of a cluster, which we can do by modifying the test to write data that doesn't happen to fall in the first cluster of the image. Signed-off-by: Eric Blake <[email protected]> Reviewed-by: Vladimir Sementsov-Ogievskiy <[email protected]> Reviewed-by: John Snow <[email protected]> Reviewed-by: Fam Zheng <[email protected]> Signed-off-by: Kevin Wolf <[email protected]>
49d741b5041b79214db58f364cebe2f367517711
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/49d741b5041b79214db58f364cebe2f367517711
2017-10-06 16:28:58+02:00
kvm: check KVM_CAP_SYNC_MMU with kvm_vm_check_extension() On a server-class ppc host, this capability depends on the KVM type, ie, HV or PR. If both KVM are present in the kernel, we will always get the HV specific value, even if we explicitely requested PR on the command line. This can have an impact if we're using hugepages or a balloon device. Since we've already created the VM at the time any user calls kvm_has_sync_mmu(), switching to kvm_vm_check_extension() is enough to fix any potential issue. It is okay for the other archs that also implement KVM_CAP_SYNC_MMU, ie, mips, s390, x86 and arm, because they don't depend on the VM being created or not. While here, let's cache the state of this extension in a bool variable, since it has several users in the code, as suggested by Thomas Huth. Signed-off-by: Greg Kurz <[email protected]> Message-Id: <[email protected]> Reviewed-by: David Gibson <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
62dd4edaaf859b60f74a51f2a526d4d3d85d0248
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/62dd4edaaf859b60f74a51f2a526d4d3d85d0248
2017-10-02 14:38:06+02:00
spapr_pci: make index property mandatory PHBs can be created with an index property, in which case the machine code automatically sets all the MMIO windows at addresses derived from the index. Alternatively, they can be manually created without index, but the user has to provide addresses for all MMIO windows. The non-index way happens to be more trouble than it's worth: it's difficult to use, keeps requiring (potentially incompatible) changes when some new parameter needs adding, and is awkward to check for collisions. It currently even has a bug that prevents to use two non-index PHBs because their child DRCs are all derived from the same index == -1 value, and, thus, collide. This patch hence makes the index property mandatory. As a consequence, the PHB's memory regions and BUID are now always configured according to the index, and it is no longer possible to set them from the command line. This DOES BREAK backwards compat, but we don't think the non-index PHB feature was used in practice (at least libvirt doesn't) and the simplification is worth it. Signed-off-by: Greg Kurz <[email protected]> Signed-off-by: David Gibson <[email protected]>
30b3bc5aa9f4df68909b63c873a40469caf013dc
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/30b3bc5aa9f4df68909b63c873a40469caf013dc
2017-09-27 13:05:41+10:00
target/arm: Add and use defines for EXCRET constants The exception-return magic values get some new bits in v8M, which makes some bit definitions for them worthwhile. We don't use the bit definitions for the switch on the low bits which checks the return type for v7M, because this is defined in the v7M ARM ARM as a set of valid values rather than via per-bit checks. Signed-off-by: Peter Maydell <[email protected]> Reviewed-by: Alistair Francis <[email protected]> Message-id: [email protected]
4d1e7a4745c050f7ccac49a1c01437526b5130b5
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/4d1e7a4745c050f7ccac49a1c01437526b5130b5
2017-09-14 18:43:17+01:00
target/arm: Don't trap WFI/WFE for M profile M profile cores can never trap on WFI or WFE instructions. Check for M profile in check_wfx_trap() to ensure this. The existing code will do the right thing for v7M cores because the hcr_el2 and scr_el3 registers will be all-zeroes and so we won't attempt to trap, but when we start setting ARM_FEATURE_V8 for v8M cores the v8A handling of SCTLR.nTWE and .nTWI will not give the right results. Signed-off-by: Peter Maydell <[email protected]> Reviewed-by: Edgar E. Iglesias <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Message-id: [email protected]
0e2845689ebdb4ea7174f96f6797e2d8942bd114
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/0e2845689ebdb4ea7174f96f6797e2d8942bd114
2017-09-04 15:21:51+01:00
target/arm: Implement BXNS, and banked stack pointers Implement the BXNS v8M instruction, which is like BX but will do a jump-and-switch-to-NonSecure if the branch target address has bit 0 clear. This is the first piece of code which implements "switch to the other security state", so the commit also includes the code to switch the stack pointers around, which is the only complicated part of switching security state. BLXNS is more complicated than just "BXNS but set the link register", so we leave it for a separate commit. Signed-off-by: Peter Maydell <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Message-id: [email protected]
fb602cb726b3ebdd01ef3b1732d74baf9fee7ec9
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/fb602cb726b3ebdd01ef3b1732d74baf9fee7ec9
2017-09-07 13:54:54+01:00
target/s390x: use "core-id" for cpu number/address/id handling Some time ago we discussed that using "id" as property name is not the right thing to do, as it is a reserved property for other devices and will not work with device_add. Switch to the term "core-id" instead, and use it as an equivalent to "CPU address" mentioned in the PoP. There is no such thing as cpu number, so rename env.cpu_num to env.core_id. We use "core-id" as this is the common term to use for device_add later on (x86 and ppc). We can get rid of cpu->id now. Keep cpu_index and env->core_id in sync. cpu_index was already implicitly used by e.g. cpu_exists(), so keeping both in sync seems to be the right thing to do. cpu_index will now no longer automatically get set via cpu_exec_realizefn(). For now, we were lucky that both implicitly stayed in sync. Our new cpu property "core-id" can be a static property. Range checks can be avoided by using the correct type and the "setting after realized" check is done implicitly. device_add will later need the reserved "id" property. Hotplugging a CPU on s390x will then be: "device_add host-s390-cpu,id=cpu2,core-id=2". Reviewed-by: Matthew Rosato <[email protected]> Signed-off-by: David Hildenbrand <[email protected]> Message-Id: <[email protected]> Signed-off-by: Cornelia Huck <[email protected]>
ca5c1457d614fec718aaec7bdf3663dec37e1e50
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/ca5c1457d614fec718aaec7bdf3663dec37e1e50
2017-09-19 18:31:32+02:00
piix: use DIV_ROUND_UP I used the clang-tidy qemu-round check to generate the fix: https://github.com/elmarco/clang-tools-extra Signed-off-by: Marc-André Lureau <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Richard Henderson <[email protected]>
f9406b84ba3f081dd0cd38bc28db4b8cd9134398
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/f9406b84ba3f081dd0cd38bc28db4b8cd9134398
2017-08-31 12:29:07+02:00
qapi-schema: Make block-core.json self-contained Except for block-core.json, the sub-schemas are self-contained: if they use a symbol defined in another sub-schema, they include that sub-schema. To check, feed the sub-schema to qapi2texi (or any other QAPI generator) along with the pragma from qapi-schema.json. Fix up things to make block-core.json self-contained, too. Signed-off-by: Markus Armbruster <[email protected]> Message-Id: <[email protected]> Reviewed-by: Marc-André Lureau <[email protected]>
2031c133ed5197c9c6eaf6755dcc439e8dbc0385
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/2031c133ed5197c9c6eaf6755dcc439e8dbc0385
2017-09-04 13:09:12+02:00
console: use DIV_ROUND_UP I used the clang-tidy qemu-round check to generate the fix: https://github.com/elmarco/clang-tools-extra Signed-off-by: Marc-André Lureau <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Richard Henderson <[email protected]>
d1a0945f8412ab52ad523397d82be61ba835ae27
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/d1a0945f8412ab52ad523397d82be61ba835ae27
2017-08-31 12:29:07+02:00
qlit: Change compound literals to initializers The QLIT_QFOO() macros expand into compound literals. Sadly, gcc doesn't recognizes these as constant expressions (clang does), which makes the macros useless for initializing objects with static storage duration. There is a gcc bug about it: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71713 Change the macros to expand into initializers. Signed-off-by: Marc-André Lureau <[email protected]> Message-Id: <[email protected]> [Commit message improved] Signed-off-by: Markus Armbruster <[email protected]>
d5cd8fbf130312bea91823c41de87d55818d599b
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/d5cd8fbf130312bea91823c41de87d55818d599b
2017-09-04 13:09:11+02:00
loader: check get_image_size() return value since a negative value means it errored. hw/core/loader.c:149:9: warning: Loss of sign in implicit conversion if (size > max_sz) { ^~~~ hw/core/loader.c:171:9: warning: Loss of sign in implicit conversion if (size > memory_region_size(mr)) { ^~~~ Reported-by: Clang Static Analyzer Signed-off-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Eric Blake <[email protected]> Reviewed-by: Alistair Francis <[email protected]> Signed-off-by: Michael Tokarev <[email protected]>
2a4e2e4919d1fcb915f1b33f9396aad5dc4616f5
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/2a4e2e4919d1fcb915f1b33f9396aad5dc4616f5
2017-07-31 13:06:38+03:00
target/sh4: Add missing FPSCR.PR == 0 checks Both frchg and fschg require PR == 0, otherwise undefined_operation. Reviewed-by: Aurelien Jarno <[email protected]> Signed-off-by: Richard Henderson <[email protected]> Message-Id: <[email protected]> Signed-off-by: Aurelien Jarno <[email protected]>
61dedf2af79fb5866dc7a0f972093682f2185e17
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/61dedf2af79fb5866dc7a0f972093682f2185e17
2017-07-18 23:39:18+02:00
qemu-ga: check if utmpx.h is available on the system Commit 161a56a9065 added command guest-get-users and requires the utmpx.h (defined by POSIX) to work. It is however not always available (e.g. on OpenBSD) therefor a check for its existence is necessary. Signed-off-by: Tomáš Golembiovský <[email protected]> Signed-off-by: Michael Roth <[email protected]>
e674605f9821a275e3ed87ce9accc835d565b753
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/e674605f9821a275e3ed87ce9accc835d565b753
2017-07-17 19:10:09-05:00
configure: enable --s390-pgste linker option KVM guests on s390 need a different page table layout than normal processes (2kb page table + 2kb page status extensions vs 2kb page table only). As of today this has to be enabled via the vm.allocate_pgste sysctl. Newer kernels (>= 4.12) on s390 check for an S390_PGSTE program header and enable the pgste page table extensions in that case. This makes the vm.allocate_pgste sysctl unnecessary. We enable this program header for the s390 system emulation (qemu-system-s390x) if we build on s390 - for s390 system emulation - the linker supports --s390-pgste (binutils >= 2.29) - KVM is enabled This will allow distributions to disable the global vm.allocate_pgste sysctl, which will improve the page table allocation for non KVM processes as only 2kb chunks are necessary. Cc: Christian Ehrhardt <[email protected]> Cc: Alexander Graf <[email protected]> Cc: Dan Horak <[email protected]> Cc: David Hildenbrand <[email protected]> Signed-off-by: Christian Borntraeger <[email protected]> Acked-by: Janosch Frank <[email protected]> Reviewed-by: Thomas Huth <[email protected]> Message-Id: <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Signed-off-by: Cornelia Huck <[email protected]>
e9a3591fa09f273592451f8b9f83692bcbedb60c
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/e9a3591fa09f273592451f8b9f83692bcbedb60c
2017-08-30 18:23:25+02:00
vdi: make it thread-safe The VirtualBox driver is using a mutex to order all allocating writes, but it is not protecting accesses to the bitmap because they implicitly happen under the AioContext mutex. Change this to use a CoRwlock explicitly. Reviewed-by: Eric Blake <[email protected]> Reviewed-by: Stefan Hajnoczi <[email protected]> Reviewed-by: Fam Zheng <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]> Message-Id: <[email protected]> Signed-off-by: Fam Zheng <[email protected]>
1e886639791762e89b51aa0507f523c6a1448831
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/1e886639791762e89b51aa0507f523c6a1448831
2017-07-17 11:28:15+08:00
configure: Define NCURSES_WIDECHAR if we're using curses We want the wide character functions from the ncurses header. Unfortunately it doesn't provide them by default, but only if either: * NCURSES_WIDECHAR is defined (for ncurses 20111030 and up) * _XOPEN_SOURCE/_XOPEN_SOURCE_EXTENDED are suitably defined So far we have been implicitly relying on the latter, because for GNU libc when we define _GNU_SOURCE this causes libc to define the _XOPEN_SOURCE macros for us. Unfortunately this doesn't work on all libcs, because some (like OSX and musl libc) do not define _XOPEN_SOURCE when _GNU_SOURCE is defined. We can't fix this by defining _XOPEN_SOURCE ourselves, because that also means "and don't provide any functions that aren't in that standard", and not all libcs provide any way to override that to also get the non-standard functions. In particular FreeBSD has no such mechanism, and OSX's _DARWIN_C_SOURCE doesn't reenable everything (for instance getpagesize() is still not prototyped if _DARWIN_C_SOURCE and _XOPEN_SOURCE are both defined). So we have to define NCURSES_WIDECHAR. (This will only work if your ncurses is at least 20111030, as older versions don't honour this macro.) Signed-off-by: Peter Maydell <[email protected]> Acked-by: Laszlo Ersek <[email protected]> Message-id: [email protected]
b01a4fd3bd7d6f2ebd9eeba9cb6502d423c3bc85
qemu
devign
0
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/b01a4fd3bd7d6f2ebd9eeba9cb6502d423c3bc85
2017-06-26 13:21:16+01:00