vhost: Add stubs for the migration state transfer interface
authorLaurent Vivier <lvivier@redhat.com>
Wed, 15 Jan 2025 13:50:43 +0000 (14:50 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 15 Jan 2025 18:07:32 +0000 (13:07 -0500)
commit3f65357313e0f928e0bd3ff868b705855d0405bc
treeb501deaca44073c725a1bd6844846e167bb239e6
parent1ce979e7269a34d19ea1a65808df014d8b2acbf6
vhost: Add stubs for the migration state transfer interface

Migration state transfer interface is only used by vhost-user-fs,
so the interface needs to be defined only when vhost is built.

But I need to use this interface with virtio-net and vhost is not always
enabled, and to avoid undefined reference error during build, define stub
functions for vhost_supports_device_state(), vhost_save_backend_state() and
vhost_load_backend_state().

Cc: Hanna Czenczek <hreitz@redhat.com>
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Message-Id: <20250115135044.799698-2-lvivier@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/hw/virtio/vhost.h