]> git.proxmox.com Git - mirror_qemu.git/blame - include/sysemu/cryptodev-vhost-user.h
Merge remote-tracking branch 'remotes/jsnow-gitlab/tags/python-pull-request' into...
[mirror_qemu.git] / include / sysemu / cryptodev-vhost-user.h
CommitLineData
5da73dab
GA
1/*
2 * QEMU Crypto Device Common Vhost User Implement
3 *
4 * Copyright (c) 2016 HUAWEI TECHNOLOGIES CO., LTD.
5 *
6 * Authors:
7 * Gonglei <arei.gonglei@huawei.com>
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
0dda001b 12 * version 2.1 of the License, or (at your option) any later version.
5da73dab
GA
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
21 *
22 */
ec150c7e 23
5da73dab
GA
24#ifndef CRYPTODEV_VHOST_USER_H
25#define CRYPTODEV_VHOST_USER_H
26
ec150c7e
MA
27#include "sysemu/cryptodev-vhost.h"
28
0a9b9be9
GA
29#define VHOST_USER_MAX_AUTH_KEY_LEN 512
30#define VHOST_USER_MAX_CIPHER_KEY_LEN 64
31
5da73dab
GA
32
33/**
34 * cryptodev_vhost_user_get_vhost:
35 * @cc: the client object for each queue
36 * @b: the cryptodev backend common vhost object
37 * @queue: the queue index
38 *
39 * Gets a new cryptodev backend common vhost object based on
40 * @b and @queue
41 *
42 * Returns: the cryptodev backend common vhost object
43 */
44CryptoDevBackendVhost *
45cryptodev_vhost_user_get_vhost(
46 CryptoDevBackendClient *cc,
47 CryptoDevBackend *b,
48 uint16_t queue);
49
50#endif /* CRYPTODEV_VHOST_USER_H */