mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
virtio-crypto-pci: add virtio crypto pci support
This patch adds virtio-crypto-pci, which is the pci proxy for the virtio crypto device. Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
ea4d8ac2da
commit
b307d308c9
3 changed files with 93 additions and 0 deletions
|
@ -25,6 +25,8 @@
|
|||
#include "hw/virtio/virtio-bus.h"
|
||||
#include "hw/virtio/virtio-input.h"
|
||||
#include "hw/virtio/virtio-gpu.h"
|
||||
#include "hw/virtio/virtio-crypto.h"
|
||||
|
||||
#ifdef CONFIG_VIRTFS
|
||||
#include "hw/9pfs/virtio-9p.h"
|
||||
#endif
|
||||
|
@ -48,6 +50,7 @@ typedef struct VirtIOInputHIDPCI VirtIOInputHIDPCI;
|
|||
typedef struct VirtIOInputHostPCI VirtIOInputHostPCI;
|
||||
typedef struct VirtIOGPUPCI VirtIOGPUPCI;
|
||||
typedef struct VHostVSockPCI VHostVSockPCI;
|
||||
typedef struct VirtIOCryptoPCI VirtIOCryptoPCI;
|
||||
|
||||
/* virtio-pci-bus */
|
||||
|
||||
|
@ -350,6 +353,18 @@ struct VHostVSockPCI {
|
|||
};
|
||||
#endif
|
||||
|
||||
/*
|
||||
* virtio-crypto-pci: This extends VirtioPCIProxy.
|
||||
*/
|
||||
#define TYPE_VIRTIO_CRYPTO_PCI "virtio-crypto-pci"
|
||||
#define VIRTIO_CRYPTO_PCI(obj) \
|
||||
OBJECT_CHECK(VirtIOCryptoPCI, (obj), TYPE_VIRTIO_CRYPTO_PCI)
|
||||
|
||||
struct VirtIOCryptoPCI {
|
||||
VirtIOPCIProxy parent_obj;
|
||||
VirtIOCrypto vdev;
|
||||
};
|
||||
|
||||
/* Virtio ABI version, if we increment this, we break the guest driver. */
|
||||
#define VIRTIO_PCI_ABI_VERSION 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue