Calling disk I/O functions in qemu main loop

2021-07-10 Thread Arnabjyoti Kalita
Hello all, I am running QEMU version 5.0.1 in TCG mode. And I am looking for a mechanism to actually run disk read and disk write functions in the TCG guest execution loop. I am using the virtio-blk pci device and I am using a qcow2 image file. static inline tcg_target_ulong cpu_tb_exec(CPUState

Re: using bit-field to define a qom register

2021-07-10 Thread Peter Maydell
On Sat, 10 Jul 2021 at 03:02, Hiroko Shimizu wrote: > Anyway, if you access the second bit, does the read/write function > offset value become 1 bit automatically? If you mean the MemoryRegionOps read and write functions, those work only with byte offsets, because the guest CPU cannot make

Re: Open serial port to attach via GDB

2021-07-10 Thread Peter Maydell
On Sat, 10 Jul 2021 at 08:22, Dmitrii Bundin wrote: > > 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),

After having stopped virtual-manager, I can't use command line QEMU: “Failed to get shared ”write“ lock Is another process using the image”

2021-07-10 Thread gustavklopp
Hi! I've launched a virtual image through the software virtual-manager (it's a GUI allowing to launch your virtual images). I've stopped normally the image and close the software virtual-manager. But now, I can't use QEMU directly in commandline to start this virtual image (by doing

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