vm_event: fix rc check for uninitialized ring
authorJuergen Gross <jgross@suse.com>
Mon, 27 May 2019 10:26:20 +0000 (12:26 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 27 May 2019 10:26:20 +0000 (12:26 +0200)
commit81646cea826fa322831fffb43f81e7e0866dc124
tree82df52ce0c9f5422155b9b1269504fb9e90a8311
parent441f61ca1d63c120a9e44d41ca189a098e337a5a
vm_event: fix rc check for uninitialized ring

vm_event_claim_slot() returns -EOPNOTSUPP for an uninitialized ring
since commit 15e4dd5e866b43bbc ("common/vm_event: Initialize vm_event
lists on domain creation"), but the callers test for -ENOSYS.

Correct the callers.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
xen/arch/x86/mm/p2m.c
xen/common/monitor.c
xen/common/vm_event.c