From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH 2/3] KVM: Emulate MSI-X table in kernel Date: Tue, 22 Feb 2011 14:58:30 -0300 Message-ID: <20110222175830.GA6243@amt.cnet> References: <1296364276-2351-1-git-send-email-sheng@linux.intel.com> <1296364276-2351-3-git-send-email-sheng@linux.intel.com> <20110203010555.GA20541@amt.cnet> <201102181615.38479.sheng@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Avi Kivity , "Michael S. Tsirkin" , kvm@vger.kernel.org, Alex Williamson To: Sheng Yang Return-path: Received: from mx1.redhat.com ([209.132.183.28]:39524 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754547Ab1BVUGd (ORCPT ); Tue, 22 Feb 2011 15:06:33 -0500 Content-Disposition: inline In-Reply-To: <201102181615.38479.sheng@linux.intel.com> Sender: kvm-owner@vger.kernel.org List-ID: On Fri, Feb 18, 2011 at 04:15:38PM +0800, Sheng Yang wrote: > > Why allow this ioctl to succeed if there's an entry already present? > > This case is broken as mmio_dev->mmio_nr is increased below. > > Oh, It's a bug to let mmio_nr increase even with MMIO found. I've fixed it. > > The reason we allow multiply callings is userspace can register different types of > address here(table address and PBA address). Ah OK. > > PCI bits must be reviewed... > > Pardon? PCI related things are already in 2.6.38-rc. I meant someone more familiar with PCI should review this patch, Michael/Alex, CC'ed.