Skip to content
  • Pankaj Gupta's avatar
    adf0748a
    virtio-pci: Proxy for virtio-pmem · adf0748a
    Pankaj Gupta authored
    
    
    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: default avatarPankaj Gupta <pagupta@redhat.com>
    [ split up patches, memory-device changes, move pci proxy]
    Signed-off-by: default avatarDavid Hildenbrand <david@redhat.com>
    Message-Id: <20190619094907.10131-5-pagupta@redhat.com>
    Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    adf0748a
    virtio-pci: Proxy for virtio-pmem
    Pankaj Gupta authored
    
    
    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: default avatarPankaj Gupta <pagupta@redhat.com>
    [ split up patches, memory-device changes, move pci proxy]
    Signed-off-by: default avatarDavid Hildenbrand <david@redhat.com>
    Message-Id: <20190619094907.10131-5-pagupta@redhat.com>
    Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Loading