x86/altp2m: don't consider "active" when enabling failed
authorJan Beulich <jbeulich@suse.com>
Tue, 19 Oct 2021 08:05:10 +0000 (10:05 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 19 Oct 2021 08:05:10 +0000 (10:05 +0200)
commit5e97b97bc254b0ee23f701a4d5a317853136d288
treeb90f3744a064466f0045ed5ab0aab264787c3194
parentd6e38eea2d806c53d976603717aebf6e5de30a1e
x86/altp2m: don't consider "active" when enabling failed

We should not rely on guests to not use altp2m after reporting failure
of HVMOP_altp2m_set_domain_state to them. Set "active" back to false in
this case.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Tamas K Lengyel <tamas@tklengyel.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/hvm/hvm.c