* [Qemu-devel] [Bug 1839807] [NEW] Snapshots freeze guest Sabrelite IMX.6 board
@ 2019-08-12 6:51 Al Sn
2019-08-12 17:08 ` [Qemu-devel] [Bug 1839807] " Peter Maydell
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: Al Sn @ 2019-08-12 6:51 UTC (permalink / raw)
To: qemu-devel
Public bug reported:
Hello,
I'm trying to take and restore a snapshot with the whole system state of the Sabrelite IMX.6 board running on QEMU with commands savevm/loadvm.
It seems that I am able to take a snapshot but loading the snapshot fails.
For comparison I checked out snapshots on 32bit ARM Virt with Debian as well as on the Versatilepb board with a bare metal application and it works fine.
The problem occurs only with that one particular board.
My environment is:
Ubuntu 18.04
QEMU 3.0.1 (I see the same issue in QEMU 4.0.0 as well)
The kernel and device tree used for the board was 5.1.14 version from kernel.org
The file system was build from imx_v6_v7_defconfig config in buildroot
as and sd card image.
Problem:
Loading snapshot stops the whole machine and it's impossible to resume
it.
Steps to reproduce problem:
1. I converted the sdcard.img built from the buildroot to qcow2
using command qemu-img convert -f raw -O qcow2 sdcard.img sdcard.qcow2,
since the raw doesn't support snapshots.
2. I start QEMU with a command
./arm-softmmu/qemu-system-arm -m 512 -M sabrelite -kernel zImage -append "rootfstype=ext4 root=/dev/mmcblk2p2 rw rootwait" -rtc base=localtime,clock=vm -dtb imx6dl-sabresd.dtb -drive file=sdcard.qcow2,index=2,format=qcow2,id=mycard -device sd-card,drive=mycard -nographic -net nic -net user
3. I run a simple program which print characters to the console in
the background and add some files in user directory, to differ from
original image.
4. I switch to QEMU monitor, and type “savevm <name>”.
When I type “info snapshots”, the snapshot is listed.
So I assume it was saved correctly.
5. Then I switch back to Linux console from monitor, remove the
added files and stop the background printing process.
6. I switch back to monitor and I'm trying now to load the snapshot
by “loadvm <name>” command.
That’s where the problem occurs. QEMU stops and I can't switch back from monitor to Linux.
Typing “cont” doesn’t help.
It seems like the simulation has freezed. CPU usage on my Laptop machine equals 100% until I exit QEMU.
What’s interesting when I exit the QEMU and then start it again the Linux boots and after it reaches the command prompt I can see the files which were removed after saving the snapshot.
It looks like loading the snapshots works for restoring disk space but
it fails for restoring the running processes.
Due to the answer on QEMU mailing list
(https://lists.nongnu.org/archive/html/qemu-
discuss/2019-08/msg00016.html) it is QEMUs bug.
** Affects: qemu
Importance: Undecided
Status: New
** Tags: snapshots
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1839807
Title:
Snapshots freeze guest Sabrelite IMX.6 board
Status in QEMU:
New
Bug description:
Hello,
I'm trying to take and restore a snapshot with the whole system state of the Sabrelite IMX.6 board running on QEMU with commands savevm/loadvm.
It seems that I am able to take a snapshot but loading the snapshot fails.
For comparison I checked out snapshots on 32bit ARM Virt with Debian as well as on the Versatilepb board with a bare metal application and it works fine.
The problem occurs only with that one particular board.
My environment is:
Ubuntu 18.04
QEMU 3.0.1 (I see the same issue in QEMU 4.0.0 as well)
The kernel and device tree used for the board was 5.1.14 version from kernel.org
The file system was build from imx_v6_v7_defconfig config in buildroot
as and sd card image.
Problem:
Loading snapshot stops the whole machine and it's impossible to resume
it.
Steps to reproduce problem:
1. I converted the sdcard.img built from the buildroot to qcow2
using command qemu-img convert -f raw -O qcow2 sdcard.img
sdcard.qcow2, since the raw doesn't support snapshots.
2. I start QEMU with a command
./arm-softmmu/qemu-system-arm -m 512 -M sabrelite -kernel zImage -append "rootfstype=ext4 root=/dev/mmcblk2p2 rw rootwait" -rtc base=localtime,clock=vm -dtb imx6dl-sabresd.dtb -drive file=sdcard.qcow2,index=2,format=qcow2,id=mycard -device sd-card,drive=mycard -nographic -net nic -net user
3. I run a simple program which print characters to the console
in the background and add some files in user directory, to differ from
original image.
4. I switch to QEMU monitor, and type “savevm <name>”.
When I type “info snapshots”, the snapshot is listed.
So I assume it was saved correctly.
5. Then I switch back to Linux console from monitor, remove the
added files and stop the background printing process.
6. I switch back to monitor and I'm trying now to load the
snapshot by “loadvm <name>” command.
That’s where the problem occurs. QEMU stops and I can't switch back from monitor to Linux.
Typing “cont” doesn’t help.
It seems like the simulation has freezed. CPU usage on my Laptop machine equals 100% until I exit QEMU.
What’s interesting when I exit the QEMU and then start it again the Linux boots and after it reaches the command prompt I can see the files which were removed after saving the snapshot.
It looks like loading the snapshots works for restoring disk space but
it fails for restoring the running processes.
Due to the answer on QEMU mailing list
(https://lists.nongnu.org/archive/html/qemu-
discuss/2019-08/msg00016.html) it is QEMUs bug.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1839807/+subscriptions
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] [Bug 1839807] Re: Snapshots freeze guest Sabrelite IMX.6 board
2019-08-12 6:51 [Qemu-devel] [Bug 1839807] [NEW] Snapshots freeze guest Sabrelite IMX.6 board Al Sn
@ 2019-08-12 17:08 ` Peter Maydell
2019-08-13 6:55 ` Al Sn
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Peter Maydell @ 2019-08-12 17:08 UTC (permalink / raw)
To: qemu-devel
The underlying cause of this is that we're not migrating the Secure
banked cp15 register contents. So boards which don't enable TrustZone or
where the guest runs in the NonSecure state (like the virt board, etc)
can save/restore fine, but since the imx6 happens to run the guest in
the Secure state it gets hit by the bug and its MMU setup etc is
completely broken on restore.
This is a bug I knew about (I mentioned it in LP:1739378 comment #5),
but I've forgotten the detail of why it happens and don't seem to have
written it down, so I'm going to have to think it through again...
** Changed in: qemu
Status: New => Confirmed
** Tags added: arm
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1839807
Title:
Snapshots freeze guest Sabrelite IMX.6 board
Status in QEMU:
Confirmed
Bug description:
Hello,
I'm trying to take and restore a snapshot with the whole system state of the Sabrelite IMX.6 board running on QEMU with commands savevm/loadvm.
It seems that I am able to take a snapshot but loading the snapshot fails.
For comparison I checked out snapshots on 32bit ARM Virt with Debian as well as on the Versatilepb board with a bare metal application and it works fine.
The problem occurs only with that one particular board.
My environment is:
Ubuntu 18.04
QEMU 3.0.1 (I see the same issue in QEMU 4.0.0 as well)
The kernel and device tree used for the board was 5.1.14 version from kernel.org
The file system was build from imx_v6_v7_defconfig config in buildroot
as and sd card image.
Problem:
Loading snapshot stops the whole machine and it's impossible to resume
it.
Steps to reproduce problem:
1. I converted the sdcard.img built from the buildroot to qcow2
using command qemu-img convert -f raw -O qcow2 sdcard.img
sdcard.qcow2, since the raw doesn't support snapshots.
2. I start QEMU with a command
./arm-softmmu/qemu-system-arm -m 512 -M sabrelite -kernel zImage -append "rootfstype=ext4 root=/dev/mmcblk2p2 rw rootwait" -rtc base=localtime,clock=vm -dtb imx6dl-sabresd.dtb -drive file=sdcard.qcow2,index=2,format=qcow2,id=mycard -device sd-card,drive=mycard -nographic -net nic -net user
3. I run a simple program which print characters to the console
in the background and add some files in user directory, to differ from
original image.
4. I switch to QEMU monitor, and type “savevm <name>”.
When I type “info snapshots”, the snapshot is listed.
So I assume it was saved correctly.
5. Then I switch back to Linux console from monitor, remove the
added files and stop the background printing process.
6. I switch back to monitor and I'm trying now to load the
snapshot by “loadvm <name>” command.
That’s where the problem occurs. QEMU stops and I can't switch back from monitor to Linux.
Typing “cont” doesn’t help.
It seems like the simulation has freezed. CPU usage on my Laptop machine equals 100% until I exit QEMU.
What’s interesting when I exit the QEMU and then start it again the Linux boots and after it reaches the command prompt I can see the files which were removed after saving the snapshot.
It looks like loading the snapshots works for restoring disk space but
it fails for restoring the running processes.
Due to the answer on QEMU mailing list
(https://lists.nongnu.org/archive/html/qemu-
discuss/2019-08/msg00016.html) it is QEMUs bug.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1839807/+subscriptions
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] [Bug 1839807] Re: Snapshots freeze guest Sabrelite IMX.6 board
2019-08-12 6:51 [Qemu-devel] [Bug 1839807] [NEW] Snapshots freeze guest Sabrelite IMX.6 board Al Sn
2019-08-12 17:08 ` [Qemu-devel] [Bug 1839807] " Peter Maydell
@ 2019-08-13 6:55 ` Al Sn
2019-08-13 9:21 ` Peter Maydell
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Al Sn @ 2019-08-13 6:55 UTC (permalink / raw)
To: qemu-devel
Hello again,
I have tried to disable TrustZone using argument mentioned in comment #5
by changing -M sabrelite to -M sabrelite,secure=off, but I get error
"qemu-system-arm: Property '.secure' not found". It works with virt
though. Is there any other way to disable it?
Thank you,
...
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1839807
Title:
Snapshots freeze guest Sabrelite IMX.6 board
Status in QEMU:
Confirmed
Bug description:
Hello,
I'm trying to take and restore a snapshot with the whole system state of the Sabrelite IMX.6 board running on QEMU with commands savevm/loadvm.
It seems that I am able to take a snapshot but loading the snapshot fails.
For comparison I checked out snapshots on 32bit ARM Virt with Debian as well as on the Versatilepb board with a bare metal application and it works fine.
The problem occurs only with that one particular board.
My environment is:
Ubuntu 18.04
QEMU 3.0.1 (I see the same issue in QEMU 4.0.0 as well)
The kernel and device tree used for the board was 5.1.14 version from kernel.org
The file system was build from imx_v6_v7_defconfig config in buildroot
as and sd card image.
Problem:
Loading snapshot stops the whole machine and it's impossible to resume
it.
Steps to reproduce problem:
1. I converted the sdcard.img built from the buildroot to qcow2
using command qemu-img convert -f raw -O qcow2 sdcard.img
sdcard.qcow2, since the raw doesn't support snapshots.
2. I start QEMU with a command
./arm-softmmu/qemu-system-arm -m 512 -M sabrelite -kernel zImage -append "rootfstype=ext4 root=/dev/mmcblk2p2 rw rootwait" -rtc base=localtime,clock=vm -dtb imx6dl-sabresd.dtb -drive file=sdcard.qcow2,index=2,format=qcow2,id=mycard -device sd-card,drive=mycard -nographic -net nic -net user
3. I run a simple program which print characters to the console
in the background and add some files in user directory, to differ from
original image.
4. I switch to QEMU monitor, and type “savevm <name>”.
When I type “info snapshots”, the snapshot is listed.
So I assume it was saved correctly.
5. Then I switch back to Linux console from monitor, remove the
added files and stop the background printing process.
6. I switch back to monitor and I'm trying now to load the
snapshot by “loadvm <name>” command.
That’s where the problem occurs. QEMU stops and I can't switch back from monitor to Linux.
Typing “cont” doesn’t help.
It seems like the simulation has freezed. CPU usage on my Laptop machine equals 100% until I exit QEMU.
What’s interesting when I exit the QEMU and then start it again the Linux boots and after it reaches the command prompt I can see the files which were removed after saving the snapshot.
It looks like loading the snapshots works for restoring disk space but
it fails for restoring the running processes.
Due to the answer on QEMU mailing list
(https://lists.nongnu.org/archive/html/qemu-
discuss/2019-08/msg00016.html) it is QEMUs bug.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1839807/+subscriptions
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Qemu-devel] [Bug 1839807] Re: Snapshots freeze guest Sabrelite IMX.6 board
2019-08-12 6:51 [Qemu-devel] [Bug 1839807] [NEW] Snapshots freeze guest Sabrelite IMX.6 board Al Sn
2019-08-12 17:08 ` [Qemu-devel] [Bug 1839807] " Peter Maydell
2019-08-13 6:55 ` Al Sn
@ 2019-08-13 9:21 ` Peter Maydell
2021-05-09 15:07 ` Thomas Huth
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Peter Maydell @ 2019-08-13 9:21 UTC (permalink / raw)
To: qemu-devel
That property doesn't exist for the sabrelite board, it's only on some
of the others like vexpress or virt.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1839807
Title:
Snapshots freeze guest Sabrelite IMX.6 board
Status in QEMU:
Confirmed
Bug description:
Hello,
I'm trying to take and restore a snapshot with the whole system state of the Sabrelite IMX.6 board running on QEMU with commands savevm/loadvm.
It seems that I am able to take a snapshot but loading the snapshot fails.
For comparison I checked out snapshots on 32bit ARM Virt with Debian as well as on the Versatilepb board with a bare metal application and it works fine.
The problem occurs only with that one particular board.
My environment is:
Ubuntu 18.04
QEMU 3.0.1 (I see the same issue in QEMU 4.0.0 as well)
The kernel and device tree used for the board was 5.1.14 version from kernel.org
The file system was build from imx_v6_v7_defconfig config in buildroot
as and sd card image.
Problem:
Loading snapshot stops the whole machine and it's impossible to resume
it.
Steps to reproduce problem:
1. I converted the sdcard.img built from the buildroot to qcow2
using command qemu-img convert -f raw -O qcow2 sdcard.img
sdcard.qcow2, since the raw doesn't support snapshots.
2. I start QEMU with a command
./arm-softmmu/qemu-system-arm -m 512 -M sabrelite -kernel zImage -append "rootfstype=ext4 root=/dev/mmcblk2p2 rw rootwait" -rtc base=localtime,clock=vm -dtb imx6dl-sabresd.dtb -drive file=sdcard.qcow2,index=2,format=qcow2,id=mycard -device sd-card,drive=mycard -nographic -net nic -net user
3. I run a simple program which print characters to the console
in the background and add some files in user directory, to differ from
original image.
4. I switch to QEMU monitor, and type “savevm <name>”.
When I type “info snapshots”, the snapshot is listed.
So I assume it was saved correctly.
5. Then I switch back to Linux console from monitor, remove the
added files and stop the background printing process.
6. I switch back to monitor and I'm trying now to load the
snapshot by “loadvm <name>” command.
That’s where the problem occurs. QEMU stops and I can't switch back from monitor to Linux.
Typing “cont” doesn’t help.
It seems like the simulation has freezed. CPU usage on my Laptop machine equals 100% until I exit QEMU.
What’s interesting when I exit the QEMU and then start it again the Linux boots and after it reaches the command prompt I can see the files which were removed after saving the snapshot.
It looks like loading the snapshots works for restoring disk space but
it fails for restoring the running processes.
Due to the answer on QEMU mailing list
(https://lists.nongnu.org/archive/html/qemu-
discuss/2019-08/msg00016.html) it is QEMUs bug.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1839807/+subscriptions
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug 1839807] Re: Snapshots freeze guest Sabrelite IMX.6 board
2019-08-12 6:51 [Qemu-devel] [Bug 1839807] [NEW] Snapshots freeze guest Sabrelite IMX.6 board Al Sn
` (2 preceding siblings ...)
2019-08-13 9:21 ` Peter Maydell
@ 2021-05-09 15:07 ` Thomas Huth
2021-07-09 4:17 ` Launchpad Bug Tracker
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Thomas Huth @ 2021-05-09 15:07 UTC (permalink / raw)
To: qemu-devel
The QEMU project is currently moving its bug tracking to another system.
For this we need to know which bugs are still valid and which could be
closed already. Thus we are setting the bug state to "Incomplete" now.
If the bug has already been fixed in the latest upstream version of QEMU,
then please close this ticket as "Fix released".
If it is not fixed yet and you think that this bug report here is still
valid, then you have two options:
1) If you already have an account on gitlab.com, please open a new ticket
for this problem in our new tracker here:
https://gitlab.com/qemu-project/qemu/-/issues
and then close this ticket here on Launchpad (or let it expire auto-
matically after 60 days). Please mention the URL of this bug ticket on
Launchpad in the new ticket on GitLab.
2) If you don't have an account on gitlab.com and don't intend to get
one, but still would like to keep this ticket opened, then please switch
the state back to "New" or "Confirmed" within the next 60 days (other-
wise it will get closed as "Expired"). We will then eventually migrate
the ticket automatically to the new system (but you won't be the reporter
of the bug in the new system and thus you won't get notified on changes
anymore).
Thank you and sorry for the inconvenience.
** Changed in: qemu
Status: Confirmed => Incomplete
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1839807
Title:
Snapshots freeze guest Sabrelite IMX.6 board
Status in QEMU:
Incomplete
Bug description:
Hello,
I'm trying to take and restore a snapshot with the whole system state of the Sabrelite IMX.6 board running on QEMU with commands savevm/loadvm.
It seems that I am able to take a snapshot but loading the snapshot fails.
For comparison I checked out snapshots on 32bit ARM Virt with Debian as well as on the Versatilepb board with a bare metal application and it works fine.
The problem occurs only with that one particular board.
My environment is:
Ubuntu 18.04
QEMU 3.0.1 (I see the same issue in QEMU 4.0.0 as well)
The kernel and device tree used for the board was 5.1.14 version from kernel.org
The file system was build from imx_v6_v7_defconfig config in buildroot
as and sd card image.
Problem:
Loading snapshot stops the whole machine and it's impossible to resume
it.
Steps to reproduce problem:
1. I converted the sdcard.img built from the buildroot to qcow2
using command qemu-img convert -f raw -O qcow2 sdcard.img
sdcard.qcow2, since the raw doesn't support snapshots.
2. I start QEMU with a command
./arm-softmmu/qemu-system-arm -m 512 -M sabrelite -kernel zImage -append "rootfstype=ext4 root=/dev/mmcblk2p2 rw rootwait" -rtc base=localtime,clock=vm -dtb imx6dl-sabresd.dtb -drive file=sdcard.qcow2,index=2,format=qcow2,id=mycard -device sd-card,drive=mycard -nographic -net nic -net user
3. I run a simple program which print characters to the console
in the background and add some files in user directory, to differ from
original image.
4. I switch to QEMU monitor, and type “savevm <name>”.
When I type “info snapshots”, the snapshot is listed.
So I assume it was saved correctly.
5. Then I switch back to Linux console from monitor, remove the
added files and stop the background printing process.
6. I switch back to monitor and I'm trying now to load the
snapshot by “loadvm <name>” command.
That’s where the problem occurs. QEMU stops and I can't switch back from monitor to Linux.
Typing “cont” doesn’t help.
It seems like the simulation has freezed. CPU usage on my Laptop machine equals 100% until I exit QEMU.
What’s interesting when I exit the QEMU and then start it again the Linux boots and after it reaches the command prompt I can see the files which were removed after saving the snapshot.
It looks like loading the snapshots works for restoring disk space but
it fails for restoring the running processes.
Due to the answer on QEMU mailing list
(https://lists.nongnu.org/archive/html/qemu-
discuss/2019-08/msg00016.html) it is QEMUs bug.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1839807/+subscriptions
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug 1839807] Re: Snapshots freeze guest Sabrelite IMX.6 board
2019-08-12 6:51 [Qemu-devel] [Bug 1839807] [NEW] Snapshots freeze guest Sabrelite IMX.6 board Al Sn
` (3 preceding siblings ...)
2021-05-09 15:07 ` Thomas Huth
@ 2021-07-09 4:17 ` Launchpad Bug Tracker
2021-07-09 12:21 ` Peter Maydell
2021-07-09 13:33 ` Thomas Huth
6 siblings, 0 replies; 8+ messages in thread
From: Launchpad Bug Tracker @ 2021-07-09 4:17 UTC (permalink / raw)
To: qemu-devel
[Expired for QEMU because there has been no activity for 60 days.]
** Changed in: qemu
Status: Incomplete => Expired
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1839807
Title:
Snapshots freeze guest Sabrelite IMX.6 board
Status in QEMU:
Expired
Bug description:
Hello,
I'm trying to take and restore a snapshot with the whole system state of the Sabrelite IMX.6 board running on QEMU with commands savevm/loadvm.
It seems that I am able to take a snapshot but loading the snapshot fails.
For comparison I checked out snapshots on 32bit ARM Virt with Debian as well as on the Versatilepb board with a bare metal application and it works fine.
The problem occurs only with that one particular board.
My environment is:
Ubuntu 18.04
QEMU 3.0.1 (I see the same issue in QEMU 4.0.0 as well)
The kernel and device tree used for the board was 5.1.14 version from kernel.org
The file system was build from imx_v6_v7_defconfig config in buildroot
as and sd card image.
Problem:
Loading snapshot stops the whole machine and it's impossible to resume
it.
Steps to reproduce problem:
1. I converted the sdcard.img built from the buildroot to qcow2
using command qemu-img convert -f raw -O qcow2 sdcard.img
sdcard.qcow2, since the raw doesn't support snapshots.
2. I start QEMU with a command
./arm-softmmu/qemu-system-arm -m 512 -M sabrelite -kernel zImage -append "rootfstype=ext4 root=/dev/mmcblk2p2 rw rootwait" -rtc base=localtime,clock=vm -dtb imx6dl-sabresd.dtb -drive file=sdcard.qcow2,index=2,format=qcow2,id=mycard -device sd-card,drive=mycard -nographic -net nic -net user
3. I run a simple program which print characters to the console
in the background and add some files in user directory, to differ from
original image.
4. I switch to QEMU monitor, and type “savevm <name>”.
When I type “info snapshots”, the snapshot is listed.
So I assume it was saved correctly.
5. Then I switch back to Linux console from monitor, remove the
added files and stop the background printing process.
6. I switch back to monitor and I'm trying now to load the
snapshot by “loadvm <name>” command.
That’s where the problem occurs. QEMU stops and I can't switch back from monitor to Linux.
Typing “cont” doesn’t help.
It seems like the simulation has freezed. CPU usage on my Laptop machine equals 100% until I exit QEMU.
What’s interesting when I exit the QEMU and then start it again the Linux boots and after it reaches the command prompt I can see the files which were removed after saving the snapshot.
It looks like loading the snapshots works for restoring disk space but
it fails for restoring the running processes.
Due to the answer on QEMU mailing list
(https://lists.nongnu.org/archive/html/qemu-
discuss/2019-08/msg00016.html) it is QEMUs bug.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1839807/+subscriptions
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug 1839807] Re: Snapshots freeze guest Sabrelite IMX.6 board
2019-08-12 6:51 [Qemu-devel] [Bug 1839807] [NEW] Snapshots freeze guest Sabrelite IMX.6 board Al Sn
` (4 preceding siblings ...)
2021-07-09 4:17 ` Launchpad Bug Tracker
@ 2021-07-09 12:21 ` Peter Maydell
2021-07-09 13:33 ` Thomas Huth
6 siblings, 0 replies; 8+ messages in thread
From: Peter Maydell @ 2021-07-09 12:21 UTC (permalink / raw)
To: qemu-devel
Save/restore with TrustZone enabled is stil broken.
** Changed in: qemu
Status: Expired => New
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1839807
Title:
Snapshots freeze guest Sabrelite IMX.6 board
Status in QEMU:
New
Bug description:
Hello,
I'm trying to take and restore a snapshot with the whole system state of the Sabrelite IMX.6 board running on QEMU with commands savevm/loadvm.
It seems that I am able to take a snapshot but loading the snapshot fails.
For comparison I checked out snapshots on 32bit ARM Virt with Debian as well as on the Versatilepb board with a bare metal application and it works fine.
The problem occurs only with that one particular board.
My environment is:
Ubuntu 18.04
QEMU 3.0.1 (I see the same issue in QEMU 4.0.0 as well)
The kernel and device tree used for the board was 5.1.14 version from kernel.org
The file system was build from imx_v6_v7_defconfig config in buildroot
as and sd card image.
Problem:
Loading snapshot stops the whole machine and it's impossible to resume
it.
Steps to reproduce problem:
1. I converted the sdcard.img built from the buildroot to qcow2
using command qemu-img convert -f raw -O qcow2 sdcard.img
sdcard.qcow2, since the raw doesn't support snapshots.
2. I start QEMU with a command
./arm-softmmu/qemu-system-arm -m 512 -M sabrelite -kernel zImage -append "rootfstype=ext4 root=/dev/mmcblk2p2 rw rootwait" -rtc base=localtime,clock=vm -dtb imx6dl-sabresd.dtb -drive file=sdcard.qcow2,index=2,format=qcow2,id=mycard -device sd-card,drive=mycard -nographic -net nic -net user
3. I run a simple program which print characters to the console
in the background and add some files in user directory, to differ from
original image.
4. I switch to QEMU monitor, and type “savevm <name>”.
When I type “info snapshots”, the snapshot is listed.
So I assume it was saved correctly.
5. Then I switch back to Linux console from monitor, remove the
added files and stop the background printing process.
6. I switch back to monitor and I'm trying now to load the
snapshot by “loadvm <name>” command.
That’s where the problem occurs. QEMU stops and I can't switch back from monitor to Linux.
Typing “cont” doesn’t help.
It seems like the simulation has freezed. CPU usage on my Laptop machine equals 100% until I exit QEMU.
What’s interesting when I exit the QEMU and then start it again the Linux boots and after it reaches the command prompt I can see the files which were removed after saving the snapshot.
It looks like loading the snapshots works for restoring disk space but
it fails for restoring the running processes.
Due to the answer on QEMU mailing list
(https://lists.nongnu.org/archive/html/qemu-
discuss/2019-08/msg00016.html) it is QEMUs bug.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1839807/+subscriptions
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug 1839807] Re: Snapshots freeze guest Sabrelite IMX.6 board
2019-08-12 6:51 [Qemu-devel] [Bug 1839807] [NEW] Snapshots freeze guest Sabrelite IMX.6 board Al Sn
` (5 preceding siblings ...)
2021-07-09 12:21 ` Peter Maydell
@ 2021-07-09 13:33 ` Thomas Huth
6 siblings, 0 replies; 8+ messages in thread
From: Thomas Huth @ 2021-07-09 13:33 UTC (permalink / raw)
To: qemu-devel
This is an automated cleanup. This bug report has been moved to QEMU's
new bug tracker on gitlab.com and thus gets marked as 'expired' now.
Please continue with the discussion here:
https://gitlab.com/qemu-project/qemu/-/issues/467
** Changed in: qemu
Status: New => Expired
** Bug watch added: gitlab.com/qemu-project/qemu/-/issues #467
https://gitlab.com/qemu-project/qemu/-/issues/467
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1839807
Title:
Snapshots freeze guest Sabrelite IMX.6 board
Status in QEMU:
Expired
Bug description:
Hello,
I'm trying to take and restore a snapshot with the whole system state of the Sabrelite IMX.6 board running on QEMU with commands savevm/loadvm.
It seems that I am able to take a snapshot but loading the snapshot fails.
For comparison I checked out snapshots on 32bit ARM Virt with Debian as well as on the Versatilepb board with a bare metal application and it works fine.
The problem occurs only with that one particular board.
My environment is:
Ubuntu 18.04
QEMU 3.0.1 (I see the same issue in QEMU 4.0.0 as well)
The kernel and device tree used for the board was 5.1.14 version from kernel.org
The file system was build from imx_v6_v7_defconfig config in buildroot
as and sd card image.
Problem:
Loading snapshot stops the whole machine and it's impossible to resume
it.
Steps to reproduce problem:
1. I converted the sdcard.img built from the buildroot to qcow2
using command qemu-img convert -f raw -O qcow2 sdcard.img
sdcard.qcow2, since the raw doesn't support snapshots.
2. I start QEMU with a command
./arm-softmmu/qemu-system-arm -m 512 -M sabrelite -kernel zImage -append "rootfstype=ext4 root=/dev/mmcblk2p2 rw rootwait" -rtc base=localtime,clock=vm -dtb imx6dl-sabresd.dtb -drive file=sdcard.qcow2,index=2,format=qcow2,id=mycard -device sd-card,drive=mycard -nographic -net nic -net user
3. I run a simple program which print characters to the console
in the background and add some files in user directory, to differ from
original image.
4. I switch to QEMU monitor, and type “savevm <name>”.
When I type “info snapshots”, the snapshot is listed.
So I assume it was saved correctly.
5. Then I switch back to Linux console from monitor, remove the
added files and stop the background printing process.
6. I switch back to monitor and I'm trying now to load the
snapshot by “loadvm <name>” command.
That’s where the problem occurs. QEMU stops and I can't switch back from monitor to Linux.
Typing “cont” doesn’t help.
It seems like the simulation has freezed. CPU usage on my Laptop machine equals 100% until I exit QEMU.
What’s interesting when I exit the QEMU and then start it again the Linux boots and after it reaches the command prompt I can see the files which were removed after saving the snapshot.
It looks like loading the snapshots works for restoring disk space but
it fails for restoring the running processes.
Due to the answer on QEMU mailing list
(https://lists.nongnu.org/archive/html/qemu-
discuss/2019-08/msg00016.html) it is QEMUs bug.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1839807/+subscriptions
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-07-09 13:41 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-12 6:51 [Qemu-devel] [Bug 1839807] [NEW] Snapshots freeze guest Sabrelite IMX.6 board Al Sn
2019-08-12 17:08 ` [Qemu-devel] [Bug 1839807] " Peter Maydell
2019-08-13 6:55 ` Al Sn
2019-08-13 9:21 ` Peter Maydell
2021-05-09 15:07 ` Thomas Huth
2021-07-09 4:17 ` Launchpad Bug Tracker
2021-07-09 12:21 ` Peter Maydell
2021-07-09 13:33 ` Thomas Huth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).