[Bug 1657010] Re: RFE: Please implement -cpu best or a CPU fallback option

2020-01-10 Thread Richard Jones
** Changed in: qemu Status: Incomplete => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1657010 Title: RFE: Please implement -cpu best or a CPU fallback option Status in QEMU:

[Qemu-devel] [Bug 1814381] Re: qemu can't resolve ::1 when no network is available

2019-02-02 Thread Richard Jones
The logic in util/qemu-sockets.c is very complicated, containing workarounds for all sorts of broken/obsolete GAI implementations, so it's hard to tell what's going on there. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

[Qemu-devel] [Bug 1814381] Re: qemu can't resolve ::1 when no network is available

2019-02-02 Thread Richard Jones
ping6 output when the network is not connected: $ ping6 ::1 PING ::1(::1) 56 data bytes 64 bytes from ::1: icmp_seq=1 ttl=64 time=0.082 ms 64 bytes from ::1: icmp_seq=2 ttl=64 time=0.092 ms 64 bytes from ::1: icmp_seq=3 ttl=64 time=0.089 ms ^C --- ::1 ping statistics --- 3 packets transmitted, 3

[Qemu-devel] [Bug 1814381] Re: qemu can't resolve ::1 when no network is available

2019-02-02 Thread Richard Jones
ip output when the network is not connected: $ ip a show scope host 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128

[Qemu-devel] [Bug 1814381] [NEW] qemu can't resolve ::1 when no network is available

2019-02-02 Thread Richard Jones
Public bug reported: I'm not sure if this is a qemu thing or a getaddrinfo/glibc thing, or even just something about my laptop. However we have a test failure in nbdkit which only occurs when my laptop is not connected to wifi or other networking. It boils down to:   $ qemu-img info

[Qemu-devel] [Bug 1804323] Re: qemu segfaults in virtio-scsi driver if underlying device returns -EIO

2018-11-21 Thread Richard Jones
Kevin suggested this change, which works for me: diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c index 6eb258d3f3..0e9027c8f3 100644 --- a/hw/scsi/scsi-disk.c +++ b/hw/scsi/scsi-disk.c @@ -482,7 +482,7 @@ static bool scsi_handle_rw_error(SCSIDiskReq *r, int error, bool acct_failed)

[Qemu-devel] [Bug 1804323] [NEW] qemu segfaults in virtio-scsi driver if underlying device returns -EIO

2018-11-20 Thread Richard Jones
Public bug reported: Reported downstream in Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1650975 Using qemu from git and reasonably recent nbdkit, this command injects -EIO errors into the block device which virtio-scsi is reading from: $ nbdkit --filter=error memory size=64M

[Qemu-devel] [Bug 1740364] Re: qemu-img: fails to get shared 'write' lock

2018-11-02 Thread Richard Jones
Fixed upstream in https://github.com/libguestfs/libguestfs/commit/f00f920ad3b15ab8e9e8f201c16e7628b6b7b109 The fix should appear in libguestfs 1.40. ** Changed in: qemu Status: New => Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which

[Qemu-devel] [Bug 1740364] Re: qemu-img: fails to get shared 'write' lock

2018-11-02 Thread Richard Jones
Sorry I noticed this bug is filed against qemu. The fix was done in libguestfs, it's not a bug in qemu as far as I know. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1740364 Title: qemu-img:

[Qemu-devel] [Bug 1462944] Re: vpc file causes qemu-img to consume lots of time and memory

2018-06-14 Thread Richard Jones
I suspect this bug is probably still around, and if not then this class of bugs is certainly still around. What we have done in management tools like Open Stack is to confine qemu-img using simple ulimits when inspecting any untrusted image, and that solves the problem so it's probably fine to

[Qemu-devel] [Bug 1155677] Re: snapshot=on fails with non file-based storage

2018-02-06 Thread Richard Jones
Let's close this. libguestfs doesn't use snapshot=on any longer. ** Changed in: qemu Status: In Progress => Incomplete -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1155677 Title:

[Qemu-devel] [Bug 1186984] Re: large -initrd can wrap around in memory causing memory corruption

2018-01-30 Thread Richard Jones
The answer is I don't know. Closing this bug seems correct unless someone can reproduce the original problem. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1186984 Title: large -initrd can wrap

[Qemu-devel] [Bug 1269606] Re: curl driver (https) always says "No such file or directory"

2018-01-24 Thread Richard Jones
I restored the original description. Please report a new bug. ** Description changed: + I have a remote server, on which an http disk image definitely exists. - However the qemu curl block driver cannot open it. It always gives the + However the qemu curl block driver cannot open it. It

Re: [Qemu-devel] [Bug 1740364] Re: qemu-img: fails to get shared 'write' lock

2018-01-05 Thread Richard Jones
cmd, "info"); + guestfs_int_cmd_add_arg (cmd, "-U"); guestfs_int_cmd_add_arg (cmd, "--output"); guestfs_int_cmd_add_arg (cmd, "json"); guestfs_int_cmd_add_arg (cmd, fdpath); Rich. -- Richard Jones, Virtualization Group, Red Hat ht

[Qemu-devel] [Bug 1378554] Re: qemu segfault in virtio_scsi_handle_cmd_req_submit on ARM 32 bit

2017-11-23 Thread Richard Jones
Yes, qemu's working fine on aarch64 so this must have been fixed. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1378554 Title: qemu segfault in virtio_scsi_handle_cmd_req_submit on ARM 32 bit

[Qemu-devel] [Bug 1383857] Re: aarch64: virtio disks don't show up in guest (neither blk nor scsi)

2017-11-07 Thread Richard Jones
Oh yes, long fixed. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1383857 Title: aarch64: virtio disks don't show up in guest (neither blk nor scsi) Status in QEMU: Incomplete Bug description:

[Qemu-devel] [Bug 1013691] Re: ppc64 + virtio-scsi: only first scsi disk shows up in the guest

2017-11-03 Thread Richard Jones
Closed it, very old bug and we successfully test many disks with ppc64/le nowadays. ** Changed in: qemu Status: Incomplete => Invalid -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1013691

[Qemu-devel] [Bug 1726733] [NEW] ‘qemu-img info replication:’ causes segfault

2017-10-24 Thread Richard Jones
Public bug reported: Typing the literal command ‘qemu-img info replication:’ causes a segfault. Note that ‘replication:’ is not a filename. $ ./qemu-img info replication: qemu-img: block.c:2609: bdrv_open_inherit: Assertion `!!(flags & BDRV_O_PROTOCOL) == !!drv->bdrv_file_open' failed. Aborted

Re: [Qemu-devel] [Bug 1706296] Re: Booting NT 4 disk causes /home/rjones/d/qemu/cpus.c:1580:qemu_mutex_lock_iothread: assertion failed: (!qemu_mutex_iothread_locked())

2017-08-18 Thread Richard Jones
minimally required a Pentium processor (and 16 MB of RAM :-) Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside th

[Qemu-devel] [Bug 1706296] [NEW] Booting NT 4 disk causes /home/rjones/d/qemu/cpus.c:1580:qemu_mutex_lock_iothread: assertion failed: (!qemu_mutex_iothread_locked())

2017-07-25 Thread Richard Jones
Public bug reported: Grab the NT 4 disk from https://archive.org/details/Microsoft_Windows_NT_Server_Version_4.0_227-075 -385_CD-KEY_419-1343253_1996 Try to boot it as follows: qemu-system-x86_64 -hda disk.img -cdrom

[Qemu-devel] [Bug 1686980] [NEW] qemu is very slow when adding 16, 384 virtio-scsi drives

2017-04-28 Thread Richard Jones
Public bug reported: qemu runs very slowly when adding many virtio-scsi drives. I have attached a small reproducer shell script which demonstrates this. Using perf shows the following stack trace taking all the time: 72.42%71.15% qemu-system-x86 qemu-system-x86_64 [.] drive_get

[Qemu-devel] [Bug 1686364] [NEW] qemu -readconfig/-writeconfig cannot handle quotes in values

2017-04-26 Thread Richard Jones
Public bug reported: $ qemu-system-x86_64 -drive file=/tmp/foo\" -writeconfig - # qemu config file [drive]   file = "/tmp/foo"" For bonus points, try to construct a valid qemu config file that contains a quoted value. It's pretty clear (from looking at the code also) that this is not possible.

[Qemu-devel] [Bug 1224444] Re: virtio-serial loses writes when used over virtio-mmio

2017-03-04 Thread Richard Jones
I don't know how to close bugs in launchpad, but this one can be closed for a couple of reasons: (1) I benchmarked virtio-mmio the other day using qemu-speed-test on aarch64 and I did not encounter the bug. (2) aarch64 has supported virtio-pci for a while, for virtio-mmio is effectively

[Qemu-devel] [Bug 1224444] Re: virtio-serial loses writes when used over virtio-mmio

2017-03-04 Thread Richard Jones
Fixed upstream, see previous comment. ** Changed in: qemu Status: New => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/122 Title: virtio-serial loses writes when used over

[Qemu-devel] [Bug 1657010] [NEW] RFE: Please implement -cpu best or a CPU fallback option

2017-01-16 Thread Richard Jones
Public bug reported: QEMU should implement a -cpu best option or some other way to make this work: qemu -M pc,accel=kvm:tcg -cpu best qemu -M pc,accel=kvm:tcg -cpu host:qemu64 See also: https://bugzilla.redhat.com/show_bug.cgi?id=1277744#c6 ** Affects: qemu Importance: Undecided

[Qemu-devel] [Bug 1021649] Re: qemu 1.1.0 waits for a keypress at boot

2016-11-10 Thread Richard Jones
No this refers to a very old version of qemu. This bug should be closed. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1021649 Title: qemu 1.1.0 waits for a keypress at boot Status in QEMU:

[Qemu-devel] [Bug 1470536] Re: qemu-img incorrectly prints qemu-img: Host floppy pass-through is deprecated

2015-07-01 Thread Richard Jones
I sent a patch to qemu-devel which should fix this. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1470536 Title: qemu-img incorrectly prints qemu-img: Host floppy pass-through is deprecated

[Qemu-devel] [Bug 1470536] [NEW] qemu-img incorrectly prints qemu-img: Host floppy pass-through is deprecated

2015-07-01 Thread Richard Jones
Public bug reported: qemu-img incorrectly prints this warning when you use /dev/fd/NN to pass in file descriptors. A simple way to demonstrate this uses bash process substitution, so the following will only work if you are using bash as your shell: $ qemu-img info ( cat /dev/null ) qemu-img:

[Qemu-devel] [Bug 1462944] Re: vpc file causes qemu-img to consume lots of time and memory

2015-06-08 Thread Richard Jones
This slightly modified example takes about 7 seconds and 2 GB of heap: $ /usr/bin/time ~/d/qemu/qemu-img info /mnt/scratch/afl13.img block-vpc: The header checksum of '/mnt/scratch/afl13.img' is incorrect. qemu-img: Could not open '/mnt/scratch/afl13.img': block-vpc: free_data_block_offset

[Qemu-devel] [Bug 1462949] Re: vmdk files cause qemu-img to consume lots of time and memory

2015-06-08 Thread Richard Jones
Both files were found by using american-fuzzy-lop. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1462949 Title: vmdk files cause qemu-img to consume lots of time and memory Status in QEMU: New

[Qemu-devel] [Bug 1462949] Re: vmdk files cause qemu-img to consume lots of time and memory

2015-06-08 Thread Richard Jones
** Attachment added: afl11.img https://bugs.launchpad.net/qemu/+bug/1462949/+attachment/4411476/+files/afl11.img -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1462949 Title: vmdk files cause

[Qemu-devel] [Bug 1462949] [NEW] vmdk files cause qemu-img to consume lots of time and memory

2015-06-08 Thread Richard Jones
Public bug reported: The two attached files cause 'qemu-img info' to consume lots of time and memory. Around 10-12 seconds of CPU time, and around 3-4 GB of heap. $ /usr/bin/time ~/d/qemu/qemu-img info afl10.img qemu-img: Can't get size of device 'image': File too large 0.40user 11.57system

[Qemu-devel] [Bug 1462944] [NEW] vpc file causes qemu-img to consume lots of time and memory

2015-06-08 Thread Richard Jones
Public bug reported: The attached vpc file causes 'qemu-img info' to consume 3 or 4 seconds of CPU time and 1.3 GB of heap, causing a minor denial of service. $ /usr/bin/time ~/d/qemu/qemu-img info afl12.img block-vpc: The header checksum of 'afl12.img' is incorrect. qemu-img: Could not open

[Qemu-devel] [Bug 1186984] Re: large -initrd can wrap around in memory causing memory corruption

2015-03-23 Thread Richard Jones
Although the error message is the same, the bug in comment 5 seems completely different. Please open a new bug about this issue, giving *all* details - including the full qemu command line. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to

[Qemu-devel] [Bug 1383857] Re: aarch64: virtio disks don't show up in guest (neither blk nor scsi)

2014-12-01 Thread Richard Jones
Still happening with latest upstream kernel. It seems to involve using the -initrd option at all, with any cpio file, even a tiny one. More results posted here: https://lists.cs.columbia.edu/pipermail/kvmarm/2014-December/012557.html -- You received this bug notification because you are a

[Qemu-devel] [Bug 1383857] Re: aarch64: virtio disks don't show up in guest (neither blk nor scsi)

2014-12-01 Thread Richard Jones
Finally found the problem, patch posted: https://lists.gnu.org/archive/html/qemu-devel/2014-12/msg00034.html -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1383857 Title: aarch64: virtio disks

[Qemu-devel] [Bug 1383857] Re: aarch64: virtio disks don't show up in guest (neither blk nor scsi)

2014-10-22 Thread Richard Jones
Finally finished the git bisect (of the guest kernel, not qemu): 421520ba98290a73b35b7644e877a48f18e06004 is the first bad commit commit 421520ba98290a73b35b7644e877a48f18e06004 Author: Yalin Wang yalin.w...@sonymobile.com Date: Fri Sep 26 03:07:09 2014 +0100 ARM: 8167/1: extend the

[Qemu-devel] [Bug 1383857] [NEW] aarch64: virtio-scsi disks don't show up in guest

2014-10-21 Thread Richard Jones
Public bug reported: kernel-3.18.0-0.rc1.git0.1.rwmj5.fc22.aarch64 (3.18 rc1 + some hardware enablement) qemu from git today When I create a guest with virtio-scsi disks, they don't show up inside the guest. Literally after the virtio_mmio.ko and virtio_scsi.ko modules are loaded, there are

[Qemu-devel] [Bug 1383857] Re: aarch64: virtio-scsi disks don't show up in guest

2014-10-21 Thread Richard Jones
I have now also tried virtio-blk and that doesn't work either. Same symptoms: no log messages at all (even with ignore_loglevel), and no disks appear. Yeah, regressed with this newer kernel sounds more like a kernel bug than a QEMU bug to me, especially if all the other virt devices still

[Qemu-devel] [Bug 1378554] Re: qemu segfault in virtio_scsi_handle_cmd_req_submit on ARM 32 bit

2014-10-07 Thread Richard Jones
This is qemu from git today (2014-10-07). The hardware is 32 bit ARM (ODROID-XU Samsung Exynos 5410). It is running Ubuntu 14.04 LTS as the main operating system, but I am NOT using qemu from Ubuntu (which is ancient). -- You received this bug notification because you are a member of qemu-

[Qemu-devel] [Bug 1378554] [NEW] qemu segfault in virtio_scsi_handle_cmd_req_submit on ARM 32 bit

2014-10-07 Thread Richard Jones
Public bug reported: /home/rjones/d/qemu/arm-softmmu/qemu-system-arm \ -global virtio-blk-device.scsi=off \ -nodefconfig \ -enable-fips \ -nodefaults \ -display none \ -M virt \ -machine accel=kvm:tcg \ -m 500 \ -no-reboot \ -rtc driftfix=slew \ -global

[Qemu-devel] [Bug 1224444] Re: virtio-serial loses writes when used over virtio-mmio

2014-07-29 Thread Richard Jones
FWIW I am able to reproduce this quite easily on aarch64 too. My test program is: https://github.com/libguestfs/libguestfs/blob/master/tests/qemu/qemu-speed-test.c and you use it like this: qemu-speed-test --virtio-serial-upload (You can also test virtio-serial downloads and a few other things,

[Qemu-devel] [Bug 1269606] Re: curl driver (http) always says No such file or directory

2014-01-16 Thread Richard Jones
Turns out this is because of using snapshot=on. Simple reproducer: ./x86_64-softmmu/qemu-system-x86_64 -drive 'file=http://127.0.0.1/~rjones/cirros-0.3.1-x86_64-disk.img,if=virtio,snapshot=on' -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed

[Qemu-devel] [Bug 1269606] [NEW] curl driver (http) always says No such file or directory

2014-01-15 Thread Richard Jones
Public bug reported: I have a remote server, on which an http disk image definitely exists. However the qemu curl block driver cannot open it. It always gives the bogus error: CURL: Error opening file: Connection time-out qemu-system-x86_64: -drive

[Qemu-devel] [Bug 1263747] [NEW] Arm64 fails to run a binary which runs OK on real hardware

2013-12-23 Thread Richard Jones
Public bug reported: Note this is using the not-yet-upstream aarch64 patches from: https://github.com/susematz/qemu/tree/aarch64-1.6 This binary: http://oirase.annexia.org/tmp/test.gz runs OK on real aarch64 hardware. It is a statically linked Linux binary which (if successful)

[Qemu-devel] [Bug 1263747] Re: Arm64 fails to run a binary which runs OK on real hardware

2013-12-23 Thread Richard Jones
It's an Aarch64 binary so it won't run on 32 bit ARM at all. However I guess you meant does the equivalent program run on 32 bit ARM, and the answer is yes, but that doesn't tell us much because OCaml uses separate code generators for 32 and 64 bit ARM. The binary is single threaded. I enabled

[Qemu-devel] [Bug 1263747] Re: Arm64 fails to run a binary which runs OK on real hardware

2013-12-23 Thread Richard Jones
One thing I notice is that caml_c_call is the only function that uses the instruction ret xM (in all other places the code uses the default ret with implicit x30). Hmmm .. do we emulate ret xM? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed

[Qemu-devel] [Bug 1263747] Re: Arm64 fails to run a binary which runs OK on real hardware

2013-12-23 Thread Richard Jones
The attached patch fixes the ret xM variant of ret. I verified that it fixes the bug. ** Patch added: 0001-arm64-Set-source-for-ret-instruction-correctly.patch https://bugs.launchpad.net/qemu/+bug/1263747/+attachment/3934836/+files/0001-arm64-Set-source-for-ret-instruction-correctly.patch

[Qemu-devel] [Bug 1224444] Re: virtio-serial loses writes when used over virtio-mmio

2013-09-17 Thread Richard Jones
What happens if you add a five second delay to libguestfs, before writing the response? No change. Still hangs in the same place. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/122 Title:

[Qemu-devel] [Bug 1224444] Re: virtio-serial loses writes when used over virtio-mmio

2013-09-17 Thread Richard Jones
There's at least three cases here I guess (KVM + eventfd, KVM without eventfd (enforceable eg. with the ioeventfd property for virtio devices), and TCG). We're probably talking about the third case. To clarify on this point: I have reproduced this bug on two different ARM machines, one using

[Qemu-devel] [Bug 1224444] Re: virtio-serial loses writes when used over virtio-mmio

2013-09-16 Thread Richard Jones
Is this a socket that libguestfs pre-creates on the host-side? Yes it is: https://github.com/libguestfs/libguestfs/blob/master/src/launch-direct.c#L208 You mention a scenario that might cause this. But that appears to be when the socket is opened. Note that the guest did send 4 bytes

[Qemu-devel] [Bug 1224444] Re: virtio-serial loses writes when used over virtio-mmio

2013-09-14 Thread Richard Jones
I can reproduce this bug on a second ARM machine which doesn't have KVM (ie. using TCG). Note it's still linked to virtio-mmio. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/122 Title:

[Qemu-devel] [Bug 1224444] [NEW] virtio-serial loses writes when used over virtio-mmio

2013-09-12 Thread Richard Jones
Public bug reported: virtio-serial appears to lose writes, but only when used on top of virtio-mmio. The scenario is this: /home/rjones/d/qemu/arm-softmmu/qemu-system-arm \ -global virtio-blk-device.scsi=off \ -nodefconfig \ -nodefaults \ -nographic \ -M vexpress-a15 \

[Qemu-devel] [Bug 1224444] Re: virtio-serial loses writes when used over virtio-mmio

2013-09-12 Thread Richard Jones
** Description changed: virtio-serial appears to lose writes, but only when used on top of virtio-mmio. The scenario is this: /home/rjones/d/qemu/arm-softmmu/qemu-system-arm \ -global virtio-blk-device.scsi=off \ -nodefconfig \ -nodefaults \ -nographic \ -M

[Qemu-devel] [Bug 1224444] Re: virtio-serial loses writes when used over virtio-mmio

2013-09-12 Thread Richard Jones
Recall this bug only happens intermittently. This is an strace -f of qemu when it happens to work. Notes: - fd = 6 is the Unix domain socket - there are an expected number of recvmsg writes, all with the correct sizes - this time qemu adds the socket to ppoll ** Attachment added: working

[Qemu-devel] [Bug 1224444] Re: virtio-serial loses writes when used over virtio-mmio

2013-09-12 Thread Richard Jones
strace -f of qemu when it fails. Notes: - fd = 6 is the Unix domain socket connected to virtio-serial - only one 4 byte write occurs to this socket (expected guest - host communication) - the socket isn't read at all (even though the library on the other side has written) - the socket is

[Qemu-devel] [Bug 1219207] [NEW] QMP (32 bit only) segfaults in query-tpm-types when compiled with --enable-tpm

2013-08-31 Thread Richard Jones
Public bug reported: NB: This bug ONLY happens on i686. When qemu is compiled for x86-64, the bug does NOT happen. $ ./configure --enable-tpm $ make $ (sleep 5; printf '{execute:qmp_capabilities}\n{execute:query-tpm-types}\n') | ./i386-softmmu/qemu-system-i386 -S -nodefaults -nographic -M

[Qemu-devel] [Bug 1218098] [NEW] qemu-system-ppc64 segfaults in helper_ldl_mmu

2013-08-28 Thread Richard Jones
Public bug reported: Download a Fedora 19 ISO from: http://mirrors.kernel.org/fedora-secondary/releases/19/Fedora/ppc64/iso/ Compile qemu from git (I'm using 401c227b0a1134245ec61c6c5a9997cfc963c8e4 from today). Run qemu-system-ppc64 like this: ppc64-softmmu/qemu-system-ppc64 -M pseries -m

[Qemu-devel] [Bug 1218098] Re: qemu-system-ppc64 segfaults in helper_ldl_mmu

2013-08-28 Thread Richard Jones
** Description changed: Download a Fedora 19 ISO from: http://mirrors.kernel.org/fedora-secondary/releases/19/Fedora/ppc64/iso/ Compile qemu from git (I'm using 401c227b0a1134245ec61c6c5a9997cfc963c8e4 from today). Run qemu-system-ppc64 like this:

[Qemu-devel] [Bug 1218098] Re: qemu-system-ppc64 segfaults in helper_ldl_mmu

2013-08-28 Thread Richard Jones
git bisect points the finger at: 401c227b0a1134245ec61c6c5a9997cfc963c8e4 is the first bad commit commit 401c227b0a1134245ec61c6c5a9997cfc963c8e4 Author: Richard Henderson r...@twiddle.net Date: Thu Jul 25 07:16:52 2013 -1000 tcg-i386: Use new return-argument ld/st helpers

[Qemu-devel] [Bug 1174654] Re: qemu-system-x86_64 takes 100% CPU after host machine resumed from suspend to ram

2013-07-31 Thread Richard Jones
** Description changed: I have Windows XP SP3 inside qemu VM. All works fine in 12.10. But after upgraiding to 13.04 i have to restart the VM each time i resuming my host machine, because qemu process starts to take CPU cycles and OS inside VM is very slow and sluggish. However it's

[Qemu-devel] [Bug 1186984] Re: large -initrd crashes qemu

2013-06-03 Thread Richard Jones
I'm using qemu from git (f10acc8b38d65a66ffa0588a036489d7fa6a593e). -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1186984 Title: large -initrd crashes qemu Status in QEMU: New Bug description:

[Qemu-devel] [Bug 1186984] [NEW] large -initrd crashes qemu

2013-06-03 Thread Richard Jones
Public bug reported: We don't use large -initrd in libguestfs any more, but I noticed that a large -initrd file now crashes qemu spectacularly: $ ls -lh /tmp/kernel /tmp/initrd -rw-r--r--. 1 rjones rjones 273M Jun 3 14:02 /tmp/initrd lrwxrwxrwx. 1 rjones rjones 35 Jun 3 14:02 /tmp/kernel -

[Qemu-devel] [Bug 1186984] Re: large -initrd crashes qemu

2013-06-03 Thread Richard Jones
One way to reproduce this is to just use a large (200 MB) completely random initrd. Note this error seems to happen a long time before even the kernel starts up, so the actual content of the initrd doesn't matter. dd if=/dev/urandom of=/tmp/initrd bs=1M count=200 qemu-system-x86_64 -kernel

[Qemu-devel] [Bug 1186984] Re: large -initrd crashes qemu

2013-06-03 Thread Richard Jones
OK I see what's happening. Because I forgot about the -m option, qemu allocates 128 MB of RAM. It's obviously wrapping around in memory and overwriting all the low memory. If you add (eg) -m 1024 it works. -- You received this bug notification because you are a member of qemu- devel-ml, which

[Qemu-devel] [Bug 1186984] Re: large -initrd can wrap around in memory causing memory corruption

2013-06-03 Thread Richard Jones
** Summary changed: - large -initrd crashes qemu + large -initrd can wrap around in memory causing memory corruption -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1186984 Title: large -initrd can

[Qemu-devel] [Bug 865518] Re: qemu segfaults when writing to very large qcow2 disk

2013-05-11 Thread Richard Jones
Simple reproducer using only qemu tools: $ qemu-img create -f qcow2 huge.qcow2 $((1024*1024))T Formatting 'huge.qcow2', fmt=qcow2 size=1152921504606846976 encryption=off cluster_size=65536 lazy_refcounts=off $ qemu-io /tmp/huge.qcow2 -c write $((1024*1024*1024*1024*1024*1024 - 1024)) 512

[Qemu-devel] [Bug 865518] Re: qemu segfaults when writing to very large qcow2 disk

2013-05-11 Thread Richard Jones
Still happening in upstream qemu from git: Program terminated with signal 11, Segmentation fault. #0 0x7f4f86c721a0 in get_cluster_table (bs=bs@entry=0x7f4f886e7880, offset=offset@entry=1152921504606834688, new_l2_table=new_l2_table@entry=0x7f4f8ad9a0b0,

[Qemu-devel] [Bug 1127369] Re: i386 emulation unreliable since commit b76f0d8c2e3eac94bc7fd90a510cb7426b2a2699

2013-03-31 Thread Richard Jones
Thanks for the detailed test case and fix. However unfortunately I cannot see d6e839e718 in the current qemu git. Is it possible the commit hash changed because of a rebase when it was committed? -- You received this bug notification because you are a member of qemu- devel-ml, which is

[Qemu-devel] [Bug 1127369] Re: i386 emulation unreliable since commit b76f0d8c2e3eac94bc7fd90a510cb7426b2a2699

2013-03-31 Thread Richard Jones
Thanks - fix committed to Fedora. Hopefully this will squash the rare and random segfaults in the libguestfs test suite. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1127369 Title: i386

[Qemu-devel] [Bug 1155677] [NEW] snapshot=on fails with non file-based storage

2013-03-15 Thread Richard Jones
Public bug reported: The snapshot=on option doesn't work with an nbd block device: /usr/bin/qemu-system-x86_64 \ [...] -device virtio-scsi-pci,id=scsi \ -drive file=nbd:localhost:61930,snapshot=on,format=raw,id=hd0,if=none \ -device scsi-hd,drive=hd0 \ [...] gives the error: