Re: [Xen-devel] [PATCH v2 1/9] xen/vpci: introduce basic handlers to trap accesses to the PCI config space

2017-04-25 Thread Paul Durrant
> -Original Message- > From: Roger Pau Monne > Sent: 25 April 2017 09:27 > To: Paul Durrant > Cc: xen-de...@lists.xenproject.org; konrad.w...@oracle.com; > boris.ostrov...@oracle.com; Ian Jackson ; Wei Liu > ; Jan

Re: [Xen-devel] [PATCH v2 1/9] xen/vpci: introduce basic handlers to trap accesses to the PCI config space

2017-04-25 Thread Roger Pau Monne
On Mon, Apr 24, 2017 at 12:50:58PM +0100, Paul Durrant wrote: > > -Original Message- > > From: Roger Pau Monne > > Sent: 24 April 2017 12:03 > > To: Paul Durrant > > Cc: xen-de...@lists.xenproject.org; konrad.w...@oracle.com; > > boris.ostrov...@oracle.com; Ian

Re: [Xen-devel] [PATCH v2 1/9] xen/vpci: introduce basic handlers to trap accesses to the PCI config space

2017-04-24 Thread Paul Durrant
> -Original Message- > From: Roger Pau Monne > Sent: 24 April 2017 12:03 > To: Paul Durrant > Cc: xen-de...@lists.xenproject.org; konrad.w...@oracle.com; > boris.ostrov...@oracle.com; Ian Jackson ; Wei Liu > ; Jan

Re: [Xen-devel] [PATCH v2 1/9] xen/vpci: introduce basic handlers to trap accesses to the PCI config space

2017-04-24 Thread Roger Pau Monne
On Mon, Apr 24, 2017 at 11:19:10AM +0100, Paul Durrant wrote: > > -Original Message- > > From: Roger Pau Monne > > Sent: 24 April 2017 11:09 > > To: Paul Durrant > > Cc: xen-de...@lists.xenproject.org; konrad.w...@oracle.com; > > boris.ostrov...@oracle.com; Ian

Re: [Xen-devel] [PATCH v2 1/9] xen/vpci: introduce basic handlers to trap accesses to the PCI config space

2017-04-24 Thread Paul Durrant
> -Original Message- > From: Roger Pau Monne > Sent: 24 April 2017 11:09 > To: Paul Durrant > Cc: xen-de...@lists.xenproject.org; konrad.w...@oracle.com; > boris.ostrov...@oracle.com; Ian Jackson ; Wei Liu > ; Jan

Re: [Xen-devel] [PATCH v2 1/9] xen/vpci: introduce basic handlers to trap accesses to the PCI config space

2017-04-24 Thread Roger Pau Monne
On Mon, Apr 24, 2017 at 10:58:04AM +0100, Paul Durrant wrote: > > -Original Message- > > From: Roger Pau Monne > > Sent: 24 April 2017 10:42 > > To: Paul Durrant > > Cc: xen-de...@lists.xenproject.org; konrad.w...@oracle.com; > > boris.ostrov...@oracle.com; Ian

Re: [Xen-devel] [PATCH v2 1/9] xen/vpci: introduce basic handlers to trap accesses to the PCI config space

2017-04-24 Thread Paul Durrant
> -Original Message- > From: Roger Pau Monne > Sent: 24 April 2017 11:12 > To: Paul Durrant > Cc: xen-de...@lists.xenproject.org; konrad.w...@oracle.com; > boris.ostrov...@oracle.com; Ian Jackson ; Wei Liu > ; Jan

Re: [Xen-devel] [PATCH v2 1/9] xen/vpci: introduce basic handlers to trap accesses to the PCI config space

2017-04-24 Thread Roger Pau Monne
On Mon, Apr 24, 2017 at 10:34:15AM +0100, Paul Durrant wrote: > > -Original Message- > > From: Roger Pau Monne > > Sent: 24 April 2017 10:09 > > To: Paul Durrant > > Cc: xen-de...@lists.xenproject.org; konrad.w...@oracle.com; > > boris.ostrov...@oracle.com; Ian

Re: [Xen-devel] [PATCH v2 1/9] xen/vpci: introduce basic handlers to trap accesses to the PCI config space

2017-04-24 Thread Paul Durrant
> -Original Message- > From: Roger Pau Monne > Sent: 24 April 2017 10:42 > To: Paul Durrant > Cc: xen-de...@lists.xenproject.org; konrad.w...@oracle.com; > boris.ostrov...@oracle.com; Ian Jackson ; Wei Liu > ; Jan

Re: [Xen-devel] [PATCH v2 1/9] xen/vpci: introduce basic handlers to trap accesses to the PCI config space

2017-04-24 Thread Paul Durrant
> -Original Message- > From: Roger Pau Monne > Sent: 24 April 2017 10:42 > To: Paul Durrant > Cc: xen-de...@lists.xenproject.org; konrad.w...@oracle.com; > boris.ostrov...@oracle.com; Ian Jackson ; Wei Liu > ; Jan

Re: [Xen-devel] [PATCH v2 1/9] xen/vpci: introduce basic handlers to trap accesses to the PCI config space

2017-04-24 Thread Roger Pau Monne
On Fri, Apr 21, 2017 at 05:23:34PM +0100, Paul Durrant wrote: > > -Original Message- > > From: Roger Pau Monne [mailto:roger@citrix.com] [...] > > +int xen_vpci_read(unsigned int seg, unsigned int bus, unsigned int devfn, > > + unsigned int reg, uint32_t size, uint32_t

Re: [Xen-devel] [PATCH v2 1/9] xen/vpci: introduce basic handlers to trap accesses to the PCI config space

2017-04-24 Thread Paul Durrant
> -Original Message- > From: Roger Pau Monne > Sent: 24 April 2017 10:09 > To: Paul Durrant > Cc: xen-de...@lists.xenproject.org; konrad.w...@oracle.com; > boris.ostrov...@oracle.com; Ian Jackson ; Wei Liu > ; Jan

Re: [Xen-devel] [PATCH v2 1/9] xen/vpci: introduce basic handlers to trap accesses to the PCI config space

2017-04-24 Thread Roger Pau Monne
On Fri, Apr 21, 2017 at 05:07:43PM +0100, Paul Durrant wrote: > > -Original Message- > > From: Roger Pau Monne [mailto:roger@citrix.com] > > Sent: 20 April 2017 16:18 > > To: xen-de...@lists.xenproject.org > > Cc: konrad.w...@oracle.com; boris.ostrov...@oracle.com; Roger Pau Monne > >

Re: [Xen-devel] [PATCH v2 1/9] xen/vpci: introduce basic handlers to trap accesses to the PCI config space

2017-04-21 Thread Paul Durrant
> -Original Message- > From: Roger Pau Monne [mailto:roger@citrix.com] > Sent: 20 April 2017 16:18 > To: xen-de...@lists.xenproject.org > Cc: konrad.w...@oracle.com; boris.ostrov...@oracle.com; Roger Pau Monne > ; Ian Jackson ; Wei Liu >

Re: [Xen-devel] [PATCH v2 1/9] xen/vpci: introduce basic handlers to trap accesses to the PCI config space

2017-04-21 Thread Paul Durrant
> -Original Message- > From: Roger Pau Monne [mailto:roger@citrix.com] > Sent: 20 April 2017 16:18 > To: xen-de...@lists.xenproject.org > Cc: konrad.w...@oracle.com; boris.ostrov...@oracle.com; Roger Pau Monne > ; Ian Jackson ; Wei Liu >

[Xen-devel] [PATCH v2 1/9] xen/vpci: introduce basic handlers to trap accesses to the PCI config space

2017-04-20 Thread Roger Pau Monne
This functionality is going to reside in vpci.c (and the corresponding vpci.h header), and should be arch-agnostic. The handlers introduced in this patch setup the basic functionality required in order to trap accesses to the PCI config space, and allow decoding the address and finding the