Skip to contentSkip to conversation

vm-event: MAINTAINERS fix

PATCH Superseded Corneliu ZUZU 4 participants 12 messages Jul 1, 2016 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vm-event: MAINTAINERS fix

Fix vm-event section of MAINTAINERS file.

---
 MAINTAINERS | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
MAINTAINERS +6 -2
index e91140f..7bff878 100644
@@ -402,10 +402,14 @@ M:	Razvan Cojocaru <[email protected]>
 M:	Tamas K Lengyel <[email protected]>
 S:	Supported
 F:	xen/common/mem_access.c
-F:	xen/*/vm_event.c
-F:	xen/*/monitor.c
+F:	xen/common/vm_event.c
+F:	xen/arch/*/vm_event.c
+F:	xen/common/monitor.c
+F:	xen/arch/*/monitor.c
+F:	xen/arch/x86/hvm/monitor.c
 F:	xen/include/*/mem_access.h
 F:	xen/include/*/monitor.h
+F:	xen/include/asm-x86/hvm/monitor.h
 F:	xen/include/*/vm_event.h
 F:	tools/tests/xen-access
 
Signature · 7 lines
2.5.0


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#1 lore raw
Quoted 18 lines · Corneliu ZUZU

Fix vm-event section of MAINTAINERS file.

---
  MAINTAINERS | 8 ++++++--
  1 file changed, 6 insertions(+), 2 deletions(-)
MAINTAINERS +1 -2
index e91140f..7bff878 100644
@@ -402,10 +402,14 @@ M:	Razvan Cojocaru <[email protected]>
  M:	Tamas K Lengyel <[email protected]>
  S:	Supported
  F:	xen/common/mem_access.c
-F:	xen/*/vm_event.c
-F:	xen/*/monitor.c
+F:	xen/common/vm_event.c

MAINTAINERS M: Razvan Cojocaru <[email protected]> · line 415

Quoted 10 lines
MAINTAINERS +5 -0
+F:	xen/arch/*/vm_event.c
+F:	xen/common/monitor.c
+F:	xen/arch/*/monitor.c
+F:	xen/arch/x86/hvm/monitor.c
  F:	xen/include/*/mem_access.h
  F:	xen/include/*/monitor.h
+F:	xen/include/asm-x86/hvm/monitor.h
  F:	xen/include/*/vm_event.h
  F:	tools/tests/xen-access
 

Re: Tamas & Razvan added to the CC list.

Corneliu.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
In reply to Corneliu ZUZU
Quoted 2 lines
Quoted 1 line
Quoted 1 line · On 01.07.16 at 09:15, <[email protected]> wrote:

Fix vm-event section of MAINTAINERS file.

Would be nice to mention here which commit(s) caused these to go out of sync with the actual code.

Quoted 8 lines
MAINTAINERS +0 -2
@@ -402,10 +402,14 @@ M:	Razvan Cojocaru <[email protected]>
 M:	Tamas K Lengyel <[email protected]>
 S:	Supported
 F:	xen/common/mem_access.c
-F:	xen/*/vm_event.c
-F:	xen/*/monitor.c

MAINTAINERS M: Razvan Cojocaru <[email protected]> · line 414

Quoted 10 lines
MAINTAINERS +6 -0
+F:	xen/common/vm_event.c
+F:	xen/arch/*/vm_event.c
+F:	xen/common/monitor.c
+F:	xen/arch/*/monitor.c
+F:	xen/arch/x86/hvm/monitor.c
 F:	xen/include/*/mem_access.h
 F:	xen/include/*/monitor.h
+F:	xen/include/asm-x86/hvm/monitor.h
 F:	xen/include/*/vm_event.h
 F:	tools/tests/xen-access

Please at least don't make (un)sorted-ness worse than it was.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#3 lore raw
Quoted 4 lines · Jan Beulich
Quoted 2 lines
Quoted 1 line
Quoted 1 line · On 01.07.16 at 09:15, <[email protected]> wrote:

Fix vm-event section of MAINTAINERS file.

Would be nice to mention here which commit(s) caused these to go out of sync with the actual code.

Why?

Quoted 21 lines
Quoted 9 lines
MAINTAINERS +0 -2
@@ -402,10 +402,14 @@ M:	Razvan Cojocaru <[email protected]>
  M:	Tamas K Lengyel <[email protected]>
  S:	Supported
  F:	xen/common/mem_access.c
-F:	xen/*/vm_event.c
-F:	xen/*/monitor.c

MAINTAINERS M: Razvan Cojocaru <[email protected]> · line 414

Quoted 10 lines
MAINTAINERS +6 -0
+F:	xen/common/vm_event.c
+F:	xen/arch/*/vm_event.c
+F:	xen/common/monitor.c
+F:	xen/arch/*/monitor.c
+F:	xen/arch/x86/hvm/monitor.c
  F:	xen/include/*/mem_access.h
  F:	xen/include/*/monitor.h
+F:	xen/include/asm-x86/hvm/monitor.h
  F:	xen/include/*/vm_event.h
  F:	tools/tests/xen-access

Please at least don't make (un)sorted-ness worse than it was.

Quoted 1 line

Jan

Please at least mention how these were sorted (/unsorted). They are currently sorted, just not alphabetically (common before arch, grouped by file, .c before .h). How do you want me to sort them? Be specific (and don't make me guess the rules, where is this written? if not written anywhere, how should I adjust CODE_STYLE to fix that?).

Corneliu.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#4 lore raw
Quoted 8 lines
Quoted 1 line
Quoted 1 line · On 01.07.16 at 09:40, <[email protected]> wrote:
Quoted 4 lines · Jan Beulich
Quoted 2 lines
Quoted 1 line
Quoted 1 line · On 01.07.16 at 09:15, <[email protected]> wrote:

Fix vm-event section of MAINTAINERS file.

Would be nice to mention here which commit(s) caused these to go out of sync with the actual code.

Why?

Well, I already said so above - it would be nice (for reference, obviously).

Quoted 20 lines
Quoted 11 lines
Quoted 11 lines
MAINTAINERS +3 -2
@@ -402,10 +402,14 @@ M:	Razvan Cojocaru <[email protected]>
  M:	Tamas K Lengyel <[email protected]>
  S:	Supported
  F:	xen/common/mem_access.c
-F:	xen/*/vm_event.c
-F:	xen/*/monitor.c
+F:	xen/common/vm_event.c
+F:	xen/arch/*/vm_event.c
+F:	xen/common/monitor.c
Quoted 8 lines

MAINTAINERS M: Razvan Cojocaru <[email protected]> · line 414

Quoted 7 lines
MAINTAINERS +3 -0
+F:	xen/arch/*/monitor.c
+F:	xen/arch/x86/hvm/monitor.c
  F:	xen/include/*/mem_access.h
  F:	xen/include/*/monitor.h
+F:	xen/include/asm-x86/hvm/monitor.h
  F:	xen/include/*/vm_event.h
  F:	tools/tests/xen-access

Please at least don't make (un)sorted-ness worse than it was.

Quoted 6 lines

Please at least mention how these were sorted (/unsorted). They are currently sorted, just not alphabetically (common before arch, grouped by file, .c before .h).
How do you want me to sort them? Be specific (and don't make me guess the rules, where is this written? if not written anywhere, how should I adjust CODE_STYLE to fix that?).

I agree that there are many violations of the (alphabetical) sorting we try to aim at. I'm sorry that I didn't say "alphabetical", as I've assumed people contributing would be reading other xen-devel traffic concerning similar areas.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#5 lore raw
Quoted 19 lines · Jan Beulich
Quoted 7 lines
Quoted 1 line
Quoted 1 line · On 01.07.16 at 09:40, <[email protected]> wrote:
Quoted 4 lines · Jan Beulich
Quoted 2 lines
Quoted 1 line
Quoted 1 line · On 01.07.16 at 09:15, <[email protected]> wrote:

Fix vm-event section of MAINTAINERS file.

Would be nice to mention here which commit(s) caused these to go out of sync with the actual code.

Why?

Well, I already said so above - it would be nice (for reference, obviously).

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
MAINTAINERS +2 -2
@@ -402,10 +402,14 @@ M:	Razvan Cojocaru <[email protected]>
   M:	Tamas K Lengyel <[email protected]>
   S:	Supported
   F:	xen/common/mem_access.c
-F:	xen/*/vm_event.c
-F:	xen/*/monitor.c
+F:	xen/common/vm_event.c
+F:	xen/arch/*/vm_event.c
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

MAINTAINERS M: Razvan Cojocaru <[email protected]> · line 414

Quoted 8 lines
MAINTAINERS +4 -0
+F:	xen/common/monitor.c
+F:	xen/arch/*/monitor.c
+F:	xen/arch/x86/hvm/monitor.c
   F:	xen/include/*/mem_access.h
   F:	xen/include/*/monitor.h
+F:	xen/include/asm-x86/hvm/monitor.h
   F:	xen/include/*/vm_event.h
   F:	tools/tests/xen-access

'Culprits':

c/s ca63cee: "monitor: Rename hvm/event to hvm/monitor": adds arch/x86/hvm/monitor.c & asm-x86/hvm/monitor.h
c/s ec89da2: "MAINTAINERS: update monitor/vm_event covered code": I'm guessing it mistakenly (was Acked though) removes both arch/x86/monitor.c & arch/x86/vm_event.c

Will include in v2.

Quoted 7 lines
Quoted 7 lines
Quoted 1 line

Please at least don't make (un)sorted-ness worse than it was.

Please at least mention how these were sorted (/unsorted). They are currently sorted, just not alphabetically (common before arch, grouped by file, .c before .h).
How do you want me to sort them? Be specific (and don't make me guess the rules, where is this written? if not written anywhere, how should I adjust CODE_STYLE to fix that?).

Quoted 6 lines

I agree that there are many violations of the (alphabetical) sorting we try to aim at. I'm sorry that I didn't say "alphabetical", as I've assumed people contributing would be reading other xen-devel traffic concerning similar areas.

Jan

If you aim at that, make (diff-reliant) tools that automatically do this kind of superficial checks and instruct all contributors to run those checks before sending any patches. That would at least avoid this contributor-reviewer back-and-forth for operations of little importance.
Other people's xen-devel contributions updating MAINTAINERS don't much concern me (or other xen-devel contributors) unless the diff in its entirety is of interest. If nobody has time for making such tools, @ least specify in CODE_STYLE these rules or again @ least be polite when telling contributors to follow these guidelines if they're not written anywhere.

A lot of such minor checks can be done automatically, e.g.:
- remind contributor to check whether MAINTAINERS needs updating when his c/s adds new files
- check if entries in MAINTAINERS are (alphabetically) sorted
- check #includes list: alphabetically sorted, not repeating etc.
- validate formatting of source files (4 spaces instead of tabs, no spaces @ end of line, local-variables block @ EOF, #include guards according to full file path)
- even more advanced stuff like: check for unused includes
and even having the ability to make the needed changes automatically. Maybe I'll give a look into that these days.

Anyway, so you want me to sort those strictly alphabetically, i.e. the list would finally look like:

F: tools/tests/xen-access
F: xen/arch/*/monitor.c
F: xen/arch/*/vm_event.c
F: xen/arch/x86/hvm/monitor.c
F: xen/common/mem_access.c
F: xen/common/monitor.c
F: xen/common/vm_event.c
F: xen/include/*/mem_access.h
F: xen/include/*/monitor.h
F: xen/include/*/vm_event.h
F: xen/include/asm-x86/hvm/monitor.h

, yes?

Thanks,
Corneliu.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#6 lore raw
Quoted 4 lines
Quoted 1 line
Quoted 1 line · On 01.07.16 at 11:12, <[email protected]> wrote:

Anyway, so you want me to sort those strictly alphabetically, i.e. the list would finally look like:

Quoted 11 lines

F: tools/tests/xen-access
F: xen/arch/*/monitor.c
F: xen/arch/*/vm_event.c
F: xen/arch/x86/hvm/monitor.c
F: xen/common/mem_access.c
F: xen/common/monitor.c
F: xen/common/vm_event.c
F: xen/include/*/mem_access.h
F: xen/include/*/monitor.h
F: xen/include/*/vm_event.h
F: xen/include/asm-x86/hvm/monitor.h

Yes, thanks.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#7 lore raw

PATCH v2 1/1 vm-event: MAINTAINERS fix

In reply to Corneliu ZUZU

Fix vm-event section of MAINTAINERS file: add back files x86/hvm/monitor.c, asm-x86/hvm/monitor.h, x86/monitor.c, x86/vm_event.c and sort entries alphabetically.

Culprits which got MAINTAINERS out-of-sync:
c/s ca63cee: "monitor: Rename hvm/event to hvm/monitor":
- added x86/hvm/monitor.c & asm-x86/hvm/monitor.h w/o MAINTAINERS update
c/s ec89da2: "MAINTAINERS: update monitor/vm_event covered code":
- (mistakenly?) removed both x86/monitor.c & x86/vm_event.c

---
Changed since v1:
* sort entries alphabetically

---
 MAINTAINERS | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
MAINTAINERS +7 -3
index e91140f..65c2447 100644
@@ -401,13 +401,17 @@ VM EVENT, MEM ACCESS and MONITOR
 M:	Razvan Cojocaru <[email protected]>
 M:	Tamas K Lengyel <[email protected]>
 S:	Supported
+F:	tools/tests/xen-access
+F:	xen/arch/*/monitor.c
+F:	xen/arch/*/vm_event.c
+F:	xen/arch/x86/hvm/monitor.c
 F:	xen/common/mem_access.c
-F:	xen/*/vm_event.c
-F:	xen/*/monitor.c
+F:	xen/common/monitor.c
+F:	xen/common/vm_event.c
 F:	xen/include/*/mem_access.h
 F:	xen/include/*/monitor.h
 F:	xen/include/*/vm_event.h
-F:	tools/tests/xen-access
+F:	xen/include/asm-x86/hvm/monitor.h
 
 VTPM
 M:	Daniel De Graaf <[email protected]>
Signature · 7 lines
2.5.0


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Acked-by on v2 1/1
#8 lore raw
Quoted 10 lines · Corneliu ZUZU

Fix vm-event section of MAINTAINERS file: add back files x86/hvm/monitor.c, asm-x86/hvm/monitor.h, x86/monitor.c, x86/vm_event.c and sort entries alphabetically.

Culprits which got MAINTAINERS out-of-sync:
c/s ca63cee: "monitor: Rename hvm/event to hvm/monitor":
- added x86/hvm/monitor.c & asm-x86/hvm/monitor.h w/o MAINTAINERS update
c/s ec89da2: "MAINTAINERS: update monitor/vm_event covered code":
- (mistakenly?) removed both x86/monitor.c & x86/vm_event.c

Quoted 7 lines

---
Changed since v1:
* sort entries alphabetically

---
 MAINTAINERS | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

A message that is not in the archive (sent off-list or not yet received): CABfawh=V7Twj5u6g-h8_=JC2N=vFA+6LXYKZNKSsikaMru2Uhw@mail.gmail.com

A message that is not in the archive (sent off-list or not yet received): CABfawhkjnm0w7afd8VdXMxzUP7fA8EHdruyN0itSr=0S=Bkw0g@mail.gmail.com

#11 lore raw
Quoted 13 lines · Corneliu ZUZU

Fix vm-event section of MAINTAINERS file.

---
 MAINTAINERS | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
MAINTAINERS +0 -0
index e91140f..7bff878 100644

MAINTAINERS M: Razvan Cojocaru <[email protected] · line 407

Quoted 6 lines
MAINTAINERS +0 -2
@@ -402,10 +402,14 @@ M:        Razvan Cojocaru <[email protected]
 
 M:     Tamas K Lengyel <[email protected]>
 S:     Supported
 F:     xen/common/mem_access.c
-F:     xen/*/vm_event.c
-F:     xen/*/monitor.c

Hm, I would think the above covers all vm_event.c and monitor.c files in all folders already, even in subfolders. Is that not how it's interpeted by the get_maintainers script?

Tamas

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#12 lore raw
Quoted 16 lines
Quoted 1 line
Quoted 1 line · On 01.07.16 at 17:32, <[email protected]> wrote:
Quoted 14 lines · Corneliu ZUZU

Fix vm-event section of MAINTAINERS file.

---
 MAINTAINERS | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
MAINTAINERS +0 -0
index e91140f..7bff878 100644
@@ -402,10 +402,14 @@ M:        Razvan Cojocaru <[email protected] 
 
Quoted 9 lines

MAINTAINERS M: Razvan Cojocaru <[email protected]> · line 406

Quoted 5 lines
MAINTAINERS +0 -2
 M:     Tamas K Lengyel <[email protected]>
 S:     Supported
 F:     xen/common/mem_access.c
-F:     xen/*/vm_event.c
-F:     xen/*/monitor.c

Hm, I would think the above covers all vm_event.c and monitor.c files in all folders already, even in subfolders. Is that not how it's interpeted by the get_maintainers script?

I don't think a * is meant to match a path separator.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#13 lore raw
Quoted 26 lines · Jan Beulich
Quoted 16 lines
Quoted 1 line
Quoted 1 line · On 01.07.16 at 17:32, <[email protected]> wrote:
Quoted 14 lines · Corneliu ZUZU

Fix vm-event section of MAINTAINERS file.

---
 MAINTAINERS | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
MAINTAINERS +0 -0
index e91140f..7bff878 100644
@@ -402,10 +402,14 @@ M:        Razvan Cojocaru <[email protected]
 
Quoted 9 lines

MAINTAINERS M: Razvan Cojocaru <[email protected]> · line 406

Quoted 5 lines
MAINTAINERS +0 -2
 M:     Tamas K Lengyel <[email protected]>
 S:     Supported
 F:     xen/common/mem_access.c
-F:     xen/*/vm_event.c
-F:     xen/*/monitor.c

Hm, I would think the above covers all vm_event.c and monitor.c files in all folders already, even in subfolders. Is that not how it's interpeted by the get_maintainers script?

Quoted 2 lines

I don't think a * is meant to match a path separator.

Ah indeed, I though it does when I made this change. It would be easier if it did so we wouldn't have to add each folder here separately, but anyhow:

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel