All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@suse.com>
To: Roger Pau Monne <roger.pau@citrix.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
	boris.ostrovsky@oracle.com, xen-devel@lists.xenproject.org
Subject: Re: [PATCH 1/5] x86/vioapic: move domain out of hvm_vioapic struct
Date: Fri, 03 Mar 2017 04:31:54 -0700	[thread overview]
Message-ID: <58B9623A020000780013FB9C@prv-mh.provo.novell.com> (raw)
In-Reply-To: <20170223115217.32764-2-roger.pau@citrix.com>

>>> On 23.02.17 at 12:52, <roger.pau@citrix.com> wrote:
> @@ -204,8 +205,7 @@ static void vioapic_write_indirect(
>              break;
>          }
>  
> -        vioapic_write_redirent(
> -            vioapic, redir_index, vioapic->ioregsel&1, val);
> +        vioapic_write_redirent(d, redir_index, vioapic->ioregsel&1, val);

Please correct obvious coding style violations in cases like this. Of
course here it can be taken care of while committing.

> @@ -224,7 +224,7 @@ static int vioapic_write(
>          break;
>  
>      case VIOAPIC_REG_WINDOW:
> -        vioapic_write_indirect(vioapic, val);
> +        vioapic_write_indirect(v->domain, val);

I'll assume this will clarify itself with later patches: At this point it
feels wrong to lose the IO-APIC pointer in places like this, as from
domain and value alone you won't be able to reconstruct it. I.e.
I would have considered it more natural if you simply added
another function parameter.

I also wonder whether in at least some of the cases the new
struct domain * parameters of functions couldn't be const-
qualified.

In any event I'll want to have looked at more of this series to
understand whether the patch here is okay in its current form.

Jan


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

  reply	other threads:[~2017-03-03 11:31 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-23 11:52 [PATCH 0/5] x86/vioapic: introduce support for multiple vIO APICs Roger Pau Monne
2017-02-23 11:52 ` [PATCH 1/5] x86/vioapic: move domain out of hvm_vioapic struct Roger Pau Monne
2017-03-03 11:31   ` Jan Beulich [this message]
2017-03-06 16:43   ` Jan Beulich
2017-03-06 16:49     ` Roger Pau Monne
2017-02-23 11:52 ` [PATCH 2/5] x86/vioapic: allow the vIO APIC to have a variable number of pins Roger Pau Monne
2017-03-03 11:56   ` Jan Beulich
2017-03-03 12:53     ` Roger Pau Monne
2017-03-03 13:02       ` Jan Beulich
2017-03-03 15:30         ` Roger Pau Monne
2017-03-03 15:58           ` Jan Beulich
2017-02-23 11:52 ` [PATCH 3/5] x86/vioapic: introduce support for multiple vIO APICS Roger Pau Monne
2017-03-03 17:06   ` Jan Beulich
2017-03-20 18:27     ` Roger Pau Monne
2017-03-21  7:56       ` Jan Beulich
2017-03-21 10:52         ` Roger Pau Monne
2017-03-21 13:45           ` Jan Beulich
2017-03-21 13:59             ` Roger Pau Monne
2017-03-21 14:07               ` Jan Beulich
2017-02-23 11:52 ` [PATCH 4/5] x86/ioapic: add prototype for apic_gsi_base to io_apic.h Roger Pau Monne
2017-03-06 13:25   ` Jan Beulich
2017-02-23 11:52 ` [PATCH 5/5] x86/vioapic: allow PVHv2 Dom0 to have more than one IO APIC Roger Pau Monne
2017-03-06 16:00   ` Jan Beulich

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=58B9623A020000780013FB9C@prv-mh.provo.novell.com \
    --to=jbeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=roger.pau@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.