[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 51/51] FIXME vhost: add more stubs
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH 51/51] FIXME vhost: add more stubs |
Date: |
Thu, 7 Feb 2019 18:57:34 +0100 |
Due to the dependency of net/ against hw/net/, it is not possible
to compile out hw/net/vhost_net.c for now. Add more stubs to
allow it to compile when hw/net/vhost.c is missing.
(To be re-evaluated after rebase on top of the revamped vhost_net configury).
Signed-off-by: Paolo Bonzini <address@hidden>
---
hw/virtio/vhost-stub.c | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
diff --git a/hw/virtio/vhost-stub.c b/hw/virtio/vhost-stub.c
index 049089b..ef8e54d 100644
--- a/hw/virtio/vhost-stub.c
+++ b/hw/virtio/vhost-stub.c
@@ -15,3 +15,61 @@ VhostUserState *vhost_user_init(void)
void vhost_user_cleanup(VhostUserState *user)
{
}
+
+int vhost_dev_init(struct vhost_dev *hdev, void *opaque,
+ VhostBackendType backend_type, uint32_t busyloop_timeout)
+{
+ return -ENODEV;
+}
+
+void vhost_dev_cleanup(struct vhost_dev *hdev)
+{
+}
+
+int vhost_dev_start(struct vhost_dev *hdev, VirtIODevice *vdev)
+{
+ abort();
+}
+
+void vhost_dev_stop(struct vhost_dev *hdev, VirtIODevice *vdev)
+{
+}
+
+int vhost_dev_enable_notifiers(struct vhost_dev *hdev, VirtIODevice *vdev)
+{
+ abort();
+}
+
+void vhost_dev_disable_notifiers(struct vhost_dev *hdev, VirtIODevice *vdev)
+{
+ abort();
+}
+
+int vhost_net_set_backend(struct vhost_dev *hdev,
+ struct vhost_vring_file *file)
+{
+ abort();
+}
+
+uint64_t vhost_get_features(struct vhost_dev *hdev, const int *feature_bits,
+ uint64_t features)
+{
+ abort();
+}
+
+void vhost_ack_features(struct vhost_dev *hdev, const int *feature_bits,
+ uint64_t features)
+{
+ abort();
+}
+
+bool vhost_virtqueue_pending(struct vhost_dev *hdev, int n)
+{
+ abort();
+}
+
+void vhost_virtqueue_mask(struct vhost_dev *hdev, VirtIODevice *vdev, int n,
+ bool mask)
+{
+ abort();
+}
--
1.8.3.1
- [Qemu-devel] [PATCH 43/51] or1k-softmmu.mak: express dependencies with Kconfig, (continued)
- [Qemu-devel] [PATCH 43/51] or1k-softmmu.mak: express dependencies with Kconfig, Paolo Bonzini, 2019/02/07
- [Qemu-devel] [PATCH 36/51] cris-softmmu.mak: express dependencies with Kconfig, Paolo Bonzini, 2019/02/07
- [Qemu-devel] [PATCH 37/51] hppa-softmmu.mak: express dependencies with Kconfig, Paolo Bonzini, 2019/02/07
- [Qemu-devel] [PATCH 45/51] sh4-softmmu.mak: express dependencies with Kconfig, Paolo Bonzini, 2019/02/07
- [Qemu-devel] [PATCH 47/51] sparc64-softmmu.mak: express dependencies with Kconfig, Paolo Bonzini, 2019/02/07
- [Qemu-devel] [PATCH 44/51] s390x: express dependencies with Kconfig, Paolo Bonzini, 2019/02/07
- [Qemu-devel] [PATCH 41/51] moxie-softmmu.mak: express dependencies with Kconfig, Paolo Bonzini, 2019/02/07
- [Qemu-devel] [PATCH 40/51] microblaze-softmmu.mak: express dependencies with Kconfig, Paolo Bonzini, 2019/02/07
- [Qemu-devel] [PATCH 49/51] xtensa-softmmu.mak: express dependencies with Kconfig, Paolo Bonzini, 2019/02/07
- [Qemu-devel] [PATCH 51/51] FIXME vhost: add more stubs,
Paolo Bonzini <=
- [Qemu-devel] [PATCH 42/51] nios2-softmmu.mak: express dependencies with Kconfig, Paolo Bonzini, 2019/02/07
- [Qemu-devel] [PATCH 48/51] unicore32-softmmu.mak: express dependencies with Kconfig, Paolo Bonzini, 2019/02/07
- [Qemu-devel] [PATCH 50/51] .travis.yml: test that no-default-device builds do not regress, Paolo Bonzini, 2019/02/07
- [Qemu-devel] [PATCH 46/51] sparc-softmmu.mak: express dependencies with Kconfig, Paolo Bonzini, 2019/02/07
- Re: [Qemu-devel] [PATCH v6 00/51] Support Kconfig in QEMU, no-reply, 2019/02/07
- Re: [Qemu-devel] [PATCH v6 00/51] Support Kconfig in QEMU, no-reply, 2019/02/07
- Re: [Qemu-devel] [PATCH v6 00/51] Support Kconfig in QEMU, Michael S. Tsirkin, 2019/02/07