migration: Test for disabled features on reception
commitedc60127e4acbcf1a028d16c2ed1b3fd3e6433e4
authorJuan Quintela <quintela@redhat.com>
Wed, 2 Nov 2016 11:40:46 +0000 (2 12:40 +0100)
committerJuan Quintela <quintela@redhat.com>
Wed, 14 Jun 2017 09:11:06 +0000 (14 11:11 +0200)
tree1f35cc431106647f13cbced9a9061739bba037d7
parent1adc1ceef76dd85d5d2bac073d6844040f60000e
migration: Test for disabled features on reception

Right now, if we receive a compressed page while this features are
disabled, Bad Things (TM) can happen.  Just add a test for them.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
--

I had XBZRLE here also, but it don't need extra resources on
destination, only on source.  Additionally libvirt don't enable it on
destination, so don't put it here.

- initialize invalid_flags at declaration time.
- remove extra space (peter)
migration/ram.c