From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rusty Russell Subject: Re: [PATCH 12/22] virtio_pci: allow duplicate capabilities. Date: Fri, 22 Mar 2013 11:27:59 +1030 Message-ID: <8738vofdyg.fsf@rustcorp.com.au> References: <514B26BC.6010700@zytor.com> <20130321155810.GA1925@redhat.com> <514B2FA0.9000204@zytor.com> <20130321161143.GC1925@redhat.com> <514B3213.8070002@zytor.com> <20130321162636.GF1925@redhat.com> <514B3606.2090503@zytor.com> <20130321170706.GB2994@redhat.com> <514B3EAE.8000707@zytor.com> <20130321171319.GD2994@redhat.com> <20130321174912.GA4161@redhat.com> <514B4957.1070003@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <514B4957.1070003@zytor.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: "H. Peter Anvin" , "Michael S. Tsirkin" Cc: virtualization@lists.linux-foundation.org List-Id: virtualization@lists.linuxfoundation.org "H. Peter Anvin" writes: > On 03/21/2013 10:49 AM, Michael S. Tsirkin wrote: >> >> Just to clarify, I expect BIOS to use it *for config access*. >> Notification will support IO anyway because it's >> faster on KVM, so BIOS can use it directly. >> > > Ah, yes, of course. > > Quite frankly, I don't see any reason to support *anything else* for > configuration, does anyone else? > > I thought we were talking about the doorbell/notification/kicker > register. For I/O space especially it is highly desirable if that can > be in a minimal BAR (4 bytes). The takeaway from this seems to be that: 1) For the notification, device can supply both. 2) Since only device will know which is faster, driver should use the first one it finds which it supports. My patch implied that the ISR, device config and notification could be either. I think only the notification makes sense, as noted here. Have I got this right? Rusty.