qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [HACK] make vmmouse work with KVM


From: Paolo Bonzini
Subject: [Qemu-devel] Re: [HACK] make vmmouse work with KVM
Date: Mon, 17 Aug 2009 19:16:49 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Lightning/1.0pre Thunderbird/3.0b3

On 08/17/2009 07:00 PM, Reimar Döffinger wrote:
On Mon, Aug 17, 2009 at 06:44:11PM +0200, Paolo Bonzini wrote:
On 08/17/2009 05:45 PM, Reimar Döffinger wrote:
+    cpu_synchronize_state(env, 0);
       env->regs[R_EAX] = vmport_ioport_read(opaque, addr);
+    cpu_synchronize_state(env, 1);

This is not needed because the sync is done in vmport_ioport_read, isn't it?

Well... The cpu_synchronize_state could be dropped you are right, but
here we write R_EAX so the cpu_synchronize_state(env, 1) is necessary.
It might be slightly cleaner to rename the vmport_ioport_read (any name
suggestions?) and add a wrapper for register_ioport_read that does the
cpu_synchronize_state (so it looks similar to vmport_ioport_write).

Yes, that would look best and wouldn't have fooled me. Could vmport_ioport_trigger be a decent name?

Paolo

Paolo




reply via email to

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