x86/hvm: Fix altp2m_vcpu_enable_notify error handling
authorAdrian Pop <apop@bitdefender.com>
Wed, 15 Nov 2017 13:47:59 +0000 (15:47 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 16 Nov 2017 17:25:59 +0000 (17:25 +0000)
commiteb0660c6950e08e44fdfeca3e29320382e2a1554
treef9cc94bc796613314f949e69ef9f16b8759a04ce
parentd20daf4294adbdb9316850566013edb98db7bfbc
x86/hvm: Fix altp2m_vcpu_enable_notify error handling

The altp2m_vcpu_enable_notify subop handler might skip calling
rcu_unlock_domain() after rcu_lock_current_domain().  Albeit since both
rcu functions are no-ops when run on the current domain, this doesn't
really have repercussions.

The second change is adding a missing break that would have potentially
enabled #VE for the current domain even if it had intended to enable it
for another one (not a supported functionality).

Signed-off-by: Adrian Pop <apop@bitdefender.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Julien Grall <julien.grall@linaro.org>
xen/arch/x86/hvm/hvm.c