From: Martin Pohlack <mpohlack@amazon.com>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Elena Ufimtseva <elena.ufimtseva@oracle.com>,
jeremy@goop.org, hanweidong@huawei.com, jbeulich@suse.com,
john.liuqiming@huawei.com,
Paul Voccio <paul.voccio@rackspace.com>,
xen-devel@lists.xenproject.org,
Daniel Kiper <daniel.kiper@oracle.com>,
Major Hayden <major.hayden@rackspace.com>,
liuyingdong@huawei.com, aliguori@amazon.com, konrad@darnok.org,
lars.kurth@citrix.com,
Steven Wilson <steven.wilson@rackspace.com>,
peter.huangpeng@huawei.com, msw@amazon.com,
xiantao.zxt@alibaba-inc.com,
Rick Harris <rick.harris@rackspace.com>,
boris.ostrovsky@oracle.com,
Josh Kearney <josh.kearney@rackspace.com>,
jinsong.liu@alibaba-inc.com,
Antony Messerli <amesserl@rackspace.com>,
fanhenglong@huawei.com
Subject: Re: [RFC v2] xSplice design
Date: Fri, 12 Jun 2015 20:36:29 +0200 [thread overview]
Message-ID: <557B26AD.1060700@amazon.com> (raw)
In-Reply-To: <20150612163939.GA25376@l.oracle.com>
On 12.06.2015 18:39, Konrad Rzeszutek Wilk wrote:
> On Fri, Jun 12, 2015 at 05:17:13PM +0100, Andrew Cooper wrote:
>> On 12/06/15 17:09, Konrad Rzeszutek Wilk wrote:
>>>
>>>>> The _GET_STATUS does not enforce this and can take longer giving us
>>>>> more breathing room - and also unbounded time - which means if
>>>>> we were to try to cancel it (say it had run for an hour and still
>>>>> could not patch it)- we have to add some hairy code to
>>>>> deal with cancelling asynchronous code.
>>>>>
>>>>> Your way is simpler - but I would advocate expanding the -EAGAIN to _all_
>>>>> the xSplice hypercalls. Thoughts?
>>>> In my experience, you only need the EAGAIN for hypercalls that use the
>>>> quiet state. Depending on the design, that would be the operations that
>>>> do hotpatch activation and deactivation (i.e., the actual splicing).
>>> The uploading of the patch could be slow - as in the checking to be done
>>> and on an big patch (2MB or more?) it would be good to try again.
>>
>> If a patch is greater than a few kb, it is probably not something
>> sensible to be patching.
>
> Potentially. It could be an cumlative update containing mulitple XSAs.
>
>>
>> However, an upload_patch/apply_patch split in the hypercall ABI might be
>> a sensible idea.
>
> The design has that (it has four hypercalls actually).
>
> The question is whether that upload_patch hypercall should also
> have the EAGAIN mechansim baked in the design.
Why would you need it? Do you envision any complex blocking operation
to happen when loading a module? I can't think of any off the top of my
head.
> The other one (GET_LIST) has it too - and can return EAGAIN with an
> count of how many there are left so the user-space can pick up.
I don't understand how that relates to the async nature of the other
interface parts. Is that similar to the readdir syscall where a second
invocation would continue from the current seek pointer?
Or do you have something like a pread for a subarray of list entries in
mind?
It might be a bit tricky to reliably deliver atomic snapshots if a
potentially larger list to userland. Maybe a version field might be
desirable here.
Martin
next prev parent reply other threads:[~2015-06-12 18:37 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-15 19:44 [RFC v2] xSplice design Konrad Rzeszutek Wilk
2015-05-18 12:41 ` Jan Beulich
2015-06-05 14:49 ` Konrad Rzeszutek Wilk
2015-06-05 15:16 ` Jan Beulich
2015-06-05 16:00 ` Konrad Rzeszutek Wilk
2015-06-05 16:14 ` Jan Beulich
2015-05-18 12:54 ` Liuqiming (John)
2015-05-18 13:11 ` Daniel Kiper
2015-06-05 14:50 ` Konrad Rzeszutek Wilk
2015-05-19 19:13 ` Lars Kurth
2015-05-20 15:11 ` Martin Pohlack
2015-06-05 15:00 ` Konrad Rzeszutek Wilk
2015-06-05 15:15 ` Andrew Cooper
2015-06-05 15:27 ` Jan Beulich
2015-06-08 8:34 ` Martin Pohlack
2015-06-08 8:51 ` Jan Beulich
2015-06-08 14:38 ` Martin Pohlack
2015-06-08 15:19 ` Konrad Rzeszutek Wilk
2015-06-12 11:51 ` Martin Pohlack
2015-06-12 14:06 ` Konrad Rzeszutek Wilk
2015-06-12 11:39 ` Martin Pohlack
2015-06-12 14:03 ` Konrad Rzeszutek Wilk
2015-06-12 14:31 ` Martin Pohlack
2015-06-12 14:43 ` Jan Beulich
2015-06-12 17:31 ` Martin Pohlack
2015-06-12 18:46 ` Konrad Rzeszutek Wilk
2015-06-12 16:09 ` Konrad Rzeszutek Wilk
2015-06-12 16:17 ` Andrew Cooper
2015-06-12 16:39 ` Konrad Rzeszutek Wilk
2015-06-12 18:36 ` Martin Pohlack [this message]
2015-06-12 18:51 ` Konrad Rzeszutek Wilk
2015-07-06 19:36 ` Konrad Rzeszutek Wilk
2015-10-27 12:05 ` Ross Lagerwall
2015-10-29 16:55 ` Ross Lagerwall
2015-10-30 10:39 ` Martin Pohlack
2015-10-30 14:03 ` Ross Lagerwall
2015-10-30 14:06 ` Martin Pohlack
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=557B26AD.1060700@amazon.com \
--to=mpohlack@amazon.com \
--cc=aliguori@amazon.com \
--cc=amesserl@rackspace.com \
--cc=andrew.cooper3@citrix.com \
--cc=boris.ostrovsky@oracle.com \
--cc=daniel.kiper@oracle.com \
--cc=elena.ufimtseva@oracle.com \
--cc=fanhenglong@huawei.com \
--cc=hanweidong@huawei.com \
--cc=jbeulich@suse.com \
--cc=jeremy@goop.org \
--cc=jinsong.liu@alibaba-inc.com \
--cc=john.liuqiming@huawei.com \
--cc=josh.kearney@rackspace.com \
--cc=konrad.wilk@oracle.com \
--cc=konrad@darnok.org \
--cc=lars.kurth@citrix.com \
--cc=liuyingdong@huawei.com \
--cc=major.hayden@rackspace.com \
--cc=msw@amazon.com \
--cc=paul.voccio@rackspace.com \
--cc=peter.huangpeng@huawei.com \
--cc=rick.harris@rackspace.com \
--cc=steven.wilson@rackspace.com \
--cc=xen-devel@lists.xenproject.org \
--cc=xiantao.zxt@alibaba-inc.com \
/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).