Re: [PATCH v2 2/3] x86/shadow: mark more of sh_page_fault() HVM-only

2023-02-24 Thread Andrew Cooper
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

[PATCH v2 2/3] x86/shadow: mark more of sh_page_fault() HVM-only

2023-01-23 Thread Jan Beulich
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