From: Simon Horman Subject: Re: Re: Possible regression in "passthough: add no_wb option for pci conf write" Date: Mon, 7 Dec 2009 23:22:08 +1100 Message-ID: <20091207122208.GG31729@verge.net.au> References: <20091206055500.GA16332@verge.net.au> <20091207021640.GD20810@ub-qhe2> <20091207025511.GD13775@verge.net.au> <20091207025750.GE20810@ub-qhe2> <20091207034307.GA419@verge.net.au> <20091207052928.GF20810@ub-qhe2> <20091207054622.GA14266@verge.net.au> <20091207055728.GA29638@ub-qhe2> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20091207055728.GA29638@ub-qhe2> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Qing He Cc: "xen-devel@lists.xensource.com" , Ian Jackson List-Id: xen-devel@lists.xenproject.org On Mon, Dec 07, 2009 at 01:57:28PM +0800, Qing He wrote: > On Mon, 2009-12-07 at 13:46 +0800, Simon Horman wrote: > > > So you are obseversing that ioemu window > > > disappear at boot time? > > > > I'm not sure what you mean by "ioemu window". > > > Never mind, I meant vnc or sdl console of ioemu. > > Can you try if the following patch fixes the problem? Thanks, that seems to resolve the problem that I observed. > --- > diff --git a/hw/pass-through.c b/hw/pass-through.c > index b125d72..f28f6c7 100644 > --- a/hw/pass-through.c > +++ b/hw/pass-through.c > @@ -1556,7 +1556,7 @@ static void pt_pci_write_config(PCIDevice *d, uint32_t address, uint32_t val, > val >>= ((address & 3) << 3); > > out: > - if (!reg->no_wb) { > + if (!(reg && reg->no_wb)) { /* unknown regs are passed through */ > ret = pci_write_block(pci_dev, address, (uint8_t *)&val, len); > > if (!ret) > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel