qemu/docs/specs
Damjan Marion 3fd74b8407 vhost-user: fix regions provied with VHOST_USER_SET_MEM_TABLE message
Old code was affected by memory gaps which resulted in buffer pointers
pointing to address outside of the mapped regions.

Here we are introducing following changes:
 - new function qemu_get_ram_block_host_ptr() returns host pointer
   to the ram block, it is needed to calculate offset of specific
   region in the host memory
 - new field mmap_offset is added to the VhostUserMemoryRegion. It
   contains offset where specific region starts in the mapped memory.
   As there is stil no wider adoption of vhost-user agreement was made
   that we will not bump version number due to this change
 - other fileds in VhostUserMemoryRegion struct are not changed, as
   they are all needed for usermode app implementation
 - region data is not taken from ram_list.blocks anymore, instead we
   use region data which is alredy calculated for use in vhost-net
 - Now multiple regions can have same FD and user applicaton can call
   mmap() multiple times with the same FD but with different offset
   (user needs to take care for offset page alignment)

Signed-off-by: Damjan Marion <damarion@cisco.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Damjan Marion <damarion@cisco.com>
2014-06-29 19:39:40 +03:00
..
acpi_cpu_hotplug.txt acpi: ich9: add CPU hotplug handling to Q35 machine 2014-01-26 13:11:44 +02:00
acpi_mem_hotplug.txt acpi: memory hotplug ACPI hardware implementation 2014-06-19 16:41:49 +03:00
acpi_pci_hotplug.txt acpi_piix4: Re-define PCI hotplug eject register read 2012-04-15 12:17:23 +03:00
ivshmem_device_spec.txt Replace Qemu by QEMU in internal documentation 2012-04-07 13:58:25 +00:00
pci-ids.txt pci: use constants for devices under the 1B36 device ID, document them 2013-01-09 12:10:28 +02:00
pci-serial.txt serial: add pci-serial documentation 2012-10-22 13:26:42 -05:00
pci-testdev.txt pci: add pci test device 2013-04-16 01:41:53 +03:00
ppc-spapr-hcalls.txt Spelling fixes in comments and documentation 2012-09-14 08:21:28 +01:00
pvpanic.txt pvpanic: add document of pvpanic 2013-04-30 10:30:01 -05:00
qcow2.txt docs: Define refcount_bits value 2014-05-28 14:28:46 +02:00
qed_spec.txt docs: Describe zero data clusters in QED specification 2011-04-13 12:06:40 +02:00
standard-vga.txt vga: add secondary stdvga variant 2014-04-28 11:03:32 +02:00
vhost-user.txt vhost-user: fix regions provied with VHOST_USER_SET_MEM_TABLE message 2014-06-29 19:39:40 +03:00
vmw_pvscsi-spec.txt scsi: VMWare PVSCSI paravirtual device implementation 2013-04-19 10:44:17 +02:00