Re: [PATCH v2 02/12] x86/p2m: {,un}map_mmio_regions() are HVM-only

2021-04-29 Thread Jan Beulich
On 29.04.2021 16:48, Roger Pau Monné wrote: > On Mon, Apr 12, 2021 at 04:06:34PM +0200, Jan Beulich wrote: >> Mirror the "translated" check the functions do to do_domctl(), allowing >> the calls to be DCEd by the compiler. Add ASSERT_UNREACHABLE() to the >> original checks. >> >> Also arrange for {

Re: [PATCH v2 02/12] x86/p2m: {,un}map_mmio_regions() are HVM-only

2021-04-29 Thread Roger Pau Monné
On Mon, Apr 12, 2021 at 04:06:34PM +0200, Jan Beulich wrote: > Mirror the "translated" check the functions do to do_domctl(), allowing > the calls to be DCEd by the compiler. Add ASSERT_UNREACHABLE() to the > original checks. > > Also arrange for {set,clear}_mmio_p2m_entry() and > {set,clear}_iden

[PATCH v2 02/12] x86/p2m: {,un}map_mmio_regions() are HVM-only

2021-04-12 Thread Jan Beulich
Mirror the "translated" check the functions do to do_domctl(), allowing the calls to be DCEd by the compiler. Add ASSERT_UNREACHABLE() to the original checks. Also arrange for {set,clear}_mmio_p2m_entry() and {set,clear}_identity_p2m_entry() to respectively live next to each other, such that clear