Open serial port to attach via GDB

2021-07-07 Thread Dmitrii Bundin
d you please suggest a possible solution? Regards, Dmitrii Bundin

Re: Open serial port to attach via GDB

2021-07-10 Thread Dmitrii Bundin
On Thu, Jul 8, 2021 at 12:13 PM Peter Maydell wrote: > The more usual way to connect to the QEMU gdbstub is to > have it listen on a TCP port and connect gdb to that. You can > do that by passing QEMU "-s -S" (and no -gdb option), which will > make it pause on startup and use the default TCP port

Re: Open serial port to attach via GDB

2021-07-11 Thread Dmitrii Bundin
Thanks for the reply. Now it becomes much clearer. Regards, Dmitrii.

Shortcuts are not intercepted by QEMU guest

2021-11-14 Thread Dmitrii Bundin
I have problems with sending shortcuts to the Ubuntu guest. Like Alt + Tab, Ctrl + Alt + T, Alt + F4, etc... It's sent to the host instead even though the QEMU window is active. Is there a way to change/configure such behavior? For example Alt + F4 closes the guest itself, not the active guest win

Re: Shortcuts are not intercepted by QEMU guest

2021-11-14 Thread Dmitrii Bundin
It turned out that compiling QEMU with --enable-sdl option does the desired hotkeys interception for the guest. -- Regards, Dmitrii

Qemu config file -cpu host option

2022-01-05 Thread Dmitrii Bundin
QEMU version 6.1.0 I have a QEMU configuration file qemu.cfg containing the following section: [accel] accel = "kvm" So to run qemu I use the command qemu-system-x86_64 -readconfig qemu.cfg -cpu host ubuntu.img Is there a way to put -cpu host into the config file as well? I tried [accel] acce

Qemu config file -cpu host option

2022-01-06 Thread Dmitrii Bundin
QEMU version 6.1.0 I have a QEMU configuration file qemu.cfg containing the following section: [accel] accel = "kvm" So to run qemu I use the command qemu-system-x86_64 -readconfig qemu.cfg -cpu host ubuntu.img Is there a way to put -cpu host into the config file as well? I tried [accel] acce

Unable to access init.text section of the Linux Kernel when debugging with GDB using kvm

2022-06-23 Thread Dmitrii Bundin
When debugging Linux Kernel running in QEMU with GDB it's not possible to access the Kernel function located in .text.init. Example: (gdb) disas start_kernel Dump of assembler code for function start_kernel: 0x83160ff3 <+0>: Cannot access memory at address 0x83160ff3 Removi

Re: Unable to access init.text section of the Linux Kernel when debugging with GDB using kvm

2022-07-04 Thread Dmitrii Bundin
> Could it be address space randomisation having an effect? Not sure, since I explicitly disabled kaslr. I appended nokaslr in the GRUB command line. With kaslr enabled it's not possible to access any of the virtual address in the kernel space. The thing is removing --enable-kvm -cpu host makes i