Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1691841

Re: [PATCH v2 1/2] livepatch: introduce shadow variable API

From Petr Mladek <pmladek@suse.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 1/2] livepatch: introduce shadow variable API
Date 2017-07-19 17:30 +0200
Message-ID <u4Z5f-1XQ-11@gated-at.bofh.it> (permalink)
References (1 earlier) <tXneq-ad-5@gated-at.bofh.it> <u2WXT-4hp-3@gated-at.bofh.it> <u4ghP-6Sd-5@gated-at.bofh.it> <u4Aqf-2Pp-35@gated-at.bofh.it> <u4GvE-6vZ-29@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue 2017-07-18 15:36:27, Joe Lawrence wrote:
> Who knew naming things was so difficult :)
> 
> There's been a bunch of feedback on terminology, so I'll just issue a
> collective reply to Petr's last msg on the topic.  These were my
> thoughts on naming clarification:
> 
>   v1,v2                                     v3
>   --------------------------------------------------------------
>   obj, original data                        obj, parent object
>   num, numerical description of new data    id, data identifier
>   new_data                                  data
>   new_size                                  data_size

IMHO, "size" might be enough in the context when it is used.

> 
> Miroslav also suggested additional text explaining the id / data
> identifier field.  How about something like this:
> 
> ---
> 
> ================
> Shadow Variables
> ================
> 
> ...
> 
> A global, in-kernel hashtable associates parent pointers and a numeric
> identifier with shadow variable data.

I would slightly reformulate the above sentece:

A global, in-kernel hashtable associates pointers to parent objects
and a numeric identifier of the shadow data.

> Specifically, the parent pointer
> serves as the hashtable key, while the numeric id further filters
> hashtable queries.  The numeric identifier is a simple enumeration that
> may be used to describe shadow variable versions (for stacking
> livepatches), class or type (for multiple shadow variables per parent),
> etc.  Multiple shadow variables may attach to the same parent object,
> but their numeric identifier distinguises between them.

Sounds good to me.

Best Regards,
Petr

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH v2 1/2] livepatch: introduce shadow variable API Petr Mladek <pmladek@suse.com> - 2017-07-18 15:10 +0200
  Re: [PATCH v2 1/2] livepatch: introduce shadow variable API Joe Lawrence <joe.lawrence@redhat.com> - 2017-07-18 21:40 +0200
    Re: [PATCH v2 1/2] livepatch: introduce shadow variable API Petr Mladek <pmladek@suse.com> - 2017-07-19 17:30 +0200
      Re: [PATCH v2 1/2] livepatch: introduce shadow variable API Miroslav Benes <mbenes@suse.cz> - 2017-07-19 21:00 +0200

csiph-web