qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [PATCH] Unlike real hardware, vmport needs access to th


From: Jan Kiszka
Subject: [Qemu-devel] Re: [PATCH] Unlike real hardware, vmport needs access to the CPU [...]
Date: Sat, 12 Sep 2009 16:46:04 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

=?UTF-8?q?Reimar=20D=C3=B6ffinger?= wrote:
> Signed-off-by: Reimar Döffinger <address@hidden>
> ---
>  hw/vmport.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/hw/vmport.c b/hw/vmport.c
> index 884af3f..9a942ee 100644
> --- a/hw/vmport.c
> +++ b/hw/vmport.c
> @@ -25,6 +25,7 @@
>  #include "isa.h"
>  #include "pc.h"
>  #include "sysemu.h"
> +#include "kvm.h"
>  
>  //#define VMPORT_DEBUG
>  
> @@ -58,6 +59,7 @@ static uint32_t vmport_ioport_read(void *opaque, uint32_t 
> addr)
>      unsigned char command;
>      uint32_t eax;
>  
> +    cpu_synchronize_state(env);
>      eax = env->regs[R_EAX];
>      if (eax != VMPORT_MAGIC)
>          return eax;

Ack (qemu-kvm carries a similar patch).

But please grant your patches some proper titles.

Jan

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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