From: George Dunlap <george.dunlap@eu.citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Anthony PERARD <anthony.perard@citrix.com>,
Ian Jackson <ian.jackson@eu.citrix.com>,
Keir Fraser <keir@xen.org>,
Stefano Stabellini <stefano.stabellini@citrix.com>,
xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH 2/2] x86/HVM: fix preemption handling in do_hvm_op()
Date: Wed, 26 Mar 2014 17:06:38 +0000 [thread overview]
Message-ID: <5333091E.1080803@eu.citrix.com> (raw)
In-Reply-To: <533303D00200007800002863@nat28.tlf.novell.com>
On 03/26/2014 03:44 PM, Jan Beulich wrote:
>>>> On 26.03.14 at 15:42, <George.Dunlap@eu.citrix.com> wrote:
>> Is there a real problem with "altering [interface structures] in a way
>> the caller may not expect"? Can't we just document that Xen may
>> change some of the structures?
> The two main problems here, just like with the memory op we had to
> change before 4.4, are
> - we can't and shouldn't assume that qemu is the only consumer, and
> hence surprises to the caller must be avoided
> - no interface anywhere in the tree should set bad precedents, or
> else keeping people from doing the same wrong thing elsewhere is
> much harder to achieve (i.e. just like in so many other places
> recently, I'm advocating for consistency throughout the source
> base here)
"Surprises to the caller" can be avoided by adding comments in the
public header. The hypercall can't be used without someone looking at
the structure definition. :-)
"Setting a bad precedent" is a reasonable argument *if* we're not
constrained by ABI / API compatibility. I agree with IanC, that libxc
should be an internal-only, unstable interface; and that we should
probably come up with some more reasonable way to support "external"
APIs like this for device models.
-George
next prev parent reply other threads:[~2014-03-26 17:06 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-25 15:51 [PATCH 0/2] x86/HVM: XSA-89 follow-ups Jan Beulich
2014-03-25 16:03 ` [PATCH 1/2] x86/HVM: simplify do_hvm_op() Jan Beulich
2014-03-25 17:26 ` Andrew Cooper
2014-03-25 16:03 ` [PATCH 2/2] x86/HVM: fix preemption handling in do_hvm_op() Jan Beulich
[not found] ` <CAGU+auuMgkBWobj=wpi6908mZuaYhHogc6j9F6gwdeUAGm=2DA@mail.gmail.com>
2014-03-25 18:40 ` Aravindh Puthiyaparambil (aravindp)
2014-03-26 10:06 ` Jan Beulich
2014-03-26 14:42 ` George Dunlap
2014-03-26 15:32 ` Ian Campbell
2014-03-26 15:44 ` Jan Beulich
2014-03-26 17:06 ` George Dunlap [this message]
2014-03-27 8:05 ` Jan Beulich
2014-03-27 10:16 ` Ian Campbell
2014-03-27 11:20 ` [PATCH 0/2] x86/HVM: XSA-89 follow-ups Tim Deegan
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=5333091E.1080803@eu.citrix.com \
--to=george.dunlap@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=anthony.perard@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=keir@xen.org \
--cc=stefano.stabellini@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.