On 24.04.2024 11:34, Roger Pau Monné wrote: > On Tue, Apr 23, 2024 at 04:32:32PM +0200, Jan Beulich wrote: >> ... thanks to paging_vcpu_init() being part of vCPU creation. Further >> if paging is enabled on a domain, it's also guaranteed to be either HAP >> or shadow. Drop respective unnecessary (parts of) conditionals. > > Is there some commit that changed when arch.paging.mode gets set, so > that this is actually safe to do now, but not when the code in > paging_dump_vcpu_info() was introduced? > > I get the feeling we want to reference some change here in order to > explain why is now always guaranteed to be set.
I was indeed meaning to, but when I found the same even in 3.2, I stopped searching further. >> Signed-off-by: Jan Beulich <jbeul...@suse.com> > > Acked-by: Roger Pau Monné <roger....@citrix.com> Thanks. Jan