[Bug 1857449] Re: QEMU x86_64 -nographic full system breaks host Bash terminal line wrapping state after simulation ends, requires reset or "tput smam" to fix it

2019-12-30 Thread Ciro Santilli 六四事件 法轮功
Ah, thanks for looking into this and identifying it to guest code Philippe. I don't know much about terminals, but yes, they are such archaic interfaces, maybe there is no API for it :-( -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

[Bug 1857449] [NEW] QEMU x86_64 -nographic full system breaks host Bash terminal line wrapping state after simulation ends, requires reset or "tput smam" to fix it

2019-12-24 Thread Ciro Santilli 六四事件 法轮功
Public bug reported: QEMU 4.2.0 compiled from source, Ubuntu 19.10, open a fresh new gnome terminal. If you print 1000 = chars on the host terminal, then they do wrap around the end of the terminal: printf "=%.0s" {0..1000} However, if you first run QEMU: x86_64-softmmu/qemu-system-x86_64 -nog

[Qemu-devel] [Bug 1701798] Re: dynamically linked binaries crash for big-endian targets

2019-02-18 Thread Ciro Santilli 六四事件 法轮功
Did we open a precise glibc upstream bug for this so I can go upvote it? :-) Workaround from #12 also worked for me. Tested on Buildroot with this precise setup: https://github.com/cirosantilli/linux-kernel-module- cheat/tree/e855a262fd872171156894e9045814cb0f346dab#stack-smashing- detected For

Re: [Qemu-devel] [RFC PATCH 00/17] reverse debugging

2018-08-10 Thread Ciro Santilli
On Thu, Apr 26, 2018 at 1:34 PM, Pavel Dovgalyuk wrote: > > From: Ciro Santilli [mailto:ciro.santi...@gmail.com] > > On Wed, Apr 25, 2018 at 1:45 PM, Pavel Dovgalyuk > > wrote: > > > GDB remote protocol supports reverse debugging of the targets. > > > It

Re: [Qemu-devel] [PATCH v5 00/24] Fixing record/replay and adding reverse debugging

2018-08-07 Thread Ciro Santilli
OK, finally got some time to try it out, I'm using c42634d8e3428cfa60672c3ba89cabefc720cde9 from rr-180725. Replay works well as far as I can tell, so I moved to the reverse debugging: /home/ciro/bak/git/linux-kernel-module-cheat/out/x86_ 64/buildroot/build/host-qemu-custom.rr/x86_64-softmmu/qemu

[Qemu-devel] [Bug 1778182] Re: qemu-system-aarch64 shows black framebuffer window on minimal bare metal example on SDL but not on VNC

2018-06-22 Thread Ciro Santilli 六四事件 法轮功
Things that work: - https://github.com/cirosantilli/linux-kernel-module-cheat/tree/741f5215e9515c0d7179671f49fe1781f94e70e3#graphic-mode-arm which shows the Penguin with the Linux kernel, after hacking that repo up to use the exact same QEMU executable as reported here - the UART examples on th

[Qemu-devel] [Bug 1778182] [NEW] qemu-system-aarch64 shows black framebuffer window on minimal bare metal example on SDL but not on VNC

2018-06-22 Thread Ciro Santilli 六四事件 法轮功
Public bug reported: QEMU v2.12.0, Ubuntu 18.04 host. Build QEMU and the bare metal image exactly as described at: https://raspberrypi.stackexchange.com/revisions/85135/4 with: Then cd into example 09_framebuffer. Now if I do: ../../qemu/aarch64-softmmu/qemu-system-aarch64 -M raspi3 -kernel ke

Re: [Qemu-devel] [PATCH v3 00/19] reverse debugging

2018-05-23 Thread Ciro Santilli
On Wed, May 23, 2018 at 2:28 PM, Pavel Dovgalyuk wrote: >> From: Ciro Santilli [mailto:ciro.santi...@gmail.com] >> On Wed, May 23, 2018 at 7:49 AM, Pavel Dovgalyuk >> wrote: >> > GDB remote protocol supports reverse debugging of the targets. >> > It includes

Re: [Qemu-devel] [PATCH v3 00/19] reverse debugging

2018-05-23 Thread Ciro Santilli
On Wed, May 23, 2018 at 7:49 AM, Pavel Dovgalyuk wrote: > GDB remote protocol supports reverse debugging of the targets. > It includes 'reverse step' and 'reverse continue' operations. > The first one finds the previous step of the execution, > and the second one is intended to stop at the last br

Re: [Qemu-devel] [RFC PATCH v2 00/19] reverse debugging

2018-04-30 Thread Ciro Santilli
Did you manage to reproduce and solve the savevm and loadvm problems I mentioned at: http://lists.nongnu.org/archive/html/qemu-devel/2018-04/msg05219.html ? I still observe them on the current patch. On Sat, Apr 28, 2018 at 1:36 PM, Pavel Dovgalyuk wrote: > GDB remote protocol supports reverse

[Qemu-devel] [Bug 1762179] Re: Record and replay replay fails with: "ERROR:replay/replay-time.c:49:replay_read_clock: assertion failed"

2018-04-30 Thread Ciro Santilli 六四事件 法轮功
@arna35: I have tested this yet unmerged patch: https://lists.gnu.org/archive/html/qemu-devel/2018-04/msg04286.html and it solves this problem, I will close this issue once it gets merged. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEM

Re: [Qemu-devel] [RFC PATCH 00/17] reverse debugging

2018-04-28 Thread Ciro Santilli
On Sat, Apr 28, 2018 at 10:27 AM, Pavel Dovgalyuk wrote: > > >> -Original Message----- >> From: Ciro Santilli [mailto:ciro.santi...@gmail.com] >> Sent: Saturday, April 28, 2018 11:13 AM >> To: Pavel Dovgalyuk >> Subject: Re: [RFC PATCH 00/17] reverse debugg

Re: [Qemu-devel] [RFC PATCH 00/17] reverse debugging

2018-04-28 Thread Ciro Santilli
On Sat, Apr 28, 2018 at 9:12 AM, Pavel Dovgalyuk wrote: >> From: Ciro Santilli [mailto:ciro.santi...@gmail.com] >> On Thu, Apr 26, 2018 at 1:34 PM, Pavel Dovgalyuk wrote: >> >> From: Ciro Santilli [mailto:ciro.santi...@gmail.com] >> >> On Wed, Apr

[Qemu-devel] Fwd: [RFC PATCH 00/17] reverse debugging

2018-04-28 Thread Ciro Santilli
Forgetting about debugging, I belive there is a deadlock in the replay at 63d426dfa4fbfac3d50cda3f553cd975de2b85ea , but it is rare. I have only reproduced it on ARM so far, and I haven't checked pre-patch. The setup is https://github.com/cirosantilli/qemu-test/tree/6a3497f0d84e7c86ef80f7322e24e

Re: [Qemu-devel] [RFC PATCH 00/17] reverse debugging

2018-04-26 Thread Ciro Santilli
On Wed, Apr 25, 2018 at 1:45 PM, Pavel Dovgalyuk wrote: > GDB remote protocol supports reverse debugging of the targets. > It includes 'reverse step' and 'reverse continue' operations. > The first one finds the previous step of the execution, > and the second one is intended to stop at the last br

[Qemu-devel] [Bug 1762179] Re: Record and replay replay fails with: "ERROR:replay/replay-time.c:49:replay_read_clock: assertion failed"

2018-04-11 Thread Ciro Santilli 六四事件 法轮功
** Description changed: QEMU master at 915d34c5f99b0ab91517c69f54272bfdb6ca2b32 Ubuntu 17.10 host. QEMU commands: ``` #!/usr/bin/env bash cmd="\ time \ ./x86_64-softmmu/qemu-system-x86_64 \ -append 'root=/dev/sda console=ttyS0 nokaslr printk.time=y - lkmc_eval=\"/rand_chec

[Qemu-devel] [Bug 1762179] Re: Record and replay replay fails with: "ERROR:replay/replay-time.c:49:replay_read_clock: assertion failed"

2018-04-09 Thread Ciro Santilli 六四事件 法轮功
** Description changed: - QEMU master at 08e173f29461396575c85510eb41474b993cb1fb Ubuntu 17.10 + QEMU master at 915d34c5f99b0ab91517c69f54272bfdb6ca2b32 Ubuntu 17.10 host. QEMU commands: ``` #!/usr/bin/env bash cmd="\ time \ ./x86_64-softmmu/qemu-system-x86_64 \ -append 'root

[Qemu-devel] [Bug 1762179] Re: Record and replay replay fails with: "ERROR:replay/replay-time.c:49:replay_read_clock: assertion failed"

2018-04-08 Thread Ciro Santilli 六四事件 法轮功
** Description changed: QEMU master at 08e173f29461396575c85510eb41474b993cb1fb Ubuntu 17.10 host. QEMU commands: ``` #!/usr/bin/env bash cmd="\ time \ ./x86_64-softmmu/qemu-system-x86_64 \ - -M pc \ -append 'root=/dev/sda console=ttyS0 nokaslr printk.time=y - lkmc_eval=\"

[Qemu-devel] [Bug 1762179] Re: Record and replay replay fails with: "ERROR:replay/replay-time.c:49:replay_read_clock: assertion failed"

2018-04-08 Thread Ciro Santilli 六四事件 法轮功
** Description changed: QEMU master at 08e173f29461396575c85510eb41474b993cb1fb Ubuntu 17.10 host. QEMU commands: ``` #!/usr/bin/env bash cmd="\ time \ - ./out/x86_64/buildroot/host/usr/bin/qemu-system-x86_64 \ + ./x86_64-softmmu/qemu-system-x86_64 \ -M pc \ -append 'root=/

[Qemu-devel] [Bug 1762179] Re: Record and replay replay fails with: "ERROR:replay/replay-time.c:49:replay_read_clock: assertion failed"

2018-04-08 Thread Ciro Santilli 六四事件 法轮功
** Description changed: - QEMU master at 08e173f29461396575c85510eb41474b993cb1fb + QEMU master at 08e173f29461396575c85510eb41474b993cb1fb Ubuntu 17.10 + host. QEMU commands: - ``` #!/usr/bin/env bash cmd="\ time \ ./out/x86_64/buildroot/host/usr/bin/qemu-system-x86_64 \ -M p

[Qemu-devel] [Bug 1762179] [NEW] Record and replay replay fails with: "ERROR:replay/replay-time.c:49:replay_read_clock: assertion failed"

2018-04-08 Thread Ciro Santilli 六四事件 法轮功
Public bug reported: QEMU master at 08e173f29461396575c85510eb41474b993cb1fb QEMU commands: ``` #!/usr/bin/env bash cmd="\ time \ ./out/x86_64/buildroot/host/usr/bin/qemu-system-x86_64 \ -M pc \ -append 'root=/dev/sda console=ttyS0 nokaslr printk.time=y - lkmc_eval=\"/rand_check.out;/sbin/ifup

Re: [Qemu-devel] [ PATCH v7 00/22] replay additions

2018-03-12 Thread Ciro Santilli
Just to re-affirm, I have ran this patch on x86 and arm, and it worked. On Mon, Mar 12, 2018 at 10:32 AM, Pavel Dovgalyuk wrote: > Ping. > > Pavel Dovgalyuk > > >> -Original Message- >> From: Pavel Dovgalyuk [mailto:pavel.dovga...@ispras.ru] >> Sent: Tuesday, February 27, 2018 12:52 PM >

Re: [Qemu-devel] [RFC PATCH v6 00/20] replay additions

2018-02-22 Thread Ciro Santilli
On Thu, Feb 22, 2018 at 7:10 AM, Pavel Dovgalyuk wrote: >> From: Pavel Dovgalyuk [mailto:dovga...@ispras.ru] >> > From: Ciro Santilli [mailto:ciro.santi...@gmail.com] >> > On Wed, Feb 21, 2018 at 6:41 AM, Pavel Dovgalyuk >> > wrote: >> > >> Fro

Re: [Qemu-devel] [RFC PATCH v6 00/20] replay additions

2018-02-21 Thread Ciro Santilli
On Wed, Feb 21, 2018 at 6:41 AM, Pavel Dovgalyuk wrote: >> From: Ciro Santilli [mailto:ciro.santi...@gmail.com] >> On Tue, Feb 20, 2018 at 9:46 AM, Pavel Dovgalyuk wrote: >> > >> > Updated the branch on github. >> > You may try it. >> >> At

Re: [Qemu-devel] [RFC PATCH v6 00/20] replay additions

2018-02-20 Thread Ciro Santilli
On Tue, Feb 20, 2018 at 9:46 AM, Pavel Dovgalyuk wrote: >> From: Ciro Santilli [mailto:ciro.santi...@gmail.com] >> On Mon, Feb 19, 2018 at 8:02 AM, Pavel Dovgalyuk wrote: >> >> From: Pavel Dovgalyuk [mailto:dovga...@ispras.ru] >> >> > From: Peter M

Re: [Qemu-devel] [RFC PATCH v6 00/20] replay additions

2018-02-19 Thread Ciro Santilli
On Mon, Feb 19, 2018 at 8:02 AM, Pavel Dovgalyuk wrote: >> From: Pavel Dovgalyuk [mailto:dovga...@ispras.ru] >> > From: Peter Maydell [mailto:peter.mayd...@linaro.org] >> > On 13 February 2018 at 10:26, Pavel Dovgalyuk wrote: >> > > Then I added SCSI adapter with the option –device lsi,id=scsi0 a

Re: [Qemu-devel] [RFC PATCH v6 00/20] replay additions

2018-02-13 Thread Ciro Santilli
2.0 and everything is fully automated at: https://github.com/cirosantilli/linux-kernel-module-cheat/tree/5ae702c71c2b2ad326b7791ff128cac0d8b298a2 by running: ./build -q On Wed, Feb 7, 2018 at 12:38 PM, Pavel Dovgalyuk wrote: >> From: Ciro Santilli [mailto:ciro.santi...@gmail.com] >> Can you provide a test branch somewhere so I can easily test it out? > > Here it is: https://github.com/ispras/qemu/tree/rr-180207 > > Pavel Dovgalyuk >

Re: [Qemu-devel] [RFC PATCH v6 00/20] replay additions

2018-02-13 Thread Ciro Santilli
On Tue, Feb 13, 2018 at 10:52 AM, Pavel Dovgalyuk wrote: > > From: Peter Maydell [mailto:peter.mayd...@linaro.org] > > On 13 February 2018 at 10:26, Pavel Dovgalyuk > wrote: > > > Then I added SCSI adapter with the option –device lsi,id=scsi0 and QEMU > > > failed with the following error: > > >

Re: [Qemu-devel] [RFC PATCH v6 00/20] replay additions

2018-02-13 Thread Ciro Santilli
he new one instead. Now it should be just the vanilla Linux kernel versatilepb one. How to specify the --dtb configuration explicitly on the command line? I have also included the dts on the zip if that helps. > > > Pavel Dovgalyuk > > > > *From:* Ciro Santilli [mailto:ciro.san

Re: [Qemu-devel] [RFC PATCH v6 00/20] replay additions

2018-02-12 Thread Ciro Santilli
//github.com/cirosantilli/linux-kernel-module-cheat/releases/download/test-replay-arm/images.zip They were generated with: ./build -a arm on that repo. > Pavel Dovgalyuk > > > > *From:* Ciro Santilli [mailto:ciro.santi...@gmail.com] > *Sent:* Saturday, February 10, 2018 3:09

Re: [Qemu-devel] [RFC PATCH v6 00/20] replay additions

2018-02-09 Thread Ciro Santilli
Also, what command do you use to test on ARM? I'm a bit stuck to get the drive part right, e.g.: -drive file=./buildroot/output.arm~/images/rootfs.ext2,if=scsi,id=img-direct,format=raw \ -drive driver=blkreplay,if=none,image=img-direct,id=img-blkreplay \ -device scsi-hd,drive=img-blkreplay \ fail

Re: [Qemu-devel] [RFC PATCH v6 00/20] replay additions

2018-02-07 Thread Ciro Santilli
On Wed, Feb 7, 2018 at 12:38 PM, Pavel Dovgalyuk wrote: > > From: Ciro Santilli [mailto:ciro.santi...@gmail.com] > > Can you provide a test branch somewhere so I can easily test it out? > > Here it is: https://github.com/ispras/qemu/tree/rr-180207 > > Pavel Dovgalyuk

Re: [Qemu-devel] [RFC PATCH v6 00/20] replay additions

2018-02-07 Thread Ciro Santilli
On Wed, Feb 7, 2018 at 12:03 PM, Pavel Dovgalyuk wrote: > This set of patches moves replay lock upper in the function call tree. > Now replay lock functions similar to BQL in older version and allows > deterministic execution of the threads in icount mode. > It is also fixes some vmstate creation

[Qemu-devel] How to inject interrupts and modify memory in QEMU from external asynchronous interfaces like QMP and QAPI?

2017-05-30 Thread Ciro Santilli
I want to create models for external hardware devices. If interrupts generation and memory modification were possible with serialized asynchronous APIs like QMP / QAPI, then I would be able to: - write the models in any language I want - not need to patch QEMU source code, and keep all my changes