From: Chris Wright Subject: Re: [PATCH 2/5] pci: MSI-X capability is 12 bytes, not 16, MSI is 10 bytes Date: Fri, 3 Dec 2010 11:54:25 -0800 Message-ID: <20101203195425.GF4511@x200.localdomain> References: <20101203192343.3579.73722.stgit@s20.home> <20101203193335.3579.25744.stgit@s20.home> <20101203193705.GE4511@x200.localdomain> <1291405707.2895.1.camel@x201> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Chris Wright , kvm@vger.kernel.org, ddutile@redhat.com, mst@redhat.com To: Alex Williamson Return-path: Received: from mx1.redhat.com ([209.132.183.28]:20419 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751202Ab0LCTy0 (ORCPT ); Fri, 3 Dec 2010 14:54:26 -0500 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 oB3JsQHR030458 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 3 Dec 2010 14:54:26 -0500 Content-Disposition: inline In-Reply-To: <1291405707.2895.1.camel@x201> Sender: kvm-owner@vger.kernel.org List-ID: * Alex Williamson (alex.williamson@redhat.com) wrote: > On Fri, 2010-12-03 at 11:37 -0800, Chris Wright wrote: > > * Alex Williamson (alex.williamson@redhat.com) wrote: > > > Signed-off-by: Alex Williamson > > > --- > > > > > > hw/pci.h | 4 ++-- > > > 1 files changed, 2 insertions(+), 2 deletions(-) > > > > > > diff --git a/hw/pci.h b/hw/pci.h > > > index 34955d8..7c52637 100644 > > > --- a/hw/pci.h > > > +++ b/hw/pci.h > > > @@ -124,8 +124,8 @@ enum { > > > > > > #define PCI_CAPABILITY_CONFIG_MAX_LENGTH 0x60 > > > #define PCI_CAPABILITY_CONFIG_DEFAULT_START_ADDR 0x40 > > > -#define PCI_CAPABILITY_CONFIG_MSI_LENGTH 0x10 > > > -#define PCI_CAPABILITY_CONFIG_MSIX_LENGTH 0x10 > > > +#define PCI_CAPABILITY_CONFIG_MSI_LENGTH 0xa > > > > This is variable length. > > Yes, but this particular #define is only used by device assignment, > which only uses the minimum sized table. Maybe as a follow-up patch we > should just remove these from pci.h and let device-assignment keep them > private. Thanks, Just thinking of keeping the ability to use DAC address. Esp for those 512 way guests ;)