From patchwork Wed Feb 3 21:29:43 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 76818 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o13LUFCJ014762 for ; Wed, 3 Feb 2010 21:30:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932592Ab0BCVaN (ORCPT ); Wed, 3 Feb 2010 16:30:13 -0500 Received: from goliath.siemens.de ([192.35.17.28]:21965 "EHLO goliath.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932468Ab0BCVaK (ORCPT ); Wed, 3 Feb 2010 16:30:10 -0500 Received: from mail2.siemens.de (localhost [127.0.0.1]) by goliath.siemens.de (8.12.11.20060308/8.12.11) with ESMTP id o13LTkRS013381; Wed, 3 Feb 2010 22:29:46 +0100 Received: from localhost.localdomain ([139.25.173.3]) by mail2.siemens.de (8.12.11.20060308/8.12.11) with ESMTP id o13LTjGu031176; Wed, 3 Feb 2010 22:29:46 +0100 From: Jan Kiszka To: Anthony Liguori Cc: qemu-devel@nongnu.org, Avi Kivity , Marcelo Tosatti , kvm@vger.kernel.org Subject: [PATCH 2/4] KVM: Make vmport KVM-compatible Date: Wed, 3 Feb 2010 22:29:43 +0100 Message-Id: X-Mailer: git-send-email 1.6.0.2 In-Reply-To: References: In-Reply-To: References: Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 03 Feb 2010 21:30:15 +0000 (UTC) diff --git a/hw/vmport.c b/hw/vmport.c index 884af3f..6c9d7c9 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,8 @@ 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;