linux/drivers/virtio
David Hildenbrand ebf71552bb virtio-mem: Add parent resource for all added "System RAM"
Let's add a parent resource, named after the virtio device (inspired by
drivers/dax/kmem.c). This allows user space to identify which memory
belongs to which virtio-mem device.

With this change and two virtio-mem devices:
	:/# cat /proc/iomem
	00000000-00000fff : Reserved
	00001000-0009fbff : System RAM
	[...]
	140000000-333ffffff : virtio0
	  140000000-147ffffff : System RAM
	  148000000-14fffffff : System RAM
	  150000000-157ffffff : System RAM
	[...]
	334000000-3033ffffff : virtio1
	  338000000-33fffffff : System RAM
	  340000000-347ffffff : System RAM
	  348000000-34fffffff : System RAM
	[...]

Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Pankaj Gupta <pankaj.gupta.linux@gmail.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Link: https://lore.kernel.org/r/20200507140139.17083-12-david@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta.linux@gmail.com>
2020-06-04 15:36:52 -04:00
..
Kconfig virtio-mem: Paravirtualized memory hotunplug part 2 2020-06-04 15:36:52 -04:00
Makefile virtio-mem: Paravirtualized memory hotplug 2020-06-04 15:36:52 -04:00
virtio_balloon.c virtio-balloon: Disable free page reporting if page poison reporting is not enabled 2020-06-04 15:36:51 -04:00
virtio_input.c virtio_input: pull in slab.h 2020-04-17 06:05:29 -04:00
virtio_mem.c virtio-mem: Add parent resource for all added "System RAM" 2020-06-04 15:36:52 -04:00
virtio_mmio.c virtio-mmio: Delete an error message in vm_find_vqs() 2020-06-02 02:45:13 -04:00
virtio_pci_common.c virtio-pci: check name when counting MSI-X vectors 2020-02-06 03:40:26 -05:00
virtio_pci_common.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 78 2019-05-24 17:37:51 +02:00
virtio_pci_legacy.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 78 2019-05-24 17:37:51 +02:00
virtio_pci_modern.c virtio: add VIRTIO_RING_NO_LEGACY 2020-06-02 02:45:13 -04:00
virtio_ring.c virtio_ring: Fix mem leak with vring_new_virtqueue() 2020-03-08 05:35:23 -04:00
virtio_vdpa.c virtio: introduce a vDPA based transport 2020-04-01 12:06:26 -04:00
virtio.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00