RFC Change parts of the shadow interface to be domain based
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest20 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/20 | x86/shadow: Whitespace cleanupxen/ xen/ xen/ +2 more | +722 | 0 replies | |
| 2/20 | x86/shadow: Rename hash_foreach() to hash_vcpu_foreach()xen/ | +15 | 0 replies | |
| 3/20 | x86/shadow: Introduce 'd' pointers and clean up use of 'v->domain'xen/ xen/ xen/ | +116 | 0 replies | |
| 4/20 | x86/shadow: Only apply shadow heuristics when in guest contextxen/ xen/ | +22 | 3 replies | |
| 5/20 | x86/shadow: Alter shadow_hash_{lookup, insert, delete}() to take a domainxen/ xen/ xen/ | +20 | 0 replies | |
| 6/20 | x86/shadow: Alter *_shadow_status() and make_fl1_shadow() to take a domainxen/ | +48 | 0 replies | |
| 7/20 | x86/shadow: Alter sh_type_{is_pinnable, has_up_pointer}() to take a domainxen/ xen/ xen/ | +19 | 0 replies | |
| 8/20 | x86/shadow: Alter OOS functions to take a domainxen/ xen/ xen/ | +27 | 0 replies | |
| 9/20 | x86/shadow: Alter shadow_{pro, de}mote() to take a domainxen/ xen/ xen/ | +9 | 0 replies | |
| 10/20 | x86/shadow: Alter sh_put_ref() and shadow destroy functions to take a domainxen/ xen/ xen/ +1 more | +30 | 0 replies | |
| 11/20 | x86/shadow: Alter sh_get_ref() and sh_{, un}pin() to take a domainxen/ xen/ xen/ | +15 | 0 replies | |
| 12/20 | x86/shadow: Alter shadow_set_l?e() to take a domainxen/ | +35 | 0 replies | |
| 13/20 | x86/shadow: Alter sh_{clear_shadow_entry, remove_shadow_via_pointer}() to take a domainxen/ xen/ xen/ | +7 | 0 replies | |
| 14/20 | x86/shadow: Alter sh_remove_l?_shadow() to take a domainxen/ xen/ xen/ | +56 | 0 replies | |
| 15/20 | x86/shadow: Alter shadow_unhook{_???}_mappings() to take a domainxen/ xen/ xen/ +1 more | +15 | 0 replies | |
| 16/20 | x86/shadow: Alter sh_rm_write_access_from_???() to take a domainxen/ xen/ xen/ +1 more | +15 | 0 replies | |
| 17/20 | x86/shadow: Alter sh_remove_{all_}shadows{, _and_parents}() to take a domainxen/ xen/ xen/ +2 more | +23 | 0 replies | |
| 18/20 | x86/shadow: Alter sh_{remove_all_mappings, rm_mappings_from_l1}() to take a domainxen/ xen/ xen/ | +8 | 0 replies | |
| 19/20 | x86/shadow: Alter sh_remove_write_access to take a domainxen/ xen/ xen/ | +10 | 0 replies | |
| 20/20 | x86/shadow: Cleanup of vcpu handlingxen/ | +10 | 0 replies |
Reviews trailers per patch
1 of 20 patches has a Reviewed-by or Acked-by.
| Patch | Tim Deegan |
|---|---|
| 1/20 | |
| 2/20 | |
| 3/20 | |
| 4/20 | R-b |
| 5/20 | |
| 6/20 | |
| 7/20 | |
| 8/20 | |
| 9/20 | |
| 10/20 | |
| 11/20 | |
| 12/20 | |
| 13/20 | |
| 14/20 | |
| 15/20 | |
| 16/20 | |
| 17/20 | |
| 18/20 | |
| 19/20 | |
| 20/20 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH RFC 00/20] Change parts of the shadow interface to be domain based
The purpose of this series is to prevent toolstack entry points into the shadow code from passing d->vcpu[0] for actions which are inherenly domain wide. It also fixes the fact that shadow heuristics were being applied to vcpu 0 for toolstack-initiated actions.
This series is composed mostly of mechanical changes. The only patches which have a practical difference on shadow execution are patches 4 and 20
The entire series has been compile tested at each changeset, for both shadow-paging=y and n. It has also been tested internally in XenServer, but appears to have gotten caught up in some collateral damage from an unrelated merge. I am rerunning the tests.
This series can be found as in the shadow-dom-v1 branch on
git://xenbits.xen.org/people/andrewcoop/xen.git
Andrew Cooper (20):
x86/shadow: Whitespace cleanup
x86/shadow: Rename hash_foreach() to hash_vcpu_foreach()
x86/shadow: Introduce 'd' pointers and clean up use of 'v->domain' x86/shadow: Only apply shadow heuristics when in guest context x86/shadow: Alter shadow_hash_{lookup,insert,delete}() to take a domain x86/shadow: Alter *_shadow_status() and make_fl1_shadow() to take a domain x86/shadow: Alter sh_type_{is_pinnable,has_up_pointer}() to take a domain x86/shadow: Alter OOS functions to take a domain
x86/shadow: Alter shadow_{pro,de}mote() to take a domain
x86/shadow: Alter sh_put_ref() and shadow destroy functions to take a domain x86/shadow: Alter sh_get_ref() and sh_{,un}pin() to take a domain x86/shadow: Alter shadow_set_l?e() to take a domain
x86/shadow: Alter sh_{clear_shadow_entry,remove_shadow_via_pointer}() to take a domain x86/shadow: Alter sh_remove_l?_shadow() to take a domain
x86/shadow: Alter shadow_unhook{_???}_mappings() to take a domain x86/shadow: Alter sh_rm_write_access_from_???() to take a domain x86/shadow: Alter sh_remove_{all_}shadows{,_and_parents}() to take a domain x86/shadow: Alter sh_{remove_all_mappings,rm_mappings_from_l1}() to take a domain x86/shadow: Alter sh_remove_write_access to take a domain
x86/shadow: Cleanup of vcpu handling
xen/arch/x86/hvm/hvm.c | 2 +- xen/arch/x86/mm.c | 4 +- xen/arch/x86/mm/shadow/common.c | 769 +++++++++++++------------ xen/arch/x86/mm/shadow/multi.c | 1180 +++++++++++++++++++------------------- xen/arch/x86/mm/shadow/multi.h | 64 +-- xen/arch/x86/mm/shadow/private.h | 154 ++--- xen/arch/x86/mm/shadow/types.h | 42 +- xen/include/asm-x86/shadow.h | 8 +- 8 files changed, 1140 insertions(+), 1083 deletions(-)