From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: Re: [PATCH 11/21] ioport: insert event_tap_ioport() to ioport_write(). Date: Sun, 28 Nov 2010 11:40:57 +0200 Message-ID: <20101128094057.GD3342@redhat.com> References: <1290665220-26478-1-git-send-email-tamura.yoshiaki@lab.ntt.co.jp> <1290665220-26478-12-git-send-email-tamura.yoshiaki@lab.ntt.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org, qemu-devel@nongnu.org, avi@redhat.com, anthony@codemonkey.ws, aliguori@us.ibm.com, mtosatti@redhat.com, dlaor@redhat.com, ananth@in.ibm.com, psuriset@linux.vnet.ibm.com, vatsa@linux.vnet.ibm.com, stefanha@linux.vnet.ibm.com, ohmura.kei@lab.ntt.co.jp To: Yoshiaki Tamura Return-path: Received: from mx1.redhat.com ([209.132.183.28]:59278 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752054Ab0K1Jlc (ORCPT ); Sun, 28 Nov 2010 04:41:32 -0500 Content-Disposition: inline In-Reply-To: <1290665220-26478-12-git-send-email-tamura.yoshiaki@lab.ntt.co.jp> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Nov 25, 2010 at 03:06:50PM +0900, Yoshiaki Tamura wrote: > Record ioport event to replay it upon failover. > > Signed-off-by: Yoshiaki Tamura Interesting. This will have to be extended to support ioeventfd. Since each eventfd is really just a binary trigger it should be enough to read out the fd state. > --- > 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 > > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html