qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Savevm and loadvm not working


From: Peter Maydell
Subject: Re: [Qemu-devel] Savevm and loadvm not working
Date: Thu, 1 Feb 2018 12:26:23 +0000

On 1 February 2018 at 12:19, sridhar kulkarni via Qemu-devel
<address@hidden> wrote:
> I thought that RAM contents are not saved because of return value 
> RAM_SAVE_CONTROL_NOT_SUPP. Now that you clarified about this, I debugged this 
> further. After doing loadvm operation, I am getting following 
> error,qemu-system-arm: error while loading state for instance 0x0 of device 
> 'cpu'
> qemu-system-arm: Error -1 while loading VM state
> I figured out that, this error is because of following function returning 
> FALSE. "write_raw_cp_reg" writes a value and "read_raw_cp_reg" reads the 
> value back. There is mismatch between what we write and what is being read 
> back, and hence function returns FALSE.
> Between I want to mention that, I am trying the snapshot on a VM which runs 
> ARM 7 core. I am not sure if this snapshot feature is fully function for ARM 
> targets.

It is supposed to work for ARM, and it does for
the CPUs I've tested it with. Which exact CPU
model are you using? (Do you really mean "ARM 7"?
We don't support that. We have ARMv7 architecture
CPUs like the cortex-a9 -- did you mean one of those?)

Are you using an unmodified upstream QEMU? We don't
have an "arm-machine" board model which is what your
command line is using with "-M arm-machine", so if
you're using a modified QEMU it's possible those
modifications haven't been written to support VM
state saving.

The next step in debugging would be to run QEMU under
gdb or add tracing printfs so that you can identify
which emulated system register it is that is causing the
failure.

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]