vhost-user-stub.c 576 B

1234567891011121314151617181920212223
  1. /*
  2. * vhost-user-stub.c
  3. *
  4. * Copyright (c) 2018 Red Hat, Inc.
  5. *
  6. * This work is licensed under the terms of the GNU GPL, version 2 or later.
  7. * See the COPYING file in the top-level directory.
  8. *
  9. */
  10. #include "qemu/osdep.h"
  11. #include "clients.h"
  12. #include "net/vhost_net.h"
  13. #include "net/vhost-user.h"
  14. #include "qemu/error-report.h"
  15. #include "qapi/error.h"
  16. int net_init_vhost_user(const Netdev *netdev, const char *name,
  17. NetClientState *peer, Error **errp)
  18. {
  19. error_setg(errp, "vhost-user requires frontend driver virtio-net-*");
  20. return -1;
  21. }