4 * Copyright (c) 2018 Red Hat, Inc.
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.
11 #include "qemu/osdep.h"
13 #include "net/vhost_net.h"
14 #include "net/vhost-user.h"
15 #include "qemu/error-report.h"
16 #include "qapi/error.h"
18 int net_init_vhost_user(const Netdev
*netdev
, const char *name
,
19 NetClientState
*peer
, Error
**errp
)
21 error_setg(errp
, "vhost-user requires frontend driver virtio-net-*");