From: Simon Horman Subject: Re: [PATCH] qemu-dm: pass-through: fix header type register emulation. Date: Tue, 6 Apr 2010 13:06:11 +1000 Message-ID: <20100406030611.GC30359@verge.net.au> References: <20100405075753.GB15776@valinux.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20100405075753.GB15776@valinux.co.jp> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Isaku Yamahata Cc: xen-devel@lists.xensource.com, Ian Jackson , Masaki Kanno , Dexuan Cui List-Id: xen-devel@lists.xenproject.org On Mon, Apr 05, 2010 at 04:57:53PM +0900, Isaku Yamahata wrote: > > This patch fixes the emulation of latency timer and header type. > The change set of cc1a204423475ff7a918b11d78b9ae637f320e23 > deleted the header type register emulation. > On the other hand, the change set of ec5e52d5cb2e6f8851c345b7c3095fe2030fff9c > tries to update header type emulation, however it wrongly > touches latency timer emulation part. > I think this was caused by mis-merging. This patch sorts it out. > > Cc: Dexuan Cui > Cc: Masaki Kanno > Cc: Simon Horman > Cc: Ian Jackson > Signed-off-by: Isaku Yamahata Acked-by: Simon Horman > --- > This is compile-tested only. > Please review/test it > --- > hw/pass-through.c | 14 +++++++++++++- > 1 files changed, 13 insertions(+), 1 deletions(-) > > diff --git a/hw/pass-through.c b/hw/pass-through.c > index fadd358..5a76e8d 100644 > --- a/hw/pass-through.c > +++ b/hw/pass-through.c > @@ -329,11 +329,23 @@ static struct pt_reg_info_tbl pt_emu_reg_header0_tbl[] = { > .init_val = 0x00, > .ro_mask = 0x00, > .emu_mask = 0xFF, > - .init = pt_header_type_reg_init, > + .init = pt_common_reg_init, > .u.b.read = pt_byte_reg_read, > .u.b.write = pt_byte_reg_write, > .u.b.restore = pt_byte_reg_restore, > }, > + /* Header Type reg */ > + { > + .offset = PCI_HEADER_TYPE, > + .size = 1, > + .init_val = 0x00, > + .ro_mask = 0xFF, > + .emu_mask = 0x00, > + .init = pt_header_type_reg_init, > + .u.b.read = pt_byte_reg_read, > + .u.b.write = pt_byte_reg_write, > + .u.b.restore = NULL, > + }, > /* Interrupt Line reg */ > { > .offset = PCI_INTERRUPT_LINE, > -- > 1.6.6.1 > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel