Re: [PATCH 6/8] x86/shadow: adjust and move sh_type_to_size[]

2022-12-22 Thread Jan Beulich
On 21.12.2022 19:58, Andrew Cooper wrote: > On 21/12/2022 1:27 pm, Jan Beulich wrote: >> Drop the SH_type_none entry - there are no allocation attempts with >> this type, and there also shouldn't be any. Adjust the shadow_size() >> alternative path to match that change. Also generalize two related

Re: [PATCH 6/8] x86/shadow: adjust and move sh_type_to_size[]

2022-12-21 Thread Andrew Cooper
On 21/12/2022 1:27 pm, Jan Beulich wrote: > Drop the SH_type_none entry - there are no allocation attempts with > this type, and there also shouldn't be any. Adjust the shadow_size() > alternative path to match that change. Also generalize two related > assertions. > > While there move the entire

[PATCH 6/8] x86/shadow: adjust and move sh_type_to_size[]

2022-12-21 Thread Jan Beulich
Drop the SH_type_none entry - there are no allocation attempts with this type, and there also shouldn't be any. Adjust the shadow_size() alternative path to match that change. Also generalize two related assertions. While there move the entire table and the respective part of the comment there to