kvm: Use inhibit to prevent ballooning without synchronous mmu
commitf59489423ab79852e98d9b3025b7d99ba8da584f
authorAlex Williamson <alex.williamson@redhat.com>
Fri, 17 Aug 2018 15:27:15 +0000 (17 09:27 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 17 Aug 2018 15:27:15 +0000 (17 09:27 -0600)
tree39f33f51aba2d7e59d561314c2d8e751b8483a58
parent01ccbec7bdf6f89f1b7d46dda05e4c1fd2dd5ade
kvm: Use inhibit to prevent ballooning without synchronous mmu

Remove KVM specific tests in balloon_page(), instead marking
ballooning as inhibited without KVM_CAP_SYNC_MMU support.

Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
accel/kvm/kvm-all.c
hw/virtio/virtio-balloon.c