diff options
author | Vladislav Yaroshchuk <vladislav.yaroshchuk@jetbrains.com> | 2022-03-17 20:28:34 +0300 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2022-05-17 16:48:23 +0800 |
commit | 81ad2964e93848fc0998145043c395dea67f00da (patch) | |
tree | ae0e9e4700702879e949b385fb040451aff43f0d /net/vmnet-shared.c | |
parent | e2c1d78da3223e8b39c14cce3da9e62655c1ddbb (diff) | |
download | qemu-81ad2964e93848fc0998145043c395dea67f00da.zip qemu-81ad2964e93848fc0998145043c395dea67f00da.tar.gz qemu-81ad2964e93848fc0998145043c395dea67f00da.tar.bz2 |
net/vmnet: add vmnet backends to qapi/net
Create separate netdevs for each vmnet operating mode:
- vmnet-host
- vmnet-shared
- vmnet-bridged
Reviewed-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Tested-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Acked-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Vladislav Yaroshchuk <Vladislav.Yaroshchuk@jetbrains.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net/vmnet-shared.c')
-rw-r--r-- | net/vmnet-shared.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/net/vmnet-shared.c b/net/vmnet-shared.c new file mode 100644 index 0000000..6dfb133 --- /dev/null +++ b/net/vmnet-shared.c @@ -0,0 +1,25 @@ +/* + * vmnet-shared.c + * + * Copyright(c) 2022 Vladislav Yaroshchuk <vladislav.yaroshchuk@jetbrains.com> + * + * This work is licensed under the terms of the GNU GPL, version 2 or later. + * See the COPYING file in the top-level directory. + * + */ + +#include "qemu/osdep.h" +#include "qapi/qapi-types-net.h" +#include "vmnet_int.h" +#include "clients.h" +#include "qemu/error-report.h" +#include "qapi/error.h" + +#include <vmnet/vmnet.h> + +int net_init_vmnet_shared(const Netdev *netdev, const char *name, + NetClientState *peer, Error **errp) +{ + error_setg(errp, "vmnet-shared is not implemented yet"); + return -1; +} |