OSDN Git Service

hw/virtio: Add PCIe capability to virtio devices
authorMarcel Apfelbaum <marcel@redhat.com>
Tue, 10 Nov 2015 11:41:29 +0000 (13:41 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 12 Nov 2015 14:23:16 +0000 (16:23 +0200)
commit1811e64c35fe1d9bce77952937a16c001dc08465
tree633b6458d78849640385ef4e605f9b4794878e23
parent3a12f32229a046f4d4ab0a3a52fb01d2d5a1ab76
hw/virtio: Add PCIe capability to virtio devices

The virtio devices are converted to PCI-Express
if they are plugged into a PCI-Express bus and
the 'modern' protocol is enabled.

Devices plugged directly into the Root Complex as
Integrated Endpoints remain PCI.

Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-pci.c
hw/virtio/virtio-pci.h
include/hw/compat.h