xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Roger Pau Monne <roger.pau@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
	julien.grall@arm.com, PaulDurrant <paul.durrant@citrix.com>,
	xen-devel@lists.xenproject.org
Subject: Re: [PATCH for-4.9 v3 2/2] x86/io: move the list of guest to machine IO ports out of domain_iommu
Date: Wed, 5 Apr 2017 10:40:02 +0100	[thread overview]
Message-ID: <20170405094002.4ph6prsmjvboycwc@dhcp-3-128.uk.xensource.com> (raw)
In-Reply-To: <58E4D23D020000780014D1A6@prv-mh.provo.novell.com>

On Wed, Apr 05, 2017 at 03:17:17AM -0600, Jan Beulich wrote:
> >>> On 05.04.17 at 11:00, <roger.pau@citrix.com> wrote:
> > --- a/xen/arch/x86/domctl.c
> > +++ b/xen/arch/x86/domctl.c
> > @@ -721,14 +721,20 @@ long arch_do_domctl(
> >  
> >      case XEN_DOMCTL_ioport_mapping:
> >      {
> > -        struct domain_iommu *hd;
> >          unsigned int fgp = domctl->u.ioport_mapping.first_gport;
> >          unsigned int fmp = domctl->u.ioport_mapping.first_mport;
> >          unsigned int np = domctl->u.ioport_mapping.nr_ports;
> >          unsigned int add = domctl->u.ioport_mapping.add_mapping;
> > +        struct hvm_domain *hvm_domain;
> >          struct g2m_ioport *g2m_ioport;
> >          int found = 0;
> >  
> > +        ret = -EOPNOTSUPP;
> > +        if ( !is_hvm_domain(d) )
> > +        {
> > +            printk(XENLOG_G_ERR "ioport_map against non-HVM domain\n");
> > +            break;
> > +        }
> >          ret = -EINVAL;
> 
> There should be a blank line above this one, which can of course
> be added while committing. With that
> Reviewed-by: Jan Beulich <jbeulich@suse.com>
> but I think we should still get clarification on the supposed earlier
> regression before committing this.

Thanks.

The only callers of this domctl (xc_domain_ioport_mapping) are in QEMU, so it's
very unlikely that this domctl was ever used with PV guests (also taking into
account what Jan said about the iommu struct).

Roger.

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

      reply	other threads:[~2017-04-05  9:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-05  9:00 [PATCH for-4.9 v3 0/2] x86/io: rename dpci_ IO port handlers Roger Pau Monne
2017-04-05  9:00 ` [PATCH for-4.9 v3 1/2] x86/io: rename misleading dpci_ prefixed functions to g2m_ Roger Pau Monne
2017-04-05  9:00 ` [PATCH for-4.9 v3 2/2] x86/io: move the list of guest to machine IO ports out of domain_iommu Roger Pau Monne
2017-04-05  9:17   ` Jan Beulich
2017-04-05  9:40     ` Roger Pau Monne [this message]

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=20170405094002.4ph6prsmjvboycwc@dhcp-3-128.uk.xensource.com \
    --to=roger.pau@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=julien.grall@arm.com \
    --cc=paul.durrant@citrix.com \
    --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).