[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 09/11] migration: provide migrate_caps_check(
From: |
Juan Quintela |
Subject: |
Re: [Qemu-devel] [PATCH v2 09/11] migration: provide migrate_caps_check() |
Date: |
Mon, 17 Jul 2017 21:03:47 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Peter Xu <address@hidden> wrote:
> Abstract helper function to check migration capabilities (from the old
> qmp_migrate_set_capabilities). Prepare to be used somewhere else.
>
> There is side effect on the change: when applying the capabilities, we
> were skipping the invalid ones, but still applying the valid ones (if
> they are provided in the same QMP request). After this refactoring,
> we'll ignore all the capabilities if we detected invalid setup along the
> way. However, I don't think it is a problem since general users should
> not provide anything invalid after all.
>
> Signed-off-by: Peter Xu <address@hidden>
Reviewed-by: Juan Quintela <address@hidden>
I think that the "caveat" that we used to set the valid capabilities in
one message is just undefined behaviour. I preffer the new semmantics
anyways.
- Re: [Qemu-devel] [PATCH v2 06/11] migration: provide migrate_params_apply(), (continued)
[Qemu-devel] [PATCH v2 08/11] migration: remove check against colo support, Peter Xu, 2017/07/17
[Qemu-devel] [PATCH v2 09/11] migration: provide migrate_caps_check(), Peter Xu, 2017/07/17
- Re: [Qemu-devel] [PATCH v2 09/11] migration: provide migrate_caps_check(),
Juan Quintela <=
[Qemu-devel] [PATCH v2 10/11] migration: provide migrate_cap_add(), Peter Xu, 2017/07/17
[Qemu-devel] [PATCH v2 11/11] migration: check global caps for validity, Peter Xu, 2017/07/17