Re: QEMU checkpoint/restore without an image?

2021-06-28 Thread Peter Maydell
On Mon, 28 Jun 2021 at 18:20, Leek, Jim via wrote: > > Yes, that great, thanks. I had previously tried > -drive file=dummy.qcow2,if=virtio,format=qcow2 > > That didn't work, but setting if=none seems to work. I'll have to research > why that is, but I'm off and running now. Thanks. "if=none"

Re: QEMU checkpoint/restore without an image?

2021-06-28 Thread Leek, Jim
Yes, that great, thanks. I had previously tried -drive file=dummy.qcow2,if=virtio,format=qcow2 That didn't work, but setting if=none seems to work. I'll have to research why that is, but I'm off and running now. Thanks. Jim From: Peter Maydell Sent: Sunday,

Re: Qemu-4.2.0

2021-06-28 Thread Peter Maydell
On Mon, 28 Jun 2021 at 14:57, abhijeet inamdar wrote: > > I sorted the MachineState error. We checkout the commit for serial_hds(). > > Can get some link for the QEMU internal API changes for different versions > machines. As I was not successful in finding one. Arm-cortex-m3 related. Nope, I'm

Re: Qemu-4.2.0

2021-06-28 Thread abhijeet inamdar
I sorted the MachineState error. We checkout the commit for serial_hds(). Can get some link for the QEMU internal API changes for different versions machines. As I was not successful in finding one. Arm-cortex-m3 related. Thanks in advance. BR. Abhijeet. On Mon, Jun 28, 2021, 15:30 Peter

Re: Qemu-4.2.0

2021-06-28 Thread Peter Maydell
On Mon, 28 Jun 2021 at 13:40, abhijeet inamdar wrote: > > I didn't do any changes in the QEMU source code but added new for the .c and > .h files for the custom machine. That *is* changing the QEMU source code :-) Sorry, I'd missed you were adding your own custom machine. You'll find that

Re: Qemu-4.2.0

2021-06-28 Thread abhijeet inamdar
How else you add a custom machine?? BR. Abhijeet. On Mon, Jun 28, 2021, 14:40 abhijeet inamdar wrote: > I didn't do any changes in the QEMU source code but added new for the .c > and .h files for the custom machine. > > BR. > Abhijeet. > > On Mon, Jun 28, 2021, 14:35 Peter Maydell > wrote: >

Re: Qemu-4.2.0

2021-06-28 Thread Peter Maydell
On Mon, 28 Jun 2021 at 13:04, abhijeet inamdar wrote: > > It is showing errors for serial_hds() and MachineState so what specific .h > files I should add? I'm not sure why you're changing the QEMU source code ? Hard to say what is happening unless you say what your changes are. thanks -- PMM

Re: Qemu-4.2.0

2021-06-28 Thread abhijeet inamdar
I didn't do any changes in the QEMU source code but added new for the .c and .h files for the custom machine. BR. Abhijeet. On Mon, Jun 28, 2021, 14:35 Peter Maydell wrote: > On Mon, 28 Jun 2021 at 13:04, abhijeet inamdar > wrote: > > > > It is showing errors for serial_hds() and MachineState

Re: Qemu-4.2.0

2021-06-28 Thread abhijeet inamdar
It is showing errors for serial_hds() and MachineState so what specific .h files I should add? BR. Abhijeet. On Mon, Jun 28, 2021, 13:57 abhijeet inamdar wrote: > Hi, > > I have built custom hardware which is based on arm-m3 in qemu-2.10. It > works fine for Hello_world.c a basic program

Re: Qemu-4.2.0

2021-06-28 Thread abhijeet inamdar
Hi, I have built custom hardware which is based on arm-m3 in qemu-2.10. It works fine for Hello_world.c a basic program emulation. Now I have migrated to qemu-4.2.0. I want to run the same Hello_world.c which is not emulating. I have changed the .objs accordingly. What would you suggest? BR.

Re: how to change sector size using qemu-img

2021-06-28 Thread Kevin Wolf
Am 25.06.2021 um 21:06 hat Nir Soffer geschrieben: > On Fri, Jun 25, 2021 at 7:40 PM Jiatong Shen wrote: > > > > Hello community, > > > > I have a disk with both logical and physical sector size being 4096. I have > > a qcow2 image which is built from a virtual machine has legacy 512 bytes > >