From: Bob Liu <bob.liu@oracle.com>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: xen-devel@lists.xenproject.org, Bob Liu <lliubbo@gmail.com>,
keir@xen.org, Ian Campbell <Ian.Campbell@citrix.com>,
Jan Beulich <JBeulich@suse.com>
Subject: Re: [PATCH 03/16] tmem: cleanup: rm unused tmem_op
Date: Tue, 26 Nov 2013 16:56:09 +0800 [thread overview]
Message-ID: <52946229.80105@oracle.com> (raw)
In-Reply-To: <20131125195612.GF3339@phenom.dumpdata.com>
On 11/26/2013 03:56 AM, Konrad Rzeszutek Wilk wrote:
> On Mon, Nov 25, 2013 at 05:12:36PM +0000, Ian Campbell wrote:
>> On Mon, 2013-11-25 at 12:09 -0500, Konrad Rzeszutek Wilk wrote:
>>> On Mon, Nov 25, 2013 at 04:40:18PM +0000, Ian Campbell wrote:
>>>> On Mon, 2013-11-25 at 11:37 -0500, Konrad Rzeszutek Wilk wrote:
>>>>> On Mon, Nov 25, 2013 at 09:52:16AM +0000, Ian Campbell wrote:
>>>>>> On Mon, 2013-11-25 at 09:43 +0000, Jan Beulich wrote:
>>>>>>>>>> On 22.11.13 at 18:38, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
>>>>>>>> On Wed, Nov 20, 2013 at 04:46:12PM +0800, Bob Liu wrote:
>>>>>>>>> TMEM_READ/TMEM_WRITE/TMEM_XCHG/TMEM_NEW_PAGE are never be used.
>>>>>>>>
>>>>>>>> You also need to delete them in include/public/tmem.h and rev up the
>>>>>>>> TMEM_SPEC_VERSION I think?
>>>>>>>
>>>>>>> I said this elsewhere already - you can't simply delete things
>>>>>>> from the public interface.
>>>>>>
>>>>>> Should 006a687ba4de74d7933c09b43872abc19f126c63 be partially reverted
>>>>>> then, to reinstate the typedef under a suitable #ifdef
>>>>>> __XEN_INTERFACE_VERSION__ ?
>>>>>
>>>>> I think that is OK - the typedef was of 'tmem_cli_mfn_t' which
>>>>> was 'xen_pfn_t' based. And the struct that got changed is now
>>>>> using 'xen_pfn_t' instead of 'tmem_cli_mfn_t'.
>>>>
>>>> It's not OK for any existing code using the heads and the old name
>>>> though, since it will fail to build.
>>>
>>> The name is still 'cmfn'. Are you saying that consumers (external
>>> to the Xen tree) of this header will fail to build b/c the typedef is
>>> gone?
>>
>> They will if they are using the typedef itself for something, which
>> isn't restricted to the single use in the struct. They could be using it
>> for something entirely unrelated, or as a temporary variable while
>> calculating what they are going to put in the struct etc.
>
> Oh, and since the headers are public, and not everybody copies them (like
> Linux) this would blow them up. Right, this needs a fix.
>
> Bob, could you please reinstate a typedef back with an #idef __XEN_INTERFACE_VERSION
> please?
>
Okay, I'll have a try.
--
Regards,
-Bob
next prev parent reply other threads:[~2013-11-26 8:56 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-20 8:46 [PATCH 01/16] tmem: cleanup: drop some debug code Bob Liu
2013-11-20 8:46 ` [PATCH 02/16] tmem: cleanup: drop useless function 'tmem_copy_page' Bob Liu
2013-11-20 8:46 ` [PATCH 03/16] tmem: cleanup: rm unused tmem_op Bob Liu
2013-11-22 17:38 ` Konrad Rzeszutek Wilk
2013-11-25 9:43 ` Jan Beulich
2013-11-25 9:52 ` Ian Campbell
2013-11-25 9:58 ` Jan Beulich
2013-11-25 16:37 ` Konrad Rzeszutek Wilk
2013-11-25 16:40 ` Ian Campbell
2013-11-25 17:09 ` Konrad Rzeszutek Wilk
2013-11-25 17:12 ` Ian Campbell
2013-11-25 19:56 ` Konrad Rzeszutek Wilk
2013-11-26 8:56 ` Bob Liu [this message]
2013-11-20 8:46 ` [PATCH 04/16] tmem: cleanup: rm unneeded parameters from put path Bob Liu
2013-11-22 17:54 ` Konrad Rzeszutek Wilk
2013-11-26 8:22 ` Bob Liu
2013-11-20 8:46 ` [PATCH 05/16] tmem: cleanup: rm unneeded parameters from get path Bob Liu
2013-11-22 17:55 ` Konrad Rzeszutek Wilk
2013-11-20 8:46 ` [PATCH 06/16] tmem: cleanup: reorg do_tmem_put() Bob Liu
2013-11-22 18:04 ` Konrad Rzeszutek Wilk
2013-11-20 8:46 ` [PATCH 07/16] tmem: drop unneeded is_ephemeral() and is_private() Bob Liu
2013-11-20 8:46 ` [PATCH 08/16] tmem: cleanup: rm useless EXPORT/FORWARD define Bob Liu
2013-11-22 18:05 ` Konrad Rzeszutek Wilk
2013-11-20 8:46 ` [PATCH 09/16] tmem: cleanup: drop tmemc_list() temporary Bob Liu
2013-11-22 18:07 ` Konrad Rzeszutek Wilk
2013-11-26 8:28 ` Bob Liu
2013-11-22 21:00 ` Konrad Rzeszutek Wilk
2013-11-20 8:46 ` [PATCH 10/16] tmem: cleanup: drop runtime statistics Bob Liu
2013-11-22 18:08 ` Konrad Rzeszutek Wilk
2013-11-20 8:46 ` [PATCH 11/16] tmem: cleanup: drop tmem_lock_all Bob Liu
2013-11-20 8:46 ` [PATCH 12/16] tmem: cleanup: refactor the alloc/free path Bob Liu
2013-11-20 8:46 ` [PATCH 13/16] tmem: cleanup: __tmem_alloc_page: drop unneed parameters Bob Liu
2013-11-22 18:17 ` Konrad Rzeszutek Wilk
2013-11-26 8:41 ` Bob Liu
2013-11-26 17:38 ` Konrad Rzeszutek Wilk
2013-11-20 8:46 ` [PATCH 14/16] tmem: cleanup: drop useless functions from head file Bob Liu
2013-11-27 14:38 ` Andrew Cooper
2013-11-27 14:52 ` Konrad Rzeszutek Wilk
2013-11-27 14:59 ` Andrew Cooper
2013-11-27 15:55 ` Jan Beulich
2013-11-20 8:46 ` [PATCH 15/16] tmem: refator function tmem_ensure_avail_pages() Bob Liu
2013-11-22 18:22 ` Konrad Rzeszutek Wilk
2013-11-20 8:46 ` [PATCH 16/16] tmem: cleanup: rename tmem_relinquish_npages() Bob Liu
2013-11-20 9:08 ` [PATCH 01/16] tmem: cleanup: drop some debug code Jan Beulich
2013-11-20 9:19 ` Bob Liu
2013-11-20 9:25 ` Jan Beulich
2013-11-20 13:51 ` Konrad Rzeszutek Wilk
2013-11-20 14:21 ` Jan Beulich
2013-11-20 18:46 ` Konrad Rzeszutek Wilk
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=52946229.80105@oracle.com \
--to=bob.liu@oracle.com \
--cc=Ian.Campbell@citrix.com \
--cc=JBeulich@suse.com \
--cc=keir@xen.org \
--cc=konrad.wilk@oracle.com \
--cc=lliubbo@gmail.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).