From patchwork Wed Feb 3 23:55:49 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Tosatti X-Patchwork-Id: 76861 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 o13NvSgx014124 for ; Wed, 3 Feb 2010 23:57:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757940Ab0BCX50 (ORCPT ); Wed, 3 Feb 2010 18:57:26 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41014 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757740Ab0BCX5Z (ORCPT ); Wed, 3 Feb 2010 18:57:25 -0500 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o13NvLv3005199 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 3 Feb 2010 18:57:21 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o13NvKeW003306; Wed, 3 Feb 2010 18:57:21 -0500 Received: from amt.cnet (vpn-9-161.rdu.redhat.com [10.11.9.161]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o13NvJ4r026852; Wed, 3 Feb 2010 18:57:19 -0500 Received: from amt.cnet (amt.cnet [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id 2B23968A8F1; Wed, 3 Feb 2010 21:56:30 -0200 (BRST) Received: (from marcelo@localhost) by amt.cnet (8.14.3/8.14.3/Submit) id o13NuRuo013149; Wed, 3 Feb 2010 21:56:27 -0200 From: Marcelo Tosatti To: Anthony Liguori Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org, Jan Kiszka Subject: [PATCH 4/6] KVM: Make vmport KVM-compatible Date: Wed, 3 Feb 2010 21:55:49 -0200 Message-Id: <03c63b945239dc4abcf3a687beda6eb3b0cd69bc.1265241351.git.mtosatti@redhat.com> In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 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 23:57:28 +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;