On 23/01/2023 2:27 pm, Jan Beulich wrote: > The types p2m_is_readonly() checks for aren't applicable to PV; > specifically get_gfn() won't ever return any such type for PV domains. > Extend the HVM-conditional block of code, also past the subsequent HVM- > only if(). This way the "emulate_readonly" also becomes unreachable when > !HVM, so move the conditional there upwards as well. Noticing the > earlier shadow_mode_refcounts() check, move it up even further, right > after that check. With that, the "done" label also needs marking as > potentially unused. > > Signed-off-by: Jan Beulich <jbeul...@suse.com>
Acked-by: Andrew Cooper <andrew.coop...@citrix.com>