]> git.proxmox.com Git - mirror_qemu.git/commit
virtio-pci: Proxy for virtio-pmem
authorPankaj Gupta <pagupta@redhat.com>
Wed, 19 Jun 2019 09:49:04 +0000 (15:19 +0530)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 4 Jul 2019 21:00:32 +0000 (17:00 -0400)
commitadf0748a494151fd7c10050820f2a3988768828a
treecca8530108748fdeb7522c68415f283f76f3352c
parent9f583bdd47189416c7ba331f1baf3a890f2671a6
virtio-pci: Proxy for virtio-pmem

We need a proxy device for virtio-pmem, and this device has to be the
actual memory device so we can cleanly hotplug it.

Forward memory device class functions either to the actual device or use
properties of the virtio-pmem device to implement these in the proxy.

virtio-pmem will only be compiled for selected, supported architectures
(that can deal with virtio/pci devices being memory devices). An
architecture that is prepared for that can simply enable
CONFIG_VIRTIO_PMEM to make it work.

As not all architectures support memory devices (and CONFIG_VIRTIO_PMEM
will be enabled per supported architecture), we have to move the PCI proxy
to a separate file.

Signed-off-by: Pankaj Gupta <pagupta@redhat.com>
[ split up patches, memory-device changes, move pci proxy]
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20190619094907.10131-5-pagupta@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/Makefile.objs
hw/virtio/virtio-pmem-pci.c [new file with mode: 0644]
hw/virtio/virtio-pmem-pci.h [new file with mode: 0644]
include/hw/pci/pci.h