From: Qing He Subject: Re: Re: Possible regression in "passthough: add no_wb option for pci conf write" Date: Mon, 7 Dec 2009 13:57:28 +0800 Message-ID: <20091207055728.GA29638@ub-qhe2> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20091207054622.GA14266@verge.net.au> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Simon Horman Cc: "xen-devel@lists.xensource.com" , Ian Jackson List-Id: xen-devel@lists.xenproject.org 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? --- 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)