On Mon, Apr 12, 2021 at 04:05:41PM +0200, Jan Beulich wrote: > Extend a respective #ifdef from inside set_typed_p2m_entry() to around > all three functions. Add ASSERT_UNREACHABLE() to the latter one's safety > check path.
Wouldn't it be better to also move the prototypes in p2m.h into a CONFIG_HVM guarded region, so that it fails at compile time rather than link time? Thanks, Roger.