accel/kvm: Convert to ram_block_discard_disable()
commit956b109fe305228fb2bca32e71356823257318c9
authorDavid Hildenbrand <david@redhat.com>
Fri, 26 Jun 2020 07:22:31 +0000 (26 09:22 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 2 Jul 2020 09:54:59 +0000 (2 05:54 -0400)
tree5c47eab892168037a525ee59c4682c1fd6f73519
parentaff92b828647839b956dfa647a18b3ce10058e6a
accel/kvm: Convert to ram_block_discard_disable()

Discarding memory does not work as expected. At the time this is called,
we cannot have anyone active that relies on discards to work properly.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20200626072248.78761-5-david@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
accel/kvm/kvm-all.c