From: "Michael S. Tsirkin" Subject: Re: [PATCHv4 01/13] qemu: make default_write_config use mask table Date: Wed, 17 Jun 2009 14:49:42 +0300 Message-ID: <20090617114942.GB30859@redhat.com> References: <20090610122804.GB27174@redhat.com> <4A38032D.5060506@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Paul Brook , Avi Kivity , qemu-devel@nongnu.org, Carsten Otte , kvm@vger.kernel.org, Rusty Russell , virtualization@lists.linux-foundation.org, Christian Borntraeger , Blue Swirl , Anthony Liguori , Glauber Costa To: Anthony Liguori Return-path: Received: from mx2.redhat.com ([66.187.237.31]:42464 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932738AbZFQLww (ORCPT ); Wed, 17 Jun 2009 07:52:52 -0400 Content-Disposition: inline In-Reply-To: <4A38032D.5060506@us.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Jun 16, 2009 at 03:40:13PM -0500, Anthony Liguori wrote: > Michael S. Tsirkin wrote: >> Change much of hw/pci to use symbolic constants and a table-driven >> design: add a mask table with writable bits set and readonly bits unset. >> Detect change by comparing original and new registers. >> >> This makes it easy to support capabilities where read-only/writeable >> bit layout differs between devices, depending on capabilities present. >> >> As a result, writing a single byte in BAR registers now works as >> it should. Writing to upper limit registers in the bridge >> also works as it should. Code is also shorter. >> >> Signed-off-by: Michael S. Tsirkin > This series introduces warning (virtio_load decl/def does not match). Seems to match and build cleanly with -Werror for me. What warning do you see?