xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>,
	Wei Liu <wei.liu2@citrix.com>,
	George Dunlap <George.Dunlap@eu.citrix.com>,
	AndrewCooper <andrew.cooper3@citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>, TimDeegan <tim@xen.org>,
	Julien Grall <julien.grall@arm.com>,
	Paul Durrant <paul.durrant@citrix.com>,
	xen-devel@lists.xenproject.org,
	Boris Ostrovsky <boris.ostrovsky@oracle.com>,
	Roger Pau Monne <roger.pau@citrix.com>
Subject: Re: [PATCH v10 01/11] vpci: introduce basic handlers to trap accesses to the PCI config space
Date: Wed, 21 Mar 2018 16:01:41 +0000	[thread overview]
Message-ID: <20180321160141.keh2gtzy2ayfsvbh@citrix.com> (raw)
In-Reply-To: <5AB0FA2102000078001B3E3A@prv-mh.provo.novell.com>

On Tue, Mar 20, 2018 at 05:10:09AM -0600, Jan Beulich wrote:
> >>> On 16.03.18 at 14:29, <roger.pau@citrix.com> wrote:
> > 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 corresponding handler that should handle the access
> > (although no handlers are implemented).
> > 
> > Note that the traps to the PCI IO ports registers (0xcf8/0xcfc) are
> > setup inside of a x86 HVM file, since that's not shared with other
> > arches.
> > 
> > A new XEN_X86_EMU_VPCI x86 domain flag is added in order to signal Xen
> > whether a domain should use the newly introduced vPCI handlers, this
> > is only enabled for PVH Dom0 at the moment.
> > 
> > A very simple user-space test is also provided, so that the basic
> > functionality of the vPCI traps can be asserted. This has been proven
> > quite helpful during development, since the logic to handle partial
> > accesses or accesses that expand across multiple registers is not
> > trivial.
> > 
> > The handlers for the registers are added to a linked list that's keep
> > sorted at all times. Both the read and write handlers support accesses
> > that expand across multiple emulated registers and contain gaps not
> > emulated.
> > 
> > Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
> > Reviewed-by: Jan Beulich <jbeulich@suse.com>
> > [IO parts]
> > Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
> 
> Stefano, Julien,
> 
> any chance of getting an ack for the smallish ARM side change
> here (assuming your earlier concerns have been addressed)?
> 
> Ian, Wei,
> 
> along those lines (iirc there were no prior concerns) for the tiny
> libxl part? (I think the new test code doesn't strictly belong under
> tools/ maintainership, just like the x86_emulator one doesn't.)

Here you go:

Acked-by: Wei Liu <wei.liu2@citrix.com>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2018-03-21 16:10 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-16 13:29 [PATCH v10 00/11] vpci: PCI config space emulation Roger Pau Monne
2018-03-16 13:29 ` [PATCH v10 01/11] vpci: introduce basic handlers to trap accesses to the PCI config space Roger Pau Monne
2018-03-20 11:10   ` Jan Beulich
2018-03-21 16:01     ` Wei Liu [this message]
2018-03-16 13:29 ` [PATCH v10 02/11] x86/mmcfg: add handlers for the PVH Dom0 MMCFG areas Roger Pau Monne
2018-03-16 13:30 ` [PATCH v10 03/11] x86/physdev: enable PHYSDEVOP_pci_mmcfg_reserved for PVH Dom0 Roger Pau Monne
2018-03-16 13:30 ` [PATCH v10 04/11] pci: split code to size BARs from pci_add_device Roger Pau Monne
2018-03-16 13:30 ` [PATCH v10 05/11] pci: add support to size ROM BARs to pci_size_mem_bar Roger Pau Monne
2018-03-16 13:30 ` [PATCH v10 06/11] xen: introduce rangeset_consume_ranges Roger Pau Monne
2018-03-16 13:30 ` [PATCH v10 07/11] vpci/bars: add handlers to map the BARs Roger Pau Monne
2018-03-19 10:22   ` Paul Durrant
2018-03-19 16:18   ` Jan Beulich
2018-03-20 11:12     ` Roger Pau Monné
2018-03-20 11:29       ` Jan Beulich
2018-03-16 13:30 ` [PATCH v10 08/11] x86/pt: mask MSI vectors on unbind Roger Pau Monne
2018-03-16 13:30 ` [PATCH v10 09/11] vpci/msi: add MSI handlers Roger Pau Monne
2018-03-16 14:04   ` Jan Beulich
2018-03-16 14:34     ` Roger Pau Monné
2018-03-16 15:05       ` Jan Beulich
2018-03-16 15:38         ` Roger Pau Monné
2018-03-16 16:24           ` Jan Beulich
2018-03-16 17:51             ` Roger Pau Monné
2018-03-19  8:06               ` Jan Beulich
2018-03-16 13:30 ` [PATCH v10 10/11] vpci: add a priority parameter to the vPCI register initializer Roger Pau Monne
2018-03-16 13:30 ` [PATCH v10 11/11] vpci/msix: add MSI-X handlers Roger Pau Monne
2018-03-20 11:03   ` Jan Beulich
2018-03-20 11:43     ` Roger Pau Monné
2018-03-20 11:48       ` Roger Pau Monné
2018-03-20 13:10       ` Jan Beulich
2018-03-20 13:48         ` Roger Pau Monné

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180321160141.keh2gtzy2ayfsvbh@citrix.com \
    --to=wei.liu2@citrix.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=julien.grall@arm.com \
    --cc=paul.durrant@citrix.com \
    --cc=roger.pau@citrix.com \
    --cc=sstabellini@kernel.org \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).