Re: Recording virtual memory addresses made by the Guest

2021-11-12 Thread Alex Bennée
Arnabjyoti Kalita writes: > Hello all, > > I have a requirement to record all the load and store addresses that a > guest makes. I have determined that the load and store address > information can be determined from the below functions - > > static inline uint64_t cpu_load_helper(CPUArchState *

Re: spin loop 100x faster in user mode (CPL=3) than superuser (CPL=0)?

2021-11-12 Thread Alex Bennée
Garrick Toubassi writes: > I went ahead and created a short repro case which can be found at > https://github.com/gtoubassi/qemu-spinrepro. Would appreciate > thoughts from anyone or guidance on how to debug. Well something weird is going on that is chewing through the code generation logic.

Re: Using QEMU for running RISC-V programs

2021-11-12 Thread Alex Bennée
Vincent Abraham writes: > I have installed the QEMU emulator for running a 32-bit RISC-V machine. But > now I'm not sure how to compile and run my own programs > (C or Assembly) using QEMU. Could I get some easy to understand > documentation regarding this? Installing and cross building binar

[no subject]

2021-11-12 Thread Alex Bennée
Subject: Re: riscv64 system emulation maximum core count with virt machine Date: Fri, 12 Nov 2021 10:16:34 + References: User-agent: mu4e 1.7.4; emacs 28.0.60 In-reply-to: Mark Wyse writes: > Thanks Rahul, > > After some digging I came to the same conclusions. I'll dig deeper to see

Re: Guest Ubuntu 18.04 fails to boot with -serial mon:stdio, cannot find ttyS0.

2021-11-12 Thread Thomas Huth
On 11/11/2021 17.10, Peter Maydell wrote: On Mon, 8 Nov 2021 at 18:05, David Fernandez wrote: ../configure \ --enable-lto \ Does disabling LTO make a difference? That's about the only thing in the configure options that stands out as maybe making a difference. Please don't use LTO o

Re: Starting raspi3 machine at EL2 or EL3

2021-11-12 Thread Alex Bennée
Rodolphe Lepigre writes: > Dear QEMU users mailing list, > > I have been spending a bit of time experimenting with the emulation > of a Raspberry Pi 3 computer using QEMU (version 6.1.0) by running > the following command. > > $> qemu-system-aarch64 -M raspi3 -nographics -kernel kernel8.img >

Re: Logging program execution artifacts in TCG

2021-11-12 Thread Alex Bennée
Arnabjyoti Kalita writes: > Hello all, > > I have a requirement to record a few artifacts when I start a program > execution in the TCG mode of QEMU. I use 'nochain,exec' debug flags > when starting QEMU in TCG mode. This is for the x86_64 host and target > architectures. I am using QEMU versio

Re: Starting raspi3 machine at EL2 or EL3

2021-11-12 Thread Rodolphe Lepigre
On 12/11/21 10:27, Alex Bennée wrote: > Rodolphe Lepigre writes: > > I have been spending a bit of time experimenting with the emulation > > of a Raspberry Pi 3 computer using QEMU (version 6.1.0) by running > > the following command. > > > > $> qemu-system-aarch64 -M raspi3 -nographics -kernel k

Re: spin loop 100x faster in user mode (CPL=3) than superuser (CPL=0)?

2021-11-12 Thread Alex Bennée
Alex Bennée writes: > Garrick Toubassi writes: > >> I went ahead and created a short repro case which can be found at >> https://github.com/gtoubassi/qemu-spinrepro. Would appreciate >> thoughts from anyone or guidance on how to debug. > > Well something weird is going on that is chewing thr

Re: Guest Ubuntu 18.04 fails to boot with -serial mon:stdio, cannot find ttyS0.

2021-11-12 Thread David Fernandez
On 12/11/2021 10:27, Thomas Huth wrote: > [No suele recibir correo electrónico de th...@redhat.com. Obtenga > información acerca de por qué esto es importante en > http://aka.ms/LearnAboutSenderIdentification.] > > On 11/11/2021 17.10, Peter Maydell wrote: >> On Mon, 8 Nov 2021 at 18:05, David Fe

Re: Guest Ubuntu 18.04 fails to boot with -serial mon:stdio, cannot find ttyS0.

2021-11-12 Thread David Fernandez
On 11/11/2021 16:10, Peter Maydell wrote: > On Mon, 8 Nov 2021 at 18:05, David Fernandez wrote: >> ../configure \ >> --enable-lto \ > Does disabling LTO make a difference? That's about the only > thing in the configure options that stands out as maybe > making a difference. > > -- PMM Hi Pete

Re: Guest Ubuntu 18.04 fails to boot with -serial mon:stdio, cannot find ttyS0.

2021-11-12 Thread David Fernandez
On 11/11/2021 16:40, Peter Maydell wrote: > On Mon, 8 Nov 2021 at 18:05, David Fernandez wrote: >> I couldn't get the stock qemu-system-x86_04 to boot correctly, as it was >> an old version 2.11.1, I decided to recompile from sources to see if >> that would fix the problem, but the problem still p

Re: spin loop 100x faster in user mode (CPL=3) than superuser (CPL=0)?

2021-11-12 Thread Garrick Toubassi
Thanks Alex! Thanks for the pointer to gdbstub. I just single stepped through the loop and see it behaving "as expected", which leads me to believe the performance issue doesn't show up in the execution of the client code. But it sounds like you are saying you see evidence of it executing at 0x9

Re:

2021-11-12 Thread Anup Patel
On 12/11/21, 3:51 PM, "Alex Bennée" wrote: Subject: Re: riscv64 system emulation maximum core count with virt machine Date: Fri, 12 Nov 2021 10:16:34 + References: User-agent: mu4e 1.7.4; emacs 28.0.60 In-reply-to: Mark Wyse writes: > Thanks Rahul,

Why does Qemu+Spice capture the mouse on OSX but not libvirt?

2021-11-12 Thread John Paul Morrison
Hi I'm trying to make sense of how this libvirt configuration is working so well with the mouse. Normally, if I start an OSX guest and connect with Spice the mouse is captured - you have to click and ctrl-alt to release. But when I imported the VM into Virt-manager and connected with Spice the m

Re: Why does Qemu+Spice capture the mouse on OSX but not libvirt?

2021-11-12 Thread John Paul Morrison
Ooof - multiple displays caused problems with mouse/usb-tablet https://gitlab.com/qemu-project/qemu/-/issues/723 On Fri, Nov 12, 2021 at 11:33 AM John Paul Morrison wrote: > Hi > > I'm trying to make sense of how this libvirt configuration is working so > well with the mouse. > > Normally, if I