mirror of
https://github.com/qemu/qemu.git
synced 2024-12-14 15:03:33 +08:00
d08f68b8e8
Implement the VIRTIO 1.0 virtio-pci interface. The main change here is that the register layout is no longer a fixed layout in BAR 0. Instead we have to iterate of PCI Capabilities to find descriptions of where various registers are located. The vring registers are also more fine-grained, allowing for more flexible vring layouts, but we don't take advantage of that. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Sergio Lopez <slp@redhat.com> Message-Id: <20191023100425.12168-17-stefanha@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Thomas Huth <thuth@redhat.com>
18 lines
414 B
C
18 lines
414 B
C
/*
|
|
* libqos virtio PCI VIRTIO 1.0 definitions
|
|
*
|
|
* Copyright (c) 2019 Red Hat, Inc
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
* See the COPYING file in the top-level directory.
|
|
*/
|
|
|
|
#ifndef LIBQOS_VIRTIO_PCI_MODERN_H
|
|
#define LIBQOS_VIRTIO_PCI_MODERN_H
|
|
|
|
#include "virtio-pci.h"
|
|
|
|
bool qvirtio_pci_init_virtio_1(QVirtioPCIDevice *dev);
|
|
|
|
#endif /* LIBQOS_VIRTIO_PCI_MODERN_H */
|