gem5-users@gem5.org

The gem5 Users mailing list

View all threads

ARM KVM Switch + Restoration

AA
AbdelQader AlKilany
Tue, Aug 1, 2023 6:21 PM

Hello gem5 users,

I was wondering if it is possible to start a FS ARM simulation using KVM, switch to another CPU type such as Atomic, then restore the CPU type(Atomic), and maybe even switch again to O3.

I have tried to do this using the standard library but I have encountered some errors such as:

build/ALL/sim/serialize.hh:379: fatal: fatal condition !paramInImpl(cp, name, param) occurred: Can't unserialize 'board.processor.start.core:_pid'

I am using:
platform VExpress_Gem5_V1 (since it's the only one I found to work with KVM)
release ArmRelease.for_kvm()

I used this for both the checkpointing and restoring simulations (I found the release worked for non KVM CPUs when not restoring).

Thank you for any help!
Abdal

Hello gem5 users, I was wondering if it is possible to start a FS ARM simulation using KVM, switch to another CPU type such as Atomic, then restore the CPU type(Atomic), and maybe even switch again to O3. I have tried to do this using the standard library but I have encountered some errors such as: build/ALL/sim/serialize.hh:379: fatal: fatal condition !paramInImpl(cp, name, param) occurred: Can't unserialize 'board.processor.start.core:_pid' I am using: platform VExpress_Gem5_V1 (since it's the only one I found to work with KVM) release ArmRelease.for_kvm() I used this for both the checkpointing and restoring simulations (I found the release worked for non KVM CPUs when not restoring). Thank you for any help! Abdal
JL
Jason Lowe-Power
Tue, Aug 1, 2023 6:35 PM

This should work... can you provide an example script and specific commands
to reproduce the error?

Thanks,
Jason

On Tue, Aug 1, 2023 at 11:24 AM AbdelQader AlKilany via gem5-users <
gem5-users@gem5.org> wrote:

Hello gem5 users,

I was wondering if it is possible to start a FS ARM simulation using KVM,
switch to another CPU type such as Atomic, then restore the CPU
type(Atomic), and maybe even switch again to O3.

I have tried to do this using the standard library but I have encountered
some errors such as:

build/ALL/sim/serialize.hh:379: fatal: fatal condition !paramInImpl(cp,
name, param) occurred: Can't unserialize 'board.processor.start.core:_pid'

I am using:

platform VExpress_Gem5_V1 (since it’s the only one I found to work with
KVM)

release ArmRelease.for_kvm()

I used this for both the checkpointing and restoring simulations (I found
the release worked for non KVM CPUs when not restoring).

Thank you for any help!

Abdal


gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-leave@gem5.org

This should work... can you provide an example script and specific commands to reproduce the error? Thanks, Jason On Tue, Aug 1, 2023 at 11:24 AM AbdelQader AlKilany via gem5-users < gem5-users@gem5.org> wrote: > Hello gem5 users, > > > > I was wondering if it is possible to start a FS ARM simulation using KVM, > switch to another CPU type such as Atomic, then restore the CPU > type(Atomic), and maybe even switch again to O3. > > > > I have tried to do this using the standard library but I have encountered > some errors such as: > > > > build/ALL/sim/serialize.hh:379: fatal: fatal condition !paramInImpl(cp, > name, param) occurred: Can't unserialize 'board.processor.start.core:_pid' > > > > > > I am using: > > platform VExpress_Gem5_V1 (since it’s the only one I found to work with > KVM) > > release ArmRelease.for_kvm() > > > > I used this for both the checkpointing and restoring simulations (I found > the release worked for non KVM CPUs when not restoring). > > Thank you for any help! > > Abdal > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-leave@gem5.org >
AA
AbdelQader AlKilany
Tue, Aug 1, 2023 7:06 PM

Hello Jason,

I have attached the files of the checkpoint/restoring.

Thank you for your help.
Abdal

From: Jason Lowe-Power jason@lowepower.com
Sent: Tuesday, August 1, 2023 7:35 PM
To: The gem5 Users mailing list gem5-users@gem5.org
Cc: AbdelQader AlKilany abdelqader.alkilany@huawei.com
Subject: Re: [gem5-users] ARM KVM Switch + Restoration

This should work... can you provide an example script and specific commands to reproduce the error?

Thanks,
Jason

On Tue, Aug 1, 2023 at 11:24 AM AbdelQader AlKilany via gem5-users <gem5-users@gem5.orgmailto:gem5-users@gem5.org> wrote:
Hello gem5 users,

I was wondering if it is possible to start a FS ARM simulation using KVM, switch to another CPU type such as Atomic, then restore the CPU type(Atomic), and maybe even switch again to O3.

I have tried to do this using the standard library but I have encountered some errors such as:

build/ALL/sim/serialize.hh:379: fatal: fatal condition !paramInImpl(cp, name, param) occurred: Can't unserialize 'board.processor.start.core:_pid'

I am using:
platform VExpress_Gem5_V1 (since it’s the only one I found to work with KVM)
release ArmRelease.for_kvm()

I used this for both the checkpointing and restoring simulations (I found the release worked for non KVM CPUs when not restoring).

Thank you for any help!
Abdal


gem5-users mailing list -- gem5-users@gem5.orgmailto:gem5-users@gem5.org
To unsubscribe send an email to gem5-users-leave@gem5.orgmailto:gem5-users-leave@gem5.org

Hello Jason, I have attached the files of the checkpoint/restoring. Thank you for your help. Abdal From: Jason Lowe-Power <jason@lowepower.com> Sent: Tuesday, August 1, 2023 7:35 PM To: The gem5 Users mailing list <gem5-users@gem5.org> Cc: AbdelQader AlKilany <abdelqader.alkilany@huawei.com> Subject: Re: [gem5-users] ARM KVM Switch + Restoration This should work... can you provide an example script and specific commands to reproduce the error? Thanks, Jason On Tue, Aug 1, 2023 at 11:24 AM AbdelQader AlKilany via gem5-users <gem5-users@gem5.org<mailto:gem5-users@gem5.org>> wrote: Hello gem5 users, I was wondering if it is possible to start a FS ARM simulation using KVM, switch to another CPU type such as Atomic, then restore the CPU type(Atomic), and maybe even switch again to O3. I have tried to do this using the standard library but I have encountered some errors such as: build/ALL/sim/serialize.hh:379: fatal: fatal condition !paramInImpl(cp, name, param) occurred: Can't unserialize 'board.processor.start.core:_pid' I am using: platform VExpress_Gem5_V1 (since it’s the only one I found to work with KVM) release ArmRelease.for_kvm() I used this for both the checkpointing and restoring simulations (I found the release worked for non KVM CPUs when not restoring). Thank you for any help! Abdal _______________________________________________ gem5-users mailing list -- gem5-users@gem5.org<mailto:gem5-users@gem5.org> To unsubscribe send an email to gem5-users-leave@gem5.org<mailto:gem5-users-leave@gem5.org>