MAINTAINERS: Make section QOM cover hw/core/*bus.c as well
[qemu/armbru.git] / include / migration / blocker.h
blobacd27018e940eb97867bf84222ea37f1da4166f4
1 /*
2 * QEMU migration blockers
4 * Copyright IBM, Corp. 2008
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
9 * This work is licensed under the terms of the GNU GPL, version 2. See
10 * the COPYING file in the top-level directory.
14 #ifndef MIGRATION_BLOCKER_H
15 #define MIGRATION_BLOCKER_H
17 /**
18 * @migrate_add_blocker - prevent migration from proceeding
20 * @reason - an error to be returned whenever migration is attempted
22 * @errp - [out] The reason (if any) we cannot block migration right now.
24 * @returns - 0 on success, -EBUSY/-EACCES on failure, with errp set.
26 int migrate_add_blocker(Error *reason, Error **errp);
28 /**
29 * @migrate_del_blocker - remove a blocking error from migration
31 * @reason - the error blocking migration
33 void migrate_del_blocker(Error *reason);
35 #endif