From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yoshiaki Tamura Subject: [PATCH 11/19] ioport: insert event_tap_ioport() to ioport_write(). Date: Wed, 19 Jan 2011 14:44:56 +0900 Message-ID: <1295415904-11918-12-git-send-email-tamura.yoshiaki@lab.ntt.co.jp> References: <1295415904-11918-1-git-send-email-tamura.yoshiaki@lab.ntt.co.jp> Cc: avi@redhat.com, anthony@codemonkey.ws, aliguori@us.ibm.com, mtosatti@redhat.com, dlaor@redhat.com, mst@redhat.com, kwolf@redhat.com, ananth@in.ibm.com, psuriset@linux.vnet.ibm.com, vatsa@linux.vnet.ibm.com, stefanha@linux.vnet.ibm.com, blauwirbel@gmail.com, ohmura.kei@lab.ntt.co.jp, Yoshiaki Tamura To: kvm@vger.kernel.org, qemu-devel@nongnu.org Return-path: Received: from sh.osrg.net ([192.16.179.4]:56347 "EHLO sh.osrg.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753431Ab1ASFqX (ORCPT ); Wed, 19 Jan 2011 00:46:23 -0500 In-Reply-To: <1295415904-11918-1-git-send-email-tamura.yoshiaki@lab.ntt.co.jp> Sender: kvm-owner@vger.kernel.org List-ID: Record ioport event to replay it upon failover. Signed-off-by: Yoshiaki Tamura --- ioport.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/ioport.c b/ioport.c index aa4188a..74aebf5 100644 --- a/ioport.c +++ b/ioport.c @@ -27,6 +27,7 @@ #include "ioport.h" #include "trace.h" +#include "event-tap.h" /***********************************************************/ /* IO Port */ @@ -76,6 +77,7 @@ static void ioport_write(int index, uint32_t address, uint32_t data) default_ioport_writel }; IOPortWriteFunc *func = ioport_write_table[index][address]; + event_tap_ioport(index, address, data); if (!func) func = default_func[index]; func(ioport_opaque[address], address, data); -- 1.7.1.2 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=57995 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfQs0-0001xm-Qt for qemu-devel@nongnu.org; Wed, 19 Jan 2011 00:46:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PfQrw-0003j4-FZ for qemu-devel@nongnu.org; Wed, 19 Jan 2011 00:46:12 -0500 Received: from sh.osrg.net ([192.16.179.4]:40992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PfQrv-0003gr-4j for qemu-devel@nongnu.org; Wed, 19 Jan 2011 00:46:08 -0500 From: Yoshiaki Tamura Date: Wed, 19 Jan 2011 14:44:56 +0900 Message-Id: <1295415904-11918-12-git-send-email-tamura.yoshiaki@lab.ntt.co.jp> In-Reply-To: <1295415904-11918-1-git-send-email-tamura.yoshiaki@lab.ntt.co.jp> References: <1295415904-11918-1-git-send-email-tamura.yoshiaki@lab.ntt.co.jp> Subject: [Qemu-devel] [PATCH 11/19] ioport: insert event_tap_ioport() to ioport_write(). List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kvm@vger.kernel.org, qemu-devel@nongnu.org Cc: kwolf@redhat.com, aliguori@us.ibm.com, mtosatti@redhat.com, ananth@in.ibm.com, mst@redhat.com, dlaor@redhat.com, vatsa@linux.vnet.ibm.com, Yoshiaki Tamura , blauwirbel@gmail.com, ohmura.kei@lab.ntt.co.jp, avi@redhat.com, psuriset@linux.vnet.ibm.com, stefanha@linux.vnet.ibm.com Record ioport event to replay it upon failover. Signed-off-by: Yoshiaki Tamura --- ioport.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/ioport.c b/ioport.c index aa4188a..74aebf5 100644 --- a/ioport.c +++ b/ioport.c @@ -27,6 +27,7 @@ #include "ioport.h" #include "trace.h" +#include "event-tap.h" /***********************************************************/ /* IO Port */ @@ -76,6 +77,7 @@ static void ioport_write(int index, uint32_t address, uint32_t data) default_ioport_writel }; IOPortWriteFunc *func = ioport_write_table[index][address]; + event_tap_ioport(index, address, data); if (!func) func = default_func[index]; func(ioport_opaque[address], address, data); -- 1.7.1.2