From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: colin.xu@intel.com, yu.ning@intel.com
Cc: qemu-devel@nongnu.org, Bug 1855617 <1855617@bugs.launchpad.net>
Subject: Re: [Bug 1855617] [NEW] savevm with hax saves wrong register state
Date: Mon, 9 Dec 2019 10:17:11 +0000 [thread overview]
Message-ID: <20191209101711.GA3404@work-vm> (raw)
In-Reply-To: <157583794032.6937.10802857034135783842.malonedeb@soybean.canonical.com>
cc'ing Colin and Yu for Hax info:
* Alex (1855617@bugs.launchpad.net) wrote:
> Public bug reported:
>
> I use qemu-i386 with IntelHaxm on Windows 10 x64 host with Windows 7 x86 guest. I run the guest till OS loads and create a snapshot with savevm, then close qemu, run it again and try to load the snapshot with loadvm. The guest crashes or freezes. I dumped registers on snapshot creation and loading (in Haxm) and found that they are different.
> When returning from Haxm in hax_vcpu_hax_exec, there is no regular register read. I found hax_arch_get_registers function which reads registers from Haxm and is called from a synchronization procedure. I placed a breakpoint on it, ran qemu and found that it is hit one time during guest OS boot. Exactly these registers where saved in the snapshot.
>
> ** Affects: qemu
> Importance: Undecided
> Status: 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/1855617
>
> Title:
> savevm with hax saves wrong register state
>
> Status in QEMU:
> New
>
> Bug description:
> I use qemu-i386 with IntelHaxm on Windows 10 x64 host with Windows 7 x86 guest. I run the guest till OS loads and create a snapshot with savevm, then close qemu, run it again and try to load the snapshot with loadvm. The guest crashes or freezes. I dumped registers on snapshot creation and loading (in Haxm) and found that they are different.
> When returning from Haxm in hax_vcpu_hax_exec, there is no regular register read. I found hax_arch_get_registers function which reads registers from Haxm and is called from a synchronization procedure. I placed a breakpoint on it, ran qemu and found that it is hit one time during guest OS boot. Exactly these registers where saved in the snapshot.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/qemu/+bug/1855617/+subscriptions
>
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
WARNING: multiple messages have this Message-ID (diff)
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: qemu-devel@nongnu.org
Subject: Re: [Bug 1855617] [NEW] savevm with hax saves wrong register state
Date: Mon, 09 Dec 2019 10:17:11 -0000 [thread overview]
Message-ID: <20191209101711.GA3404@work-vm> (raw)
Message-ID: <20191209101711.QxepZaIUuz9mS6nnkdCaicIwTKn3E8t6x7BQISKZJQQ@z> (raw)
In-Reply-To: 157583794032.6937.10802857034135783842.malonedeb@soybean.canonical.com
cc'ing Colin and Yu for Hax info:
* Alex (1855617@bugs.launchpad.net) wrote:
> Public bug reported:
>
> I use qemu-i386 with IntelHaxm on Windows 10 x64 host with Windows 7 x86 guest. I run the guest till OS loads and create a snapshot with savevm, then close qemu, run it again and try to load the snapshot with loadvm. The guest crashes or freezes. I dumped registers on snapshot creation and loading (in Haxm) and found that they are different.
> When returning from Haxm in hax_vcpu_hax_exec, there is no regular register read. I found hax_arch_get_registers function which reads registers from Haxm and is called from a synchronization procedure. I placed a breakpoint on it, ran qemu and found that it is hit one time during guest OS boot. Exactly these registers where saved in the snapshot.
>
> ** Affects: qemu
> Importance: Undecided
> Status: 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/1855617
>
> Title:
> savevm with hax saves wrong register state
>
> Status in QEMU:
> New
>
> Bug description:
> I use qemu-i386 with IntelHaxm on Windows 10 x64 host with Windows 7 x86 guest. I run the guest till OS loads and create a snapshot with savevm, then close qemu, run it again and try to load the snapshot with loadvm. The guest crashes or freezes. I dumped registers on snapshot creation and loading (in Haxm) and found that they are different.
> When returning from Haxm in hax_vcpu_hax_exec, there is no regular register read. I found hax_arch_get_registers function which reads registers from Haxm and is called from a synchronization procedure. I placed a breakpoint on it, ran qemu and found that it is hit one time during guest OS boot. Exactly these registers where saved in the snapshot.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/qemu/+bug/1855617/+subscriptions
>
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1855617
Title:
savevm with hax saves wrong register state
Status in QEMU:
New
Bug description:
I use qemu-i386 with IntelHaxm on Windows 10 x64 host with Windows 7 x86 guest. I run the guest till OS loads and create a snapshot with savevm, then close qemu, run it again and try to load the snapshot with loadvm. The guest crashes or freezes. I dumped registers on snapshot creation and loading (in Haxm) and found that they are different.
When returning from Haxm in hax_vcpu_hax_exec, there is no regular register read. I found hax_arch_get_registers function which reads registers from Haxm and is called from a synchronization procedure. I placed a breakpoint on it, ran qemu and found that it is hit one time during guest OS boot. Exactly these registers where saved in the snapshot.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1855617/+subscriptions
next prev parent reply other threads:[~2019-12-09 10:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-08 20:45 [Bug 1855617] [NEW] savevm with hax saves wrong register state Alex
2019-12-09 10:17 ` Dr. David Alan Gilbert [this message]
2019-12-09 10:17 ` Dr. David Alan Gilbert
2021-04-22 9:05 ` [Bug 1855617] " Thomas Huth
2021-04-24 17:53 ` Alex
2021-05-06 8:19 ` Thomas Huth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191209101711.GA3404@work-vm \
--to=dgilbert@redhat.com \
--cc=1855617@bugs.launchpad.net \
--cc=colin.xu@intel.com \
--cc=qemu-devel@nongnu.org \
--cc=yu.ning@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).