Re: [PATCH] x86/mem_sharing: Release domain if we are not able to enable memory sharing

2023-11-26 Thread Tamas K Lengyel
On Wed, Nov 22, 2023 at 2:42 PM Andrew Cooper wrote: > > On 22/11/2023 4:39 pm, Frediano Ziglio wrote: > > In case it's not possible to enable memory sharing (mem_sharing_control > > fails) we just return the error code without releasing the domain > > acquired some lines above by rcu_lock_live_re

Re: [PATCH] x86/mem_sharing: Release domain if we are not able to enable memory sharing

2023-11-22 Thread Andrew Cooper
On 22/11/2023 4:39 pm, Frediano Ziglio wrote: > In case it's not possible to enable memory sharing (mem_sharing_control > fails) we just return the error code without releasing the domain > acquired some lines above by rcu_lock_live_remote_domain_by_id. Fixes: 72f8d45d69b8 ("x86/mem_sharing: enabl

[PATCH] x86/mem_sharing: Release domain if we are not able to enable memory sharing

2023-11-22 Thread Frediano Ziglio
In case it's not possible to enable memory sharing (mem_sharing_control fails) we just return the error code without releasing the domain acquired some lines above by rcu_lock_live_remote_domain_by_id. Signed-off-by: Frediano Ziglio -- I didn't manage to check the change, I was just looking at th