Re: [Xen-devel] [PATCH v5 01/11] x86/pci: introduce hvm_pci_decode_addr

2017-08-25 Thread Roger Pau Monne
On Thu, Aug 24, 2017 at 09:46:16AM -0600, Jan Beulich wrote: > >>> On 14.08.17 at 16:28, wrote: > > --- a/xen/arch/x86/hvm/io.c > > +++ b/xen/arch/x86/hvm/io.c > > @@ -256,6 +256,25 @@ void register_g2m_portio_handler(struct domain *d) > > handler->ops = &g2m_portio_ops; > > } > > > > +uns

Re: [Xen-devel] [PATCH v5 01/11] x86/pci: introduce hvm_pci_decode_addr

2017-08-24 Thread Jan Beulich
>>> On 14.08.17 at 16:28, wrote: > --- a/xen/arch/x86/hvm/io.c > +++ b/xen/arch/x86/hvm/io.c > @@ -256,6 +256,25 @@ void register_g2m_portio_handler(struct domain *d) > handler->ops = &g2m_portio_ops; > } > > +unsigned int hvm_pci_decode_addr(unsigned int cf8, unsigned int addr, > +

Re: [Xen-devel] [PATCH v5 01/11] x86/pci: introduce hvm_pci_decode_addr

2017-08-22 Thread Paul Durrant
> -Original Message- > From: Roger Pau Monne [mailto:roger@citrix.com] > Sent: 14 August 2017 15:29 > To: xen-de...@lists.xenproject.org > Cc: boris.ostrov...@oracle.com; konrad.w...@oracle.com; Roger Pau Monne > ; Paul Durrant ; Jan > Beulich ; Andrew Cooper > > Subject: [PATCH v5 01/

[Xen-devel] [PATCH v5 01/11] x86/pci: introduce hvm_pci_decode_addr

2017-08-14 Thread Roger Pau Monne
And use it in the ioreq code to decode accesses to the PCI IO ports into bus, slot, function and register values. Signed-off-by: Roger Pau Monné --- Cc: Paul Durrant Cc: Jan Beulich Cc: Andrew Cooper --- Changes since v4: - New in this version. --- xen/arch/x86/hvm/io.c| 19 +