From: "Jan Beulich" <JBeulich@suse.com>
To: Paul Durrant <Paul.Durrant@citrix.com>
Cc: "Keir (Xen.org)" <keir@xen.org>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH v5 4/9] ioreq-server: create basic ioreq server abstraction.
Date: Tue, 06 May 2014 14:24:29 +0100 [thread overview]
Message-ID: <5368FEAD020000780000F642@mail.emea.novell.com> (raw)
In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD03355D7@AMSPEX01CL01.citrite.net>
>>> On 06.05.14 at 15:12, <Paul.Durrant@citrix.com> wrote:
>> From: Jan Beulich [mailto:JBeulich@suse.com]
>> >>> On 01.05.14 at 14:08, <paul.durrant@citrix.com> wrote:
>> > @@ -426,14 +431,6 @@ void hvm_do_resume(struct vcpu *v)
>> > }
>> > }
>> >
>> > -static void hvm_init_ioreq_page(
>> > - struct domain *d, struct hvm_ioreq_page *iorp)
>> > -{
>> > - memset(iorp, 0, sizeof(*iorp));
>> > - spin_lock_init(&iorp->lock);
>> > - domain_pause(d);
>>
>> So where is this ...
>
> Nowhere. As I said in the checkin comment, the lock has gone and the
> domain_pause() and subsequent domain_unpause() were always unnecessary
> AFAICT. I think the intention was that the domain was not unpaused until both
> the IOREQ PFNs were set, but since the PFNs are set in the domain build code
> in the toolstack I can't see why this was needed.
So with a disaggregated, hostile tool stack this would still be
unnecessary? It can go away only if the answer to this is "yes".
>> > +static int hvm_replace_event_channel(struct vcpu *v, domid_t
>> remote_domid,
>> > + evtchn_port_t *p_port)
>> > +{
>> > + evtchn_port_t old_port, new_port;
>> > +
>> > + new_port = alloc_unbound_xen_event_channel(v, remote_domid, NULL);
>> > + if ( new_port < 0 )
>> > + return new_port;
>>
>> I'm pretty sure I commented on this too in a previous version:
>> evtchn_port_t is an unsigned type, hence checking it to be negative
>> is pointless.
>
> Yes, but as I'm pretty sure I responded, alloc_unbound_xen_event_channel()
> doesn't return an evtchn_port_t!
Which doesn't matter here at all: Once you store the function result
in a variable of type evtchn_port_t, its original signedness is lost.
Jan
next prev parent reply other threads:[~2014-05-06 13:24 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-01 12:08 [PATCH v5 0/9] Support for running secondary emulators Paul Durrant
2014-05-01 12:08 ` [PATCH v5 1/9] hvm_set_ioreq_page() releases wrong page in error path Paul Durrant
2014-05-01 12:48 ` Andrew Cooper
2014-05-01 12:08 ` [PATCH v5 2/9] ioreq-server: pre-series tidy up Paul Durrant
2014-05-06 12:25 ` Jan Beulich
2014-05-06 12:37 ` Paul Durrant
2014-05-01 12:08 ` [PATCH v5 3/9] ioreq-server: centralize access to ioreq structures Paul Durrant
2014-05-06 12:35 ` Jan Beulich
2014-05-06 12:41 ` Paul Durrant
2014-05-06 14:13 ` Paul Durrant
2014-05-06 14:21 ` Jan Beulich
2014-05-06 14:32 ` Paul Durrant
2014-05-06 14:39 ` Jan Beulich
2014-05-01 12:08 ` [PATCH v5 4/9] ioreq-server: create basic ioreq server abstraction Paul Durrant
2014-05-06 12:55 ` Jan Beulich
2014-05-06 13:12 ` Paul Durrant
2014-05-06 13:24 ` Jan Beulich [this message]
2014-05-06 13:40 ` Paul Durrant
2014-05-06 13:50 ` Jan Beulich
2014-05-06 13:44 ` Paul Durrant
2014-05-06 13:51 ` Jan Beulich
2014-05-06 13:53 ` Paul Durrant
2014-05-01 12:08 ` [PATCH v5 5/9] ioreq-server: on-demand creation of ioreq server Paul Durrant
2014-05-06 14:18 ` Jan Beulich
2014-05-06 14:24 ` Paul Durrant
2014-05-06 15:07 ` Jan Beulich
2014-05-01 12:08 ` [PATCH v5 6/9] ioreq-server: add support for multiple servers Paul Durrant
2014-05-06 10:46 ` Ian Campbell
2014-05-06 13:28 ` Paul Durrant
2014-05-07 9:44 ` Ian Campbell
2014-05-07 9:48 ` Paul Durrant
2014-05-07 11:13 ` Jan Beulich
2014-05-07 12:06 ` Paul Durrant
2014-05-07 12:23 ` Jan Beulich
2014-05-07 12:25 ` Paul Durrant
2014-05-07 12:34 ` Jan Beulich
2014-05-07 12:37 ` Paul Durrant
2014-05-07 14:07 ` Jan Beulich
2014-05-07 14:12 ` Paul Durrant
2014-05-07 14:22 ` Jan Beulich
2014-05-01 12:08 ` [PATCH v5 7/9] ioreq-server: remove p2m entries when server is enabled Paul Durrant
2014-05-06 10:48 ` Ian Campbell
2014-05-06 16:57 ` Paul Durrant
2014-05-07 12:09 ` Jan Beulich
2014-05-01 12:08 ` [PATCH v5 8/9] ioreq-server: make buffered ioreq handling optional Paul Durrant
2014-05-06 10:52 ` Ian Campbell
2014-05-06 13:17 ` Paul Durrant
2014-05-07 12:13 ` Jan Beulich
2014-05-01 12:08 ` [PATCH v5 9/9] ioreq-server: bring the PCI hotplug controller implementation into Xen Paul Durrant
2014-05-06 11:24 ` Ian Campbell
2014-05-06 13:02 ` Paul Durrant
2014-05-06 13:24 ` Ian Campbell
2014-05-06 13:35 ` Paul Durrant
2014-05-07 9:48 ` Ian Campbell
2014-05-07 9:51 ` Paul Durrant
2014-05-07 14:41 ` [PATCH v5 0/9] Support for running secondary emulators Jan Beulich
2014-05-07 14:45 ` Paul Durrant
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=5368FEAD020000780000F642@mail.emea.novell.com \
--to=jbeulich@suse.com \
--cc=Paul.Durrant@citrix.com \
--cc=keir@xen.org \
--cc=xen-devel@lists.xen.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).