From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NsB3b-00036q-N1 for qemu-devel@nongnu.org; Thu, 18 Mar 2010 04:26:19 -0400 Received: from [199.232.76.173] (port=34004 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NsB3b-00036K-2W for qemu-devel@nongnu.org; Thu, 18 Mar 2010 04:26:19 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NsB3X-00076r-Rs for qemu-devel@nongnu.org; Thu, 18 Mar 2010 04:26:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39300) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NsB3W-000768-Ub for qemu-devel@nongnu.org; Thu, 18 Mar 2010 04:26:15 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2I8QCkn001954 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 18 Mar 2010 04:26:12 -0400 From: Juan Quintela In-Reply-To: <20100318072529.GB16973@redhat.com> (Michael S. Tsirkin's message of "Thu, 18 Mar 2010 09:25:29 +0200") References: <20100318072529.GB16973@redhat.com> Date: Thu, 18 Mar 2010 09:26:10 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: [PATCH 6/9] virtio-pci: Remove duplicate test List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org "Michael S. Tsirkin" wrote: > On Tue, Mar 16, 2010 at 07:51:22PM +0100, Juan Quintela wrote: >> We already do the test for msix on the caller, just use that test >> >> Signed-off-by: Juan Quintela > > NAK > > I think we are better off not making assumptions > about caller behaviour in msix.c, virtio > will not be the only user forever. That makes migration testing more difficult. Basically we are testing if we are using msix in two places. Obvious thing is: - we don't test in msix_save() if msix is used. - we don't test it in virtio_pci_save_config() I don't care if it is one way or another, but requiring to check it in the caller and the callee is a bit too much for me. Later, Juan.