vhost-vdpa-stub.c 518 B

123456789101112131415161718192021
  1. /*
  2. * vhost-vdpa-stub.c
  3. *
  4. * Copyright (c) 2022 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-vdpa.h"
  13. #include "qapi/error.h"
  14. int net_init_vhost_vdpa(const Netdev *netdev, const char *name,
  15. NetClientState *peer, Error **errp)
  16. {
  17. error_setg(errp, "vhost-vdpa requires frontend driver virtio-net-*");
  18. return -1;
  19. }