mirror of
https://github.com/qemu/qemu.git
synced 2025-08-15 05:06:56 +00:00
virtio: split virtio crypto bits from virtio-pci.h
Reviewed-by: Laurent Vivier <lvivier@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
7ecb381fcf
commit
7c8681d0d6
@ -19,6 +19,20 @@
|
|||||||
#include "hw/virtio/virtio-crypto.h"
|
#include "hw/virtio/virtio-crypto.h"
|
||||||
#include "qapi/error.h"
|
#include "qapi/error.h"
|
||||||
|
|
||||||
|
typedef struct VirtIOCryptoPCI VirtIOCryptoPCI;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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;
|
||||||
|
};
|
||||||
|
|
||||||
static Property virtio_crypto_pci_properties[] = {
|
static Property virtio_crypto_pci_properties[] = {
|
||||||
DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags,
|
DEFINE_PROP_BIT("ioeventfd", VirtIOPCIProxy, flags,
|
||||||
VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true),
|
VIRTIO_PCI_FLAG_USE_IOEVENTFD_BIT, true),
|
||||||
|
@ -17,10 +17,8 @@
|
|||||||
|
|
||||||
#include "hw/pci/msi.h"
|
#include "hw/pci/msi.h"
|
||||||
#include "hw/virtio/virtio-bus.h"
|
#include "hw/virtio/virtio-bus.h"
|
||||||
#include "hw/virtio/virtio-crypto.h"
|
|
||||||
|
|
||||||
typedef struct VirtIOPCIProxy VirtIOPCIProxy;
|
typedef struct VirtIOPCIProxy VirtIOPCIProxy;
|
||||||
typedef struct VirtIOCryptoPCI VirtIOCryptoPCI;
|
|
||||||
|
|
||||||
/* virtio-pci-bus */
|
/* virtio-pci-bus */
|
||||||
|
|
||||||
@ -182,18 +180,6 @@ static inline void virtio_pci_disable_modern(VirtIOPCIProxy *proxy)
|
|||||||
*/
|
*/
|
||||||
#define TYPE_VIRTIO_INPUT_PCI "virtio-input-pci"
|
#define TYPE_VIRTIO_INPUT_PCI "virtio-input-pci"
|
||||||
|
|
||||||
/*
|
|
||||||
* 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. */
|
/* Virtio ABI version, if we increment this, we break the guest driver. */
|
||||||
#define VIRTIO_PCI_ABI_VERSION 0
|
#define VIRTIO_PCI_ABI_VERSION 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user