* Re: [Qemu-devel] [PATCH uq/master] Synchronize cpu state with kernel before poking into registers.
[not found] <20120216091251.GD19771@redhat.com>
@ 2012-02-16 12:55 ` Jan Kiszka
0 siblings, 0 replies; only message in thread
From: Jan Kiszka @ 2012-02-16 12:55 UTC (permalink / raw)
To: Gleb Natapov; +Cc: mtosatti, avi, kvm, qemu-devel
On 2012-02-16 10:12, Gleb Natapov wrote:
> Call to kvm_cpu_synchronize_state() is missing. kvm_arch_stop_on_emulation_error may
> look at outdated registers here.
>
> Signed-off-by: Gleb Natapov <gleb@redhat.com>
> diff --git a/target-i386/kvm.c b/target-i386/kvm.c
> index 7079e87..51d0ae7 100644
> --- a/target-i386/kvm.c
> +++ b/target-i386/kvm.c
> @@ -2020,6 +2020,7 @@ int kvm_arch_handle_exit(CPUState *env, struct kvm_run *run)
>
> bool kvm_arch_stop_on_emulation_error(CPUState *env)
> {
> + kvm_cpu_synchronize_state(env);
> return !(env->cr[0] & CR0_PE_MASK) ||
> ((env->segs[R_CS].selector & 3) != 3);
> }
Reviewed-by: Jan Kiszka <jan.kiszka@siemens.com>
--
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-02-16 12:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20120216091251.GD19771@redhat.com>
2012-02-16 12:55 ` [Qemu-devel] [PATCH uq/master] Synchronize cpu state with kernel before poking into registers Jan Kiszka
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).