Received: from eggs.gnu.org ([208.118.235.92]:45636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4XJ0-00033M-04 for qemu-devel@nongnu.org; Thu, 23 Aug 2012 09:18:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T4XIy-0006nL-Vh for qemu-devel@nongnu.org; Thu, 23 Aug 2012 09:18:37 -0400 Received: from smtp.ctxuk.citrix.com ([62.200.22.115]:60985 helo=SMTP.EU.CITRIX.COM) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4XIy-0006me-PU for qemu-devel@nongnu.org; Thu, 23 Aug 2012 09:18:36 -0400 Message-ID: <1345727912.12501.83.camel@zakaz.uk.xensource.com> From: Ian Campbell Date: Thu, 23 Aug 2012 14:18:32 +0100 In-Reply-To: <96d6442c911f6ed7f6cb24670901b151fa1570d6.1345552068.git.julien.grall@citrix.com> References: <96d6442c911f6ed7f6cb24670901b151fa1570d6.1345552068.git.julien.grall@citrix.com> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Xen-devel] [XEN][RFC PATCH V2 01/17] hvm: Modify interface to support multiple ioreq server List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Julien Grall Cc: "christian.limpach@gmail.com" , "xen-devel@lists.xen.org" , "qemu-devel@nongnu.org" , Stefano Stabellini > diff --git a/xen/include/asm-x86/hvm/domain.h b/xen/include/asm-x86/hvm/domain.h > index 27b3de5..49d1ca0 100644 > --- a/xen/include/asm-x86/hvm/domain.h > +++ b/xen/include/asm-x86/hvm/domain.h [...] > struct hvm_domain { > + /* Use for the IO handles by Xen */ > struct hvm_ioreq_page ioreq; > - struct hvm_ioreq_page buf_ioreq; > + struct hvm_ioreq_server *ioreq_server_list; > + uint32_t nr_ioreq_server; > + spinlock_t ioreq_server_lock; There's some whitespace weirdness here plus some in xen/include/asm-x86/hvm/vcpu.h and xen/include/public/hvm/hvm_op.h. > diff --git a/xen/include/public/hvm/ioreq.h b/xen/include/public/hvm/ioreq.h > index 4022a1d..87aacd3 100644 > --- a/xen/include/public/hvm/ioreq.h > +++ b/xen/include/public/hvm/ioreq.h > @@ -34,6 +34,7 @@ > > #define IOREQ_TYPE_PIO 0 /* pio */ > #define IOREQ_TYPE_COPY 1 /* mmio ops */ > +#define IOREQ_TYPE_PCI_CONFIG 2 /* pci config space ops */ > #define IOREQ_TYPE_TIMEOFFSET 7 > #define IOREQ_TYPE_INVALIDATE 8 /* mapcache */ I wonder why we skip 2-6 now -- perhaps they used to be something else and we are avoiding them to avoid strange errors? In which case adding the new on as 9 might be a good idea. Ian.