OSDN Git Service

configure: Make only once with pseudo-"in source tree" builds
[qmiga/qemu.git] / net / vhost-user-stub.c
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
11 #include "qemu/osdep.h"
12 #include "clients.h"
13 #include "net/vhost_net.h"
14 #include "net/vhost-user.h"
15 #include "qemu/error-report.h"
16 #include "qapi/error.h"
17
18 int net_init_vhost_user(const Netdev *netdev, const char *name,
19                         NetClientState *peer, Error **errp)
20 {
21     error_setg(errp, "vhost-user requires frontend driver virtio-net-*");
22     return -1;
23 }